From owner-freebsd-xen@FreeBSD.ORG Sun May 22 02:35:39 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F0F9106567F for ; Sun, 22 May 2011 02:35:39 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.re1.yahoo.com (mrout2-b.corp.re1.yahoo.com [69.147.107.21]) by mx1.freebsd.org (Postfix) with ESMTP id 020818FC08 for ; Sun, 22 May 2011 02:35:38 +0000 (UTC) Received: from [127.0.0.1] (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2-b.corp.re1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p4M2PBAH083000 for ; Sat, 21 May 2011 19:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1306031112; bh=fLU1oTVgoM5O8qkKh09B1iZPBVf3FQE338Mm32TSiRI=; h=Subject:From:To:Content-Type:Date:Message-ID:Mime-Version: Content-Transfer-Encoding; b=OtxUtzJ5z3dXJqq7yuRdSeFifkmAeclBgGS5qVl1H49OBBELR9QG0H9v72a3Zg1su 7u09mATRHv80z917WRnN1XivRm7lEeO7+AG84tjLRScJy5gWvqXNSwczr7XENHyv/O 4wjafDJvbiExwzMPI7eL1/pwlfSbg3bCZ9kBY2sI= From: Sean Bruno To: "freebsd-xen@freebsd.org" Content-Type: text/plain; charset="UTF-8" Date: Sat, 21 May 2011 19:25:11 -0700 Message-ID: <1306031111.2703.6.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit Subject: Panic XENHVM X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 02:35:39 -0000 Installed a freebsd-current non-xen kernel from a few months ago and used it to compile and installworld/kern from the largeSMP branch. In addition, the Dom0 is NetBSD and the Hypervisor is xen 4.1 There is a significant possibility that I don't know what I'm doing and was looking for your thoughts here. Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 xenbusb_front0: on xenstore0 ugen0.1: at usbus0 uhub0: on usbus0 cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: cd present [211588 x 2048 byte records] xn0: at device/vif/0 on xenbusb_front0 xn0: Error 2 parsing device/vif/0/mac xn0: Fatal error. Transitioning to Closing State panic: do something smart cpuid = 0 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x3b: movq $0,0x90f4d2(%rip) db> trace Tracing pid 0 tid 100000 td 0xffffffff810b9c80 kdb_enter() at kdb_enter+0x3b panic() at panic+0x180 netfront_attach() at netfront_attach+0x19a device_attach() at device_attach+0x69 xenbusb_probe_children() at xenbusb_probe_children+0xdf xenbusb_attach() at xenbusb_attach+0x11c device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a xs_attach_deferred() at xs_attach_deferred+0x21 run_interrupt_driven_config_hooks() at run_interrupt_driven_config_hooks +0x73 boot_run_interrupt_driven_config_hooks() at boot_run_interrupt_driven_config_hooks+0x2c mi_startup() at mi_startup+0x77 btext() at btext+0x2c ---- xen config for this DomU---- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/pkg/lib/xen/boot/hvmloader" device_model = '/usr/lib/xen/bin/qemu-dm' builder='hvm' # Initial memory allocation (in megabytes) for the new domain. memory = 4098 # number of CPUS vcpus = 4 # A name for your domain. All domains must have different names. name = "fbsd9" #Network interface. By default emules a realtek 8139. For a NetBSD guest you # have to disable re(4) and let rtk attach to use it. # ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0 # pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with # pcn(4) under NetBSD. vif = [ 'mac=00:16:3e:00:00:14, bridge=bridge0, type=ioemu' ] #---------------------------------------------------------------------------- # device model to use: only qemu-dm available for now device_model = '/usr/pkg/libexec/qemu-dm' # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. # For hvm domains you can only use hda to hdd. You can set extra types # (e.g. cdrom) disk = [ 'file:/var/virt/FreeBSD-9.0-CURRENT-201101-amd64-disc1.iso,hdc:cdrom,r', 'file:/var/virt/vmtest9_amd64.bin,hda,w' ] # floppy images; this doesn't seem to work currently. Use a iso image instead. #fda = '/home/domains/boot1.fs' # boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry # before) boot='c' # By default, 'xm create' will try to open an X window on the current display # for the virtal framebuffer. You can have the virtal framebuffer in vnc # instead, and connect using a vnc client (using localhost:$vncdisplay) # If vncunused is set to 1 (this is the default value), vncdisplay # will be set to the first unused port; so it's recommended to vnc = 1 vncdisplay = 1 vncunused = 1 vncpasswd='' #Xen emulates a PS/2 mouse, but the pointer in the guest has difficulties # tracking the absolute position. Xen can emulate a USB tablet in addition # to the mouse which will report the absolute position of the pointer, # and make the mouse much easier to use. # usb=1 usbdevice='tablet' #usbdevice='mouse' serial='pty' on_reboot='restart' From owner-freebsd-xen@FreeBSD.ORG Sun May 22 08:30:56 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE05C106566B for ; Sun, 22 May 2011 08:30:56 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id B4D058FC08 for ; Sun, 22 May 2011 08:30:56 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p4M8UtVg041132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 May 2011 08:30:55 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p4M8UtVg041132 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1306053056; x=1306657856; bh=GJ2uIPU5N0OjjTf/RWQ9hXJ9cPGc3wm3X0BOTAerjzQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=O5jTBYqQ2puwm6C0FiPF93IhrRW4zXLkZTjmiONrVgnXP49UIav27Mu3vBDwgxtJp zxeFiM5FXr3IzbK+Mh1KRedrMHCPZAmp+8wE7cOEUVOqNIp/glCD3xkvL5Vm29wBqN C9UwQTFptS9markVgwp9U5IUs0Td4HAIBeNZ/eSw= Date: Sun, 22 May 2011 08:30:55 +0000 (UTC) From: Janne Snabb To: Sean Bruno In-Reply-To: <1306031111.2703.6.camel@hitfishpass-lx.corp.yahoo.com> Message-ID: References: <1306031111.2703.6.camel@hitfishpass-lx.corp.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Sun, 22 May 2011 08:30:56 +0000 (UTC) Cc: "freebsd-xen@freebsd.org" Subject: Re: Panic XENHVM X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 08:30:57 -0000 On Sat, 21 May 2011, Sean Bruno wrote: > xn0: Error 2 parsing device/vif/0/mac [..] > panic: do something smart This is becoming a FAQ. It is a known bug which affects lots of people. Have a look at: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/154302 In summary: You need to remove "ioemu" from Xen vif definition (if possible) or you need to patch the kernel source. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Sun May 22 09:20:14 2011 Return-Path: Delivered-To: freebsd-xen@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47091106566C for ; Sun, 22 May 2011 09:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 37DFA8FC0A for ; Sun, 22 May 2011 09:20:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4M9KEWT098222 for ; Sun, 22 May 2011 09:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4M9KEfO098221; Sun, 22 May 2011 09:20:14 GMT (envelope-from gnats) Date: Sun, 22 May 2011 09:20:14 GMT Message-Id: <201105220920.p4M9KEfO098221@freefall.freebsd.org> To: freebsd-xen@FreeBSD.org From: Janne Snabb Cc: Subject: Re: kern/154302: better do-something-smart.patch X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Janne Snabb List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 09:20:14 -0000 The following reply was made to PR kern/154302; it has been noted by GNATS. From: Janne Snabb To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/154302: better do-something-smart.patch Date: Sun, 22 May 2011 09:16:19 +0000 (UTC) Here is a new patch which is hopefully neat enough to be committed. Could someone with a commit bit consider this? Lots of people are having trouble beacuse of this bug. It can be argued that the bug is in Xen and not in FreeBSD, but in reality we do need a work-around in FreeBSD. (Or if not, the panic message should be "something smarter". :) --- do-something-smart.patch begins here --- Index: sys/dev/xen/netfront/netfront.c =================================================================== --- sys/dev/xen/netfront/netfront.c (revision 222131) +++ sys/dev/xen/netfront/netfront.c (working copy) @@ -408,9 +408,27 @@ error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, (void **) &macstr); - if (error) - return (error); + if (error) { + /* + * Try to read the 'mac' node from the backend side in case + * it does not exist (ENOENT) in the frontend side. This + * happens with various Xen versions if 'type=ioemu' is set + * in the vif configuration. See PR 154302 for more details. + * Otherwise return the error to the caller. + */ + if (error != ENOENT) + return (error); + + if (xs_read(XST_NIL, xenbus_get_otherend_path(dev), "mac", + NULL, (void **) &macstr) != 0) + /* + * Return the error code of the frontend read (it + * is always ENOENT at this point). + */ + return (error); + } + s = macstr; for (i = 0; i < ETHER_ADDR_LEN; i++) { mac[i] = strtoul(s, &e, 16); --- do-something-smart.patch ends here --- -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Sun May 22 23:54:43 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B3D4106566B for ; Sun, 22 May 2011 23:54:43 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A95168FC1B for ; Sun, 22 May 2011 23:54:42 +0000 (UTC) Received: by wwc33 with SMTP id 33so5396614wwc.31 for ; Sun, 22 May 2011 16:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=rjunblEIjK1pSdK246OB5FauvigqOUCMhK9MVh6CtV8=; b=X2xZBY1TFfGSktrT1OcKd1OQRnp5c62CHB9BhD3xfoGNYM0nlKVHVCL4hSGx9pguEK UJSagDCldZKN3qf7F8NplQ/eJNAD++wNIzGzU68c3AVF8NyGF96jQNRc0o/YW0aGTb4A F4dwXuxDA+HkXLHYlIhsYu8/VaDsdhLTLY6vU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=j0eAsCQfnUg3QuBQCCm/Ns2ZaqMSBSS6OSrgnCHAobMonmXtIBTfJ+gcXvFOW6vgwT NfAd9cn7cLEprhqoMhO36Xm28gQ4lSZPuXcJ5LwqzHpo09uhHg98yxbe9QrkiGxPUnkm wgW9Vxo2fCXIH7mIptVINkxDqH+1JR/M/qu5c= Received: by 10.227.37.7 with SMTP id v7mr1697184wbd.41.1306107122712; Sun, 22 May 2011 16:32:02 -0700 (PDT) Received: from [192.168.10.3] (a89-152-47-118.cpe.netcabo.pt [89.152.47.118]) by mx.google.com with ESMTPS id o6sm3729545wbo.3.2011.05.22.16.32.00 (version=SSLv3 cipher=OTHER); Sun, 22 May 2011 16:32:01 -0700 (PDT) Message-ID: <4DD99CE8.3090600@gmail.com> Date: Mon, 23 May 2011 00:31:52 +0100 From: "Mike C." User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: Manuel Bouyer References: <4DB7616F.9060109@barafranca.com> <20110520171309.GA6974@asim.lip6.fr> In-Reply-To: <20110520171309.GA6974@asim.lip6.fr> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org, port-xen@NetBSD.org Subject: Re: FreeBSD HVM+PV boot hangs with phy: run_interrupt_driven_hooks: still waiting after 60 seconds for xenbusb_nop_confighook_cb X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 23:54:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I just tested this successfully with LVM and using block device (disk = [ 'phy:/dev/mapper/vgXen-lv01,xvda,w' ]). Thanks for the fix ;) On 05/20/11 18:13, Manuel Bouyer wrote: > This problem should now be fixed in xentools33 and 41 (I've > successfully booted a FreeBSD HVMPV kernel with phy:/dev/vnd0d). I > also integrated haad@'s patch to properly get the partition size. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJN2ZznAAoJEAERawpMXLhs8+UIAJpHvO22/J0CYvA8KEJxeU3/ grc7zeR3TEugr3WQWROY0qABZTZ3IlwmVN9eBjSMem8kjryW4/9oPrjHeuUibYcr lEslWS3HIezJFEhgYzGdekb/95fFMm+6YJ5D/ZhPgDWOmqXZ4CoOuxERKXwAFVQs E5xXdX9x9fZAtmPC5B9QZoo4hI8Mpf7Usfe/tLs3eDWG+hjVp2hf+YHhmSZqQcPz RF2bw4TgtQxl7h/Q1cSb6zAhHlxdpcTsqT909TwP0ja5NZd2BIl2cPdXN9cUlvJ9 MMAdJzgRCgoyG9OADv8alIIcv1tdHUFWCAikU0yjtDr6Jreqe3rDrmmWRxl7uzE= =zev8 -----END PGP SIGNATURE----- From owner-freebsd-xen@FreeBSD.ORG Mon May 23 11:07:13 2011 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F121A106567E for ; Mon, 23 May 2011 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C7A678FC29 for ; Mon, 23 May 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4NB7DXT051883 for ; Mon, 23 May 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4NB7Dtg051881 for freebsd-xen@FreeBSD.org; Mon, 23 May 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 May 2011 11:07:13 GMT Message-Id: <201105231107.p4NB7Dtg051881@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 11:07:14 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/155468 xen [xen] Xen PV i386 multi-kernel CPU system is not worki o kern/155353 xen [xen] [patch] put "nudging TOD" message under boot_ver o kern/154833 xen [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. o kern/154473 xen [xen] xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not o kern/154472 xen [xen] xen 4.0 - DomU freebsd8.1 i386 xen kernel reboot o kern/154428 xen [xen] xn0 network interface and PF - Massive performan o kern/154302 xen [xen] [panic] [patch] xn0: Error 2 parsing device/vif/ o kern/153789 xen [xen] [regression] FreeBSD 8.2-RC1 crashes under Solar o kern/153674 xen [xen] i386/XEN idle thread shows wrong percentages o kern/153672 xen [xen] [panic] i386/XEN panics under heavy fork load o kern/153620 xen [xen] Xen guest system clock drifts in AWS EC2 (FreeBS o kern/153477 xen [xen] XEN pmap code abuses vm page queue lock o kern/153150 xen [xen] xen/ec2: disable checksum offloading on interfac o kern/152228 xen [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor f kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after f kern/135667 xen ufs filesystem corruption on XEN DomU system f kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. f kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i p kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all f i386/124516 xen [xen] FreeBSD-CURRENT Xen Kernel Segfaults when config o kern/118734 xen [xen] FreeBSD 6.3-RC1 and FreeBSD 7.0-BETA 4 fail to b 24 problems total. From owner-freebsd-xen@FreeBSD.ORG Tue May 24 13:46:03 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A90BD1065670 for ; Tue, 24 May 2011 13:46:03 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 7D6C98FC08 for ; Tue, 24 May 2011 13:46:03 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id AD127B16 for ; Tue, 24 May 2011 13:46:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id Z0duFtmVFWe4 for ; Tue, 24 May 2011 13:45:21 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 1EF99B07 for ; Tue, 24 May 2011 13:45:20 +0000 (UTC) Message-ID: <4DDBB66F.6030608@barafranca.com> Date: Tue, 24 May 2011 14:45:19 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: xn_txeof: WARNING: response is -1! X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 13:46:03 -0000 Hello, NetBSD -current dom0 FreeBSD 8.2-STABLE domU. Trying to ssh to the VM produces the error in the subject line on the FreeBSD domU; It's impossible to login. I found a few references in google, but nothing conclusive. From owner-freebsd-xen@FreeBSD.ORG Tue May 24 16:16:34 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 912FA106566B; Tue, 24 May 2011 16:16:34 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.re1.yahoo.com (mrout1-b.corp.re1.yahoo.com [69.147.107.20]) by mx1.freebsd.org (Postfix) with ESMTP id F39838FC14; Tue, 24 May 2011 16:16:33 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.re1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p4OGG3g8005692; Tue, 24 May 2011 09:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1306253764; bh=LLEf/tn8ORReVuR1KfPDYPn1dlOt2HO9YwF0pHJdlAk=; h=Subject:From:To:Content-Type:Date:Message-ID:Mime-Version; b=oiE00841EOVOavW6fl8sW5gF5khqdmEpFyYQMFfs30upfpcfhAIC1NslD/Wz6N9XB Bb6iJE4BJ2CY0jhCShp38MCp0pvo99QA/r/GC24LYHG1MSBGJP0x0/jUauGXElvvjr CWFKTwoAXjIsvBLX48QVcCWWqe/SQDyF3q7ztORs= From: Sean Bruno To: "freebsd-xen@freebsd.org" Content-Type: multipart/mixed; boundary="=-OHvpH/Asm+QZ4vF7wfzQ" Date: Tue, 24 May 2011 09:16:03 -0700 Message-ID: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Subject: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 16:16:34 -0000 --=-OHvpH/Asm+QZ4vF7wfzQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I've made some significant progress on the freebsd.org xen hosting machines (no dom0 support yet, but I'm working on it). I've installed a netbsd-current dom0 and the 3.3.2 xen hypervisor on xen1.freebsd.org and started up a freebsd-current DomU with the XENHVM kernel installed. I've attached the dmesg and the xen config for "xen2.freebsd.org" to this message. I've been crashing the hypervisor pretty reliably by setting the DomU to use multiple CPUs. Not sure if this is a Xen or NetBSD thing, but for now i'm leaving vcpus set to 1. 1. How do I switch the networking vif entry to use the netfront xn0 driver instead of emulating a e1000? 2. What tests would people like to see on this? 3. Is anyone working on OpenStack or Ganetti for Free/NetBSD? Sean --=-OHvpH/Asm+QZ4vF7wfzQ Content-Disposition: attachment; filename="fbsd9_xen_domu_cfg.txt" Content-Type: text/plain; name="fbsd9_xen_domu_cfg.txt"; charset="UTF-8" Content-Transfer-Encoding: 7bit #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/pkg/lib/xen/boot/hvmloader" device_model = '/usr/lib/xen/bin/qemu-dm' builder='hvm' # Initial memory allocation (in megabytes) for the new domain. memory = 4098 # number of CPUS vcpus = 1 # A name for your domain. All domains must have different names. name = "fbsd9" #Network interface. By default emules a realtek 8139. For a NetBSD guest you # have to disable re(4) and let rtk attach to use it. # ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0 # pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with # pcn(4) under NetBSD. #vif = [ 'mac=00:16:3e:00:00:14, bridge=bridge0, type=ioemu' ] vif = [ 'mac=00:16:3e:00:00:14, bridge=bridge0, model=e1000' ] #---------------------------------------------------------------------------- # device model to use: only qemu-dm available for now device_model = '/usr/pkg/libexec/qemu-dm' # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. # For hvm domains you can only use hda to hdd. You can set extra types # (e.g. cdrom) disk = [ 'file:/var/virt/FreeBSD-9.0-CURRENT-201105-amd64-dvd1.iso,hdc:cdrom,r', #'file:/var/virt/FreeBSD-9.0-CURRENT-201101-amd64-disc1.iso,hdc:cdrom,r', 'file:/var/virt/vmtest9_amd64.bin,hda,w' ] # floppy images; this doesn't seem to work currently. Use a iso image instead. #fda = '/home/domains/boot1.fs' # boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry # before) boot='c' # By default, 'xm create' will try to open an X window on the current display # for the virtal framebuffer. You can have the virtal framebuffer in vnc # instead, and connect using a vnc client (using localhost:$vncdisplay) # If vncunused is set to 1 (this is the default value), vncdisplay # will be set to the first unused port; so it's recommended to vnc = 1 vncdisplay = 1 vncunused = 1 vncpasswd='' #Xen emulates a PS/2 mouse, but the pointer in the guest has difficulties # tracking the absolute position. Xen can emulate a USB tablet in addition # to the mouse which will report the absolute position of the pointer, # and make the mouse much easier to use. # usb=1 usbdevice='tablet' #usbdevice='mouse' serial='pty' on_reboot='restart' #============================================================================ --=-OHvpH/Asm+QZ4vF7wfzQ Content-Disposition: attachment; filename="fbsd9_xen_domu_dmesg.txt" Content-Type: text/plain; name="fbsd9_xen_domu_dmesg.txt"; charset="UTF-8" Content-Transfer-Encoding: 7bit From: Sean Bruno To: sbruno@freebsd.org Subject: dmesg from xenhvm on netbsd dom0 Date: Tue, 24 May 2011 15:10:29 -0700 Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #0 r222239: Tue May 24 12:06:26 PDT 2011 root@xen2:/usr/obj/usr/home/sbruno/head/sys/XENHVM amd64 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz (2493.82-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0x781fbff Features2=0x80082201 AMD Features=0x20100800 AMD Features2=0x1 real memory = 4297064448 (4098 MB) avail memory = 4113154048 (3922 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-47 on motherboard kbd1 at kbdmux0 acpi0: on motherboard Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1f48-0x1f4b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc160-0xc16f at device 1.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 1.2 (no driver attached) uhci0: port 0xc140-0xc15f irq 23 at device 1.3 on pci0 usbus0: controller did not stop usbus0: on uhci0 vgapci0: mem 0xf0000000-0xf1ffffff,0xf3020000-0xf3020fff at device 2.0 on pci0 xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 28 at device 3.0 on pci0 xenstore0: on xenpci0 em0: port 0xc100-0xc13f mem 0xf3000000-0xf301ffff irq 32 at device 4.0 on pci0 em0: Ethernet address: 00:16:3e:00:00:14 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: does not respond device_attach: fdc0 attach returned 6 uart0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 xenbusb_front0: on xenstore0 ugen0.1: at usbus0 uhub0: on usbus0 ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 device ada0: 16.700MB/s transfers (WDMA2, PIO 8192bytes) ada0: 28385MB (58134400 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad0 xbd0: 653MB at device/vbd/5632 on xenbusb_front0 xbd0: attaching as ad2 xn0: at device/vif/0 on xenbusb_front0 xn0: Ethernet address: 00:16:3e:00:00:14 xenbusb_back0: on xenstore0 xctrl0: on xenstore0 xbd1: 28385MB at device/vbd/768 on xenbusb_front0 xbd1: attaching as ad0 cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: cd present [334610 x 2048 byte records] Timecounter "TSC" frequency 2493815955 Hz quality 800 WARNING: WITNESS option enabled, expect reduced performance. g_dev_taste: make_dev_p() failed (gp->name=ad0, error=17) g_dev_taste: make_dev_p() failed (gp->name=ad0p1, error=17) g_dev_taste: make_dev_p() failed (gp->name=ad0p2, error=17) g_dev_taste: make_dev_p() failed (gp->name=ad0p3, error=17) Root mount waiting for: usbus0 uhub0: 2 ports with 2 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 ums0: on usbus0 Trying to mount root from ufs:/dev/ada0p2 [rw]... WARNING: / was not properly dismounted --=-OHvpH/Asm+QZ4vF7wfzQ-- From owner-freebsd-xen@FreeBSD.ORG Tue May 24 20:10:15 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B04B51065670 for ; Tue, 24 May 2011 20:10:15 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 8054E8FC14 for ; Tue, 24 May 2011 20:10:15 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 9E0A55A3; Tue, 24 May 2011 20:10:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id uYByfYm31uXX; Tue, 24 May 2011 20:09:36 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id B4E1059E; Tue, 24 May 2011 20:09:35 +0000 (UTC) Message-ID: <4DDC107E.6080703@barafranca.com> Date: Tue, 24 May 2011 21:09:34 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Sean Bruno References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> In-Reply-To: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "freebsd-xen@freebsd.org" Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:10:15 -0000 On 05/24/11 17:16, Sean Bruno wrote: > I've made some significant progress on the freebsd.org xen hosting > machines (no dom0 support yet, but I'm working on it). > > I've installed a netbsd-current dom0 and the 3.3.2 xen hypervisor on > xen1.freebsd.org and started up a freebsd-current DomU with the XENHVM > kernel installed. I've attached the dmesg and the xen config for > "xen2.freebsd.org" to this message. > NetBSD now has Xen 4.1 too. Recently committed patches have enabled HVM guests to properly detect phy: storage. See recent port-xen (netbsd) for more information. If you're on NetBSD -current and not using LVM, keep in mind that's an option too -- even though presently, renaming/destroying lvs doesn't work (bin/44947). > I've been crashing the hypervisor pretty reliably by setting the DomU to > use multiple CPUs. Not sure if this is a Xen or NetBSD thing, but for > now i'm leaving vcpus set to 1. > > 1. How do I switch the networking vif entry to use the netfront xn0 > driver instead of emulating a e1000? If using XENHVM, you should see a xn0 interface on ifconfig output. Just setup networking there instead. By coincidence you're also using NetBSD as the dom0, please let us know if you hit the same problem I did (see my recent post on this list). Regards, Hugo From owner-freebsd-xen@FreeBSD.ORG Tue May 24 20:15:15 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B586106566B for ; Tue, 24 May 2011 20:15:15 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id EEE008FC12 for ; Tue, 24 May 2011 20:15:14 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 1DC2E5CF for ; Tue, 24 May 2011 20:15:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id J33XogD850PM for ; Tue, 24 May 2011 20:14:35 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 592055CC for ; Tue, 24 May 2011 20:14:35 +0000 (UTC) Message-ID: <4DDC11AA.6030106@barafranca.com> Date: Tue, 24 May 2011 21:14:34 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <4DDBB66F.6030608@barafranca.com> In-Reply-To: <4DDBB66F.6030608@barafranca.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: xn_txeof: WARNING: response is -1! X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:15:15 -0000 On 05/24/11 14:45, Hugo Silva wrote: > Trying to ssh to the VM produces the error in the subject line on the > FreeBSD domU; It's impossible to login. > Some more information for those looking to reproduce this: the above is with rxcsum and txcsum disabled in the xn interface: Without that, the ssh client on the other side would just say 'Disconnected: Packet corrupt'. With tx/rxsum disabled, the ssh client will seem to hang, while the server spits the xn_txeof message. I seem to recall that disabling TSO helped fix a similar error under Citrix XenServer, but alas. No difference. From owner-freebsd-xen@FreeBSD.ORG Wed May 25 10:02:51 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 701FA106564A for ; Wed, 25 May 2011 10:02:51 +0000 (UTC) (envelope-from yann.kempf@gmail.com) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id 454818FC13 for ; Wed, 25 May 2011 10:02:51 +0000 (UTC) Received: by pxi11 with SMTP id 11so5744912pxi.7 for ; Wed, 25 May 2011 03:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-type; bh=6BzkCz6rCX7JhsButUHfwbgDj8HYMQCb5tD/IM7HaGE=; b=VB8f/M+GijsrOq+h1POIcqYwdzTFlC3BFOuOZzlwMAsJK+nDfN6WA/Bj1rYYnZVSkc Gvw6Js+SHhK2UUesJ/U1tkR877M1sz/Ic5bIeNXMq9b+jQCiG8CEl/tqm9nvIvaKOYvr K3LsLP2cHxDs2FyA8BAVxZEXalLAKVl+pNq9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; b=h6Bs3VdktsP2KCGXDjN4lqSS/SrTYVFa7/1MbaxRcxGd02jCiStTm3g/la+UaNltvm 10Ac4Qpgam7WTKq0zkOJ2+UmH2gAiB/yR2R3w1XUGMT6032QoiSSA1RXpDt4LNysvBGj pRTGkPkzyV4mS1bv25OeZ+r0x8l5HoMQGnjco= Received: by 10.142.253.20 with SMTP id a20mr1614392wfi.190.1306316433434; Wed, 25 May 2011 02:40:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.90.9 with HTTP; Wed, 25 May 2011 02:40:03 -0700 (PDT) In-Reply-To: <4DDC107E.6080703@barafranca.com> References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> <4DDC107E.6080703@barafranca.com> From: Yann KEMPF Date: Wed, 25 May 2011 11:40:03 +0200 Message-ID: Cc: "freebsd-xen@freebsd.org\"" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 10:02:51 -0000 It's due to a NetBSD issue. NetBSD doesn't support multiple CPU and Xen simultaneously. On Tue, May 24, 2011 at 22:09, Hugo Silva wrote: > On 05/24/11 17:16, Sean Bruno wrote: > > I've made some significant progress on the freebsd.org xen hosting > > machines (no dom0 support yet, but I'm working on it). > > > > I've installed a netbsd-current dom0 and the 3.3.2 xen hypervisor on > > xen1.freebsd.org and started up a freebsd-current DomU with the XENHVM > > kernel installed. I've attached the dmesg and the xen config for > > "xen2.freebsd.org" to this message. > > > > NetBSD now has Xen 4.1 too. Recently committed patches have enabled HVM > guests to properly detect phy: storage. See recent port-xen (netbsd) for > more information. > > If you're on NetBSD -current and not using LVM, keep in mind that's an > option too -- even though presently, renaming/destroying lvs doesn't > work (bin/44947). > > > I've been crashing the hypervisor pretty reliably by setting the DomU to > > use multiple CPUs. Not sure if this is a Xen or NetBSD thing, but for > > now i'm leaving vcpus set to 1. > > > > > 1. How do I switch the networking vif entry to use the netfront xn0 > > driver instead of emulating a e1000? > > If using XENHVM, you should see a xn0 interface on ifconfig output. Just > setup networking there instead. > > By coincidence you're also using NetBSD as the dom0, please let us know > if you hit the same problem I did (see my recent post on this list). > > Regards, > > Hugo > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > From owner-freebsd-xen@FreeBSD.ORG Wed May 25 10:16:35 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6086A106564A for ; Wed, 25 May 2011 10:16:35 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 30C4E8FC13 for ; Wed, 25 May 2011 10:16:35 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 899B15EC; Wed, 25 May 2011 10:16:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id jIvAeDuu3iJO; Wed, 25 May 2011 10:15:53 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 00A715E1; Wed, 25 May 2011 10:15:52 +0000 (UTC) Message-ID: <4DDCD6D8.2030707@barafranca.com> Date: Wed, 25 May 2011 11:15:52 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Yann KEMPF References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> <4DDC107E.6080703@barafranca.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 25 May 2011 11:27:52 +0000 Cc: " " "@barafranca.com Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 10:16:35 -0000 On 05/25/11 10:40, Yann KEMPF wrote: > It's due to a NetBSD issue. NetBSD doesn't support multiple CPU and Xen > simultaneously. > That's for dom0 and NetBSD domUs. It is perfectly capable of running SMP Linux PV, OpenIndiana, or SMP HVM guests. From owner-freebsd-xen@FreeBSD.ORG Wed May 25 11:55:32 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42BED1065677 for ; Wed, 25 May 2011 11:55:32 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 09DF68FC2D for ; Wed, 25 May 2011 11:55:31 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p4PBtUV3001910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 May 2011 11:55:30 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p4PBtUV3001910 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1306324530; x=1306929330; bh=upGfZ8GY0sL/raTDrw6vHa9zE/oL+j+J+iT+zx/5K/8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=pPrmeV6Bh1Wa7s6voMUf4ZXPXwHfyMn8W7a/vjmWN2RWnrlOEF7+gJF6keVF2yOT6 w0BHTFNHPeDCQ4VDWI6zxZd8XaDtg6x54rDx760hDWIOOR19kao8NYOhoO1dKM6Bfz 7pfrKUh5oyXSj645ujWz/q8f/xjLqXKJ76doXTt0= Date: Wed, 25 May 2011 11:55:30 +0000 (UTC) From: Janne Snabb To: Sean Bruno In-Reply-To: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> Message-ID: References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Wed, 25 May 2011 11:55:30 +0000 (UTC) Cc: "freebsd-xen@freebsd.org" Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 11:55:32 -0000 On Tue, 24 May 2011, Sean Bruno wrote: > I've installed a netbsd-current dom0 and the 3.3.2 xen hypervisor on Why such an old version? Wouldn't it make sense to use 4.1? > 1. How do I switch the networking vif entry to use the netfront xn0 > driver instead of emulating a e1000? Change: builder='hvm' to: builder='linux' Note that you need to define the kernel also and load it from dom0 (unless you are using some PV capable loader which understands FreeBSD file systems... I don't know if such a thing exists & works). -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Wed May 25 12:21:28 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3E4C106564A for ; Wed, 25 May 2011 12:21:27 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id C34E38FC15 for ; Wed, 25 May 2011 12:21:26 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 33851B99; Wed, 25 May 2011 12:21:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id Y8XHAHf1Be+v; Wed, 25 May 2011 12:20:50 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 4E533B98; Wed, 25 May 2011 12:20:49 +0000 (UTC) Message-ID: <4DDCF420.8030104@barafranca.com> Date: Wed, 25 May 2011 13:20:48 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: "freebsd-xen@freebsd.org" References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Sean Bruno Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 12:21:28 -0000 On 05/25/11 12:55, Janne Snabb wrote: > On Tue, 24 May 2011, Sean Bruno wrote: > >> I've installed a netbsd-current dom0 and the 3.3.2 xen hypervisor on > > Why such an old version? Wouldn't it make sense to use 4.1? > Xen 4.1 is a very recent package on pkgsrc, and the other alternative (pkg) is 3.3.2. >> 1. How do I switch the networking vif entry to use the netfront xn0 >> driver instead of emulating a e1000? > > Change: > > builder='hvm' > > to: > > builder='linux' > > Note that you need to define the kernel also and load it from dom0 > (unless you are using some PV capable loader which understands > FreeBSD file systems... I don't know if such a thing exists & works). Does this work with 9-CURRENT/amd64? I'm under the impression you can't boot a 8.X/amd64 in full PV mode. Did it change in current? From owner-freebsd-xen@FreeBSD.ORG Wed May 25 12:34:49 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FF09106566B for ; Wed, 25 May 2011 12:34:49 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 342FA8FC14 for ; Wed, 25 May 2011 12:34:49 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p4PCYkTw066842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 May 2011 12:34:46 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p4PCYkTw066842 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1306326886; x=1306931686; bh=H/moasbiRurBjKyjtDdRFxmll1I2L/jSkpZLZZqRTlM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=XPDH2soZj69jCB0VRpZYHdCW0Og/cnwE6at37IORLGN0zzAn4wsk8Qkc27sLm+kue EmkfnrZ3245puoFPkQ70IHWruy2Y+GXjMa0wJmoMcyCJ+gedEcfwtF3koRYHVx7Ida t1Sc3sCs5tp5rpvdF0z2lgZLU5Wa2PibO2ByR9ng= Date: Wed, 25 May 2011 12:34:46 +0000 (UTC) From: Janne Snabb To: Hugo Silva In-Reply-To: <4DDCF420.8030104@barafranca.com> Message-ID: References: <1306253763.3340.9.camel@hitfishpass-lx.corp.yahoo.com> <4DDCF420.8030104@barafranca.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Wed, 25 May 2011 12:34:46 +0000 (UTC) Cc: "freebsd-xen@freebsd.org" , Sean Bruno Subject: Re: Some success, some questions X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 12:34:49 -0000 On Wed, 25 May 2011, Hugo Silva wrote: > On 05/25/11 12:55, Janne Snabb wrote: > > builder='linux' [..] > Does this work with 9-CURRENT/amd64? I'm under the impression you can't > boot a 8.X/amd64 in full PV mode. Did it change in current? I thought that was the way I configured my Xen when I was recently trying out 8.2 and CURRENT with PV drivers before concluding that it is unusable for my needs. Now that you mentioned I am probably confused with the 32 bit (i386) config with XEN kernel. I have wiped my previous testing setup with something else, so I can not check any more. Sorry. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Wed May 25 16:21:00 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40DF31065670 for ; Wed, 25 May 2011 16:21:00 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 0F2DC8FC0C for ; Wed, 25 May 2011 16:20:59 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 4166EC32 for ; Wed, 25 May 2011 16:20:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id XP2hSQfbSIij for ; Wed, 25 May 2011 16:20:18 +0000 (UTC) Received: from [192.168.1.1] (a94-132-1-126.cpe.netcabo.pt [94.132.1.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id E26EBC26 for ; Wed, 25 May 2011 16:20:17 +0000 (UTC) Message-ID: <4DDD2C41.2000302@barafranca.com> Date: Wed, 25 May 2011 17:20:17 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <4DDBB66F.6030608@barafranca.com> <4DDC11AA.6030106@barafranca.com> In-Reply-To: <4DDC11AA.6030106@barafranca.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: xn_txeof: WARNING: response is -1! X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 16:21:00 -0000 On 05/24/11 21:14, Hugo Silva wrote: > On 05/24/11 14:45, Hugo Silva wrote: >> Trying to ssh to the VM produces the error in the subject line on the >> FreeBSD domU; It's impossible to login. >> > > Some more information for those looking to reproduce this: the above is > with rxcsum and txcsum disabled in the xn interface: Without that, the > ssh client on the other side would just say 'Disconnected: Packet corrupt'. > > With tx/rxsum disabled, the ssh client will seem to hang, while the > server spits the xn_txeof message. > > > I seem to recall that disabling TSO helped fix a similar error under > Citrix XenServer, but alas. No difference. Same thing with i386 and full PV.