From owner-freebsd-virtualization@FreeBSD.ORG Mon Oct 29 11:06:40 2012 Return-Path: Delivered-To: freebsd-virtualization@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4682FBC4 for ; Mon, 29 Oct 2012 11:06:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 28E588FC17 for ; Mon, 29 Oct 2012 11:06:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9TB6ebt028666 for ; Mon, 29 Oct 2012 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9TB6d8r028664 for freebsd-virtualization@FreeBSD.org; Mon, 29 Oct 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2012 11:06:39 GMT Message-Id: <201210291106.q9TB6d8r028664@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-virtualization@FreeBSD.org Subject: Current problem reports assigned to freebsd-virtualization@FreeBSD.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 11:06:40 -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/170096 virtualization[vimage] Dynamically-attached network interface will c o kern/169991 virtualization[run] [vimage] panic after device plugged in o kern/165252 virtualization[vimage] [pf] [panic] kernel panics with VIMAGE and PF o kern/161094 virtualization[vimage] [pf] [panic] kernel panic with pf + VIMAGE wh o kern/160541 virtualization[vimage][pf][patch] panic: userret: Returning on td 0x o kern/160496 virtualization[vimage] [pf] [patch] kernel panic with pf + VIMAGE o kern/148155 virtualization[vimage] [pf] Kernel panic with PF/IPFilter + VIMAGE k a kern/147950 virtualization[vimage] [carp] VIMAGE + CARP = kernel crash s kern/143808 virtualization[pf] pf does not work inside jail a kern/141696 virtualization[rum] [vimage] [panic] rum(4)+ vimage = kernel panic 10 problems total. From owner-freebsd-virtualization@FreeBSD.ORG Mon Oct 29 21:50:06 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B241FF4B for ; Mon, 29 Oct 2012 21:50:06 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 586048FC12 for ; Mon, 29 Oct 2012 21:50:06 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9TLngaK096923 for ; Mon, 29 Oct 2012 14:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351547383; bh=WaeR5tMBkKfZuvW1EozNZUyicSnAeOyAsj9EzZ/O1DM=; h=Subject:From:Reply-To:To:Content-Type:Date:Message-ID: Mime-Version:Content-Transfer-Encoding; b=lkgj+0KZEmV04qFNdMqIVI1hag2qsPsIHGQO/JdrRYGHuKA2mbq6h6PVO81lqkrRu D6j4uXl72G6Cpm5i/9/x+U4pZyyuwXzOHXrKCT4DW08xdMqoIMH9CKe+nfBEzmh/v8 /5bfa6rFDBraSd/PZaQ3DdpIFwrf5yl0y/VNrJhs= Subject: dev/virtio stuff From: Sean Bruno To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Oct 2012 14:49:42 -0700 Message-ID: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 547383000 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 21:50:06 -0000 So ... I see we have virtio nowish. I've started my hackery to make some man(4) pages for this, but have some questions. Doing some raw QEMU things, I can't quite see how to get the virtio blk and net devices working. I've loaded the virtio drivers as modules. Is this not going to work in this case? I don't see the virtio versions of disk devices in /dev so I'm not sure what the problem here is. http://people.freebsd.org/~sbruno/virtio.txt Sean From owner-freebsd-virtualization@FreeBSD.ORG Mon Oct 29 23:58:29 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 53709DCA; Mon, 29 Oct 2012 23:58:29 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8501E8FC15; Mon, 29 Oct 2012 23:58:27 +0000 (UTC) Received: from vincemacbook.unsane.co.uk (vincemacbook.unsane.co.uk [10.10.10.20]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q9TNwOF9081935 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 29 Oct 2012 23:58:25 GMT (envelope-from vince@unsane.co.uk) Message-ID: <508F1820.3050404@unsane.co.uk> Date: Mon, 29 Oct 2012 23:58:24 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: sbruno@freebsd.org Subject: Re: dev/virtio stuff References: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> In-Reply-To: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Sean Bruno , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 23:58:29 -0000 On 29/10/2012 21:49, Sean Bruno wrote: > So ... I see we have virtio nowish. I've started my hackery to make > some man(4) pages for this, but have some questions. Doing some raw > QEMU things, I can't quite see how to get the virtio blk and net devices > working. > > I've loaded the virtio drivers as modules. Is this not going to work in > this case? I don't see the virtio versions of disk devices in /dev so > I'm not sure what the problem here is. Modules work for me. [root@fbsd ~]# grep v /boot/loader.conf virtio_load="YES" virtio_pci_load="YES" virtio_blk_load="YES" if_vtnet_load="YES" virtio_balloon_load="YES" [root@fbsd ~]# mount /dev/vtbd0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/vtbd0s1e on /tmp (ufs, local, soft-updates) /dev/vtbd0s1f on /usr (ufs, NFS exported, local, soft-updates) /dev/vtbd0s1d on /var (ufs, local, soft-updates) devfs on /var/named/dev (devfs, local, multilabel) [root@fbsd ~]# ifconfig vtnet0 vtnet0: flags=8943 metric 0 mtu 1500 options=c07bb ether 54:52:00:2a:63:af inet 213.xxx.xxx.13 netmask 0xfffffc00 broadcast 213.xxx.xxx.255 inet6 fe80::5652:ff:fe2a:63af%vtnet0 prefixlen 64 scopeid 0x1 inet6 2001:470:xxx:xxx::1 prefixlen 64 inet 10.10.24.1 netmask 0xffffff00 broadcast 10.10.24.255 nd6 options=21 media: Ethernet 1000baseT status: active [root@fbsd ~]# uname -a FreeBSD fbsd.bmk.namesco.net 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r241491M: Sat Oct 13 01:34:48 BST 2012 toor@fbsd.bmk.namesco.net:/usr/obj/usr/src/sys/unsane-vm amd64 Relevent bits in libvirt config (kvm running on centos5)
Not sure if thats useful to you or not? Vince > > http://people.freebsd.org/~sbruno/virtio.txt > > Sean > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Tue Oct 30 00:00:53 2012 Return-Path: Delivered-To: freebsd-virtualization@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED406E1F for ; Tue, 30 Oct 2012 00:00:52 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id B159C8FC0A for ; Tue, 30 Oct 2012 00:00:52 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9U00f7q044390; Mon, 29 Oct 2012 17:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351555242; bh=Qr+66Vi7AZBsYl0PCgGaYvaFCoaHWar85Kw0XgjK+iE=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=sesTB7a6jlOxmTfbk2K/6nOiyQ9RDcIY6VRCEayM5GJjSPFYoyFS2uwVcQx9hVFwu hrSZY89FHHtN7CCA8fPJkSNirNSS22SMU8vrIy4YXg+OqrmWsxJdHXINyiDuvEojt/ yBGT8MN5QOP3WzXrsnuc8hROs4ahfLJ0wPH4kAC0= Subject: Re: dev/virtio stuff From: Sean Bruno To: Vincent Hoffman In-Reply-To: <508F1820.3050404@unsane.co.uk> References: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> <508F1820.3050404@unsane.co.uk> Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Oct 2012 17:00:41 -0700 Message-ID: <1351555241.3315.0.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 555241003 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "sbruno@FreeBSD.org" List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 00:00:53 -0000 On Mon, 2012-10-29 at 16:58 -0700, Vincent Hoffman wrote: > On 29/10/2012 21:49, Sean Bruno wrote: > > So ... I see we have virtio nowish. I've started my hackery to make > > some man(4) pages for this, but have some questions. Doing some raw > > QEMU things, I can't quite see how to get the virtio blk and net devices > > working. > > > > I've loaded the virtio drivers as modules. Is this not going to work in > > this case? I don't see the virtio versions of disk devices in /dev so > > I'm not sure what the problem here is. > Modules work for me. > [root@fbsd ~]# grep v /boot/loader.conf > virtio_load="YES" > virtio_pci_load="YES" > virtio_blk_load="YES" > if_vtnet_load="YES" > virtio_balloon_load="YES" > > [root@fbsd ~]# mount > /dev/vtbd0s1a on / (ufs, local) > devfs on /dev (devfs, local, multilabel) > /dev/vtbd0s1e on /tmp (ufs, local, soft-updates) > /dev/vtbd0s1f on /usr (ufs, NFS exported, local, soft-updates) > /dev/vtbd0s1d on /var (ufs, local, soft-updates) > devfs on /var/named/dev (devfs, local, multilabel) > [root@fbsd ~]# ifconfig vtnet0 > vtnet0: flags=8943 > metric 0 mtu 1500 > > options=c07bb > ether 54:52:00:2a:63:af > inet 213.xxx.xxx.13 netmask 0xfffffc00 broadcast 213.xxx.xxx.255 > inet6 fe80::5652:ff:fe2a:63af%vtnet0 prefixlen 64 scopeid 0x1 > inet6 2001:470:xxx:xxx::1 prefixlen 64 > inet 10.10.24.1 netmask 0xffffff00 broadcast 10.10.24.255 > nd6 options=21 > media: Ethernet 1000baseT > status: active > > [root@fbsd ~]# uname -a > FreeBSD fbsd.bmk.namesco.net 10.0-CURRENT FreeBSD 10.0-CURRENT #33 > r241491M: Sat Oct 13 01:34:48 BST 2012 > toor@fbsd.bmk.namesco.net:/usr/obj/usr/src/sys/unsane-vm amd64 > > > Relevent bits in libvirt config (kvm running on centos5) > > > > > > >
> > >
function='0x1'/> > > > > > > >
function='0x0'/> > > > > Not sure if thats useful to you or not? totally and very useful. thank you. Sean From owner-freebsd-virtualization@FreeBSD.ORG Tue Oct 30 00:38:58 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2F8C52F; Tue, 30 Oct 2012 00:38:58 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 85B538FC0C; Tue, 30 Oct 2012 00:38:58 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9U0ccQ1057071; Mon, 29 Oct 2012 17:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351557519; bh=d4N8NYQVRu0R3fks/RJxJqHRc/7b2aqncoHEdl0hcS4=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=neZA++AFoZIRPDFDRoHMzmhhyXDYe/slM9l1BlcaifsWKUzIVLAfC7OBHr9TH3BSs oIubBy+Qehp93fbyb/E81J57t4kTDU7cSNeqPwBTjcPes6Mx/5xH2KYADlLygJXm61 /ihjZtoV4KblF+67QZA856Dq97YnF9VRAHCRMr6c= Subject: Re: dev/virtio stuff From: Sean Bruno To: "sbruno@FreeBSD.org" In-Reply-To: <1351555241.3315.0.camel@powernoodle.corp.yahoo.com> References: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> <508F1820.3050404@unsane.co.uk> <1351555241.3315.0.camel@powernoodle.corp.yahoo.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Oct 2012 17:38:37 -0700 Message-ID: <1351557517.3315.3.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 557518001 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "sbruno@FreeBSD.org" List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 00:38:59 -0000 On Mon, 2012-10-29 at 17:00 -0700, Sean Bruno wrote: > > [root@fbsd ~]# ifconfig vtnet0 > > vtnet0: flags=8943 > > metric 0 mtu 1500 > > > > > options=c07bb > > ether 54:52:00:2a:63:af > > inet 213.xxx.xxx.13 netmask 0xfffffc00 broadcast 213.xxx.xxx.255 > > inet6 fe80::5652:ff:fe2a:63af%vtnet0 prefixlen 64 scopeid 0x1 > > inet6 2001:470:xxx:xxx::1 prefixlen 64 > > inet 10.10.24.1 netmask 0xffffff00 broadcast 10.10.24.255 > > nd6 options=21 > > media: Ethernet 1000baseT > > status: active Some google foo landed me on an IBM site that hinted at me that the virsh commands of RHEL 5 don't know how to setup virtio on the network. However, you can add it to the RHEL 5 config manually. http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic= %2Fliaat%2Fliaatkvmfaq.htm Sean From owner-freebsd-virtualization@FreeBSD.ORG Tue Oct 30 05:52:30 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22FE61C2; Tue, 30 Oct 2012 05:52:30 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (torment.daemoninthecloset.org [94.242.209.234]) by mx1.freebsd.org (Postfix) with ESMTP id D0B6F8FC18; Tue, 30 Oct 2012 05:52:28 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.196.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id E916C42C0860; Tue, 30 Oct 2012 06:53:37 +0100 (CET) X-Virus-Scanned: amavisd-new at daemoninthecloset.org Received: from sage.daemoninthecloset.org (sage.daemoninthecloset.org [127.0.1.1]) by sage.daemoninthecloset.org (Postfix) with ESMTP id A354D6E4C2; Tue, 30 Oct 2012 00:51:32 -0500 (CDT) Date: Tue, 30 Oct 2012 00:51:32 -0500 (CDT) From: Bryan Venteicher To: sbruno@freebsd.org Message-ID: <1357075626.557.1351576292413.JavaMail.root@daemoninthecloset.org> In-Reply-To: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> Subject: Re: dev/virtio stuff MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.10.20] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC20 ([unknown])/7.2.0_GA_2669) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 05:52:30 -0000 Hi, ----- Original Message ----- > From: "Sean Bruno" > To: freebsd-virtualization@freebsd.org > Sent: Monday, October 29, 2012 4:49:42 PM > Subject: dev/virtio stuff > > So ... I see we have virtio nowish. I've started my hackery to make > some man(4) pages for this, but have some questions. Doing some raw > QEMU things, I can't quite see how to get the virtio blk and net > devices working. > There are already virtio(4) man pages, but it looks like they didn't get MFC to 9. > I've loaded the virtio drivers as modules. Is this not going to work in > this case? I don't see the virtio versions of disk devices in /dev > so I'm not sure what the problem here is. > > http://people.freebsd.org/~sbruno/virtio.txt >> FreeBSD 7.5-YAHOO-20121028 #0 ybsd_9@324991: Sun Oct 28 22:08:46 UTC 2012 >> kernel@yahoo-inc.com:/sys/amd64/compile/YAHOO amd64 I assume this is 9-STABLE'ish? >> virtio_pci0: port 0xc200-0xc23f irq 11 at device 4.0 on pci0 >> vtblk0: on virtio_pci0 >> virtio_pci0: host features: 0x41000014 >> virtio_pci0: negotiated features: 0x14 >> vtblk0: 4096MB (8388608 512 byte sectors) The VirtIO block gets probed and attached correctly, and right after the last printf, hands off to disk_create(9) to create the GEOM plumbing and device. VirtIO block devices get created as vtbdX, not as ad, ada, or da. Can you see if g_disk_create() gets called (with flag==EV_CANCEL)? What does a verbose boot show? Bryan > > Sean > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" > From owner-freebsd-virtualization@FreeBSD.ORG Tue Oct 30 10:05:49 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 304FB87B; Tue, 30 Oct 2012 10:05:49 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9247C8FC15; Tue, 30 Oct 2012 10:05:45 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q9UA5d3h084411 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 30 Oct 2012 10:05:40 GMT (envelope-from vince@unsane.co.uk) Message-ID: <508FA673.5040004@unsane.co.uk> Date: Tue, 30 Oct 2012 10:05:39 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: "sbruno@FreeBSD.org" Subject: Re: dev/virtio stuff References: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> <508F1820.3050404@unsane.co.uk> <1351555241.3315.0.camel@powernoodle.corp.yahoo.com> <1351557517.3315.3.camel@powernoodle.corp.yahoo.com> In-Reply-To: <1351557517.3315.3.camel@powernoodle.corp.yahoo.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Sean Bruno , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 10:05:49 -0000 On 30/10/2012 00:38, Sean Bruno wrote: > Some google foo landed me on an IBM site that hinted at me that the > virsh commands of RHEL 5 don't know how to setup virtio on the > network. However, you can add it to the RHEL 5 config manually. > http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic= > %2Fliaat%2Fliaatkvmfaq.htm Sean I set that up some time ago and converted it to the virtio drivers after it was installed so I'll admit I'm unsure how good the RHEL5 setup is by default. The only FreeBSD VM I have on RHEL/CentOS 6 is a 9.1-RC2 VM for poudriere builds and doesnt have the virtio drivers sadly, might play with a 9-stable install to see how it goes when I get time. Vince From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 16:35:33 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CA066D2 for ; Wed, 31 Oct 2012 16:35:33 +0000 (UTC) (envelope-from tms3@tms3.com) Received: from tms3.com (tannoy.tms3.com [72.67.208.212]) by mx1.freebsd.org (Postfix) with ESMTP id D17478FC18 for ; Wed, 31 Oct 2012 16:35:32 +0000 (UTC) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=192.168.64.180; Received: from tannoy (unverified [192.168.64.180]) by tms3.com (SurgeMail 5.3h2) with ESMTP id 8-1599620 for ; Wed, 31 Oct 2012 09:19:21 -0700 From: tms3@tms3.com To: Subject: Virtio NIC Date: Wed, 31 Oct 2012 09:19:21 -0700 Message-id: <50914f89.14e1d.28c0ac00.7137094d@tms3.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Originating-IP: 192.168.64.180 X-Mailer: SurgeWeb - Ajax Webmail Client X-Authenticated-User: tms3@tms3.com X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 16:35:33 -0000 Hey list, Running a 9.1rc-2 VM on Smartos using virtio drivers and the network performance seems to cap at 10MiB for ftp...and a few other oddities... Are there any settings, adjustments, debug-settings available to look into this? From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 16:42:37 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED5D4806 for ; Wed, 31 Oct 2012 16:42:37 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (ip-94-242-209-234.as5577.net [94.242.209.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9FABD8FC0C for ; Wed, 31 Oct 2012 16:42:37 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.196.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id 92BDF42C0865; Wed, 31 Oct 2012 17:43:50 +0100 (CET) X-Virus-Scanned: amavisd-new at daemoninthecloset.org Received: from sage.daemoninthecloset.org (sage.daemoninthecloset.org [127.0.1.1]) by sage.daemoninthecloset.org (Postfix) with ESMTP id EDC6C6EACA; Wed, 31 Oct 2012 11:41:40 -0500 (CDT) Date: Wed, 31 Oct 2012 11:41:40 -0500 (CDT) From: Bryan Venteicher To: tms3@tms3.com Message-ID: <1037921860.946.1351701700662.JavaMail.root@daemoninthecloset.org> In-Reply-To: <50914f89.14e1d.28c0ac00.7137094d@tms3.com> Subject: Re: Virtio NIC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.51.1.14] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC22 (Mac)/7.2.0_GA_2669) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 16:42:38 -0000 Hi, ----- Original Message ----- > From: tms3@tms3.com > To: freebsd-virtualization@freebsd.org > Sent: Wednesday, October 31, 2012 11:19:21 AM > Subject: Virtio NIC > > Hey list, > > Running a 9.1rc-2 VM on Smartos using virtio drivers and the network > performance seems to cap at 10MiB for ftp...and a few other > oddities... > > Are there any settings, adjustments, debug-settings available to look > into this? > Try turning off txcsum and rxcsum for starters. Bryan > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" > From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 17:33:45 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69A11AC3; Wed, 31 Oct 2012 17:33:45 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.bf1.yahoo.com (mrout2-b.corp.bf1.yahoo.com [98.139.253.105]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7AA8FC08; Wed, 31 Oct 2012 17:33:44 +0000 (UTC) Received: from [127.0.0.1] (proxy7.corp.yahoo.com [216.145.48.98]) by mrout2-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9VHXCUM007795; Wed, 31 Oct 2012 10:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351704793; bh=qXTP5eszMZbH3qvPMoT5Sw3mpExi9gQEUHpIrck+FfE=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=NGDFn7qCpxU1+zoL6u8NVUJhG8NDPzTXhL6EcvnHrwqEXD/gxQQvaC8TMaTFOk5a1 D3X9U9lRgrWApWr7ORR6jxHCSXnE9+ch5N9sXAJg8gblGoaWCdTu/T1WhJge6D+56P 3xhcLmIQq5RKAT2wpKNcyQ6zpr4KQfmB1FDOUGY4= Subject: Re: dev/virtio stuff From: Sean Bruno To: Bryan Venteicher In-Reply-To: <1357075626.557.1351576292413.JavaMail.root@daemoninthecloset.org> References: <1357075626.557.1351576292413.JavaMail.root@daemoninthecloset.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 31 Oct 2012 10:33:11 -0700 Message-ID: <1351704791.4156.5.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 704792001 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 17:33:45 -0000 See below. On Mon, 2012-10-29 at 22:51 -0700, Bryan Venteicher wrote: > Hi, > > ----- Original Message ----- > > From: "Sean Bruno" > > To: freebsd-virtualization@freebsd.org > > Sent: Monday, October 29, 2012 4:49:42 PM > > Subject: dev/virtio stuff > > > > So ... I see we have virtio nowish. I've started my hackery to make > > some man(4) pages for this, but have some questions. Doing some raw > > QEMU things, I can't quite see how to get the virtio blk and net > > devices working. > > > > There are already virtio(4) man pages, but it looks like they didn't > get MFC to 9. Want me to shovel them back? > > > I've loaded the virtio drivers as modules. Is this not going to work in > > this case? I don't see the virtio versions of disk devices in /dev > > so I'm not sure what the problem here is. > > > > http://people.freebsd.org/~sbruno/virtio.txt > > >> FreeBSD 7.5-YAHOO-20121028 #0 ybsd_9@324991: Sun Oct 28 22:08:46 UTC 2012 > >> kernel@yahoo-inc.com:/sys/amd64/compile/YAHOO amd64 > > I assume this is 9-STABLE'ish? > Yah, its pretty close to stable/9 +- 1 or to commits. > >> virtio_pci0: port 0xc200-0xc23f irq 11 at device 4.0 on pci0 > >> vtblk0: on virtio_pci0 > >> virtio_pci0: host features: 0x41000014 > >> virtio_pci0: negotiated features: 0x14 > >> vtblk0: 4096MB (8388608 512 byte sectors) > > The VirtIO block gets probed and attached correctly, and right after the > last printf, hands off to disk_create(9) to create the GEOM plumbing and > device. VirtIO block devices get created as vtbdX, not as ad, ada, or da. > > Can you see if g_disk_create() gets called (with flag==EV_CANCEL)? > What does a verbose boot show? > > Bryan Grabbed a verbose dmesg for you here: http://people.freebsd.org/~sbruno/viritio_dmesg.txt Sean From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 19:18:00 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52F17789; Wed, 31 Oct 2012 19:18:00 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (ip-94-242-209-234.as5577.net [94.242.209.234]) by mx1.freebsd.org (Postfix) with ESMTP id 072B58FC08; Wed, 31 Oct 2012 19:17:59 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.196.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id 9B7B442C0865; Wed, 31 Oct 2012 20:19:19 +0100 (CET) X-Virus-Scanned: amavisd-new at daemoninthecloset.org Received: from sage.daemoninthecloset.org (sage.daemoninthecloset.org [127.0.1.1]) by sage.daemoninthecloset.org (Postfix) with ESMTP id D40186EB64; Wed, 31 Oct 2012 14:17:09 -0500 (CDT) Date: Wed, 31 Oct 2012 14:17:09 -0500 (CDT) From: Bryan Venteicher To: Sean Bruno Message-ID: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> In-Reply-To: <1351704791.4156.5.camel@powernoodle.corp.yahoo.com> Subject: Re: dev/virtio stuff MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.51.1.14] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC22 (Mac)/7.2.0_GA_2669) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 19:18:00 -0000 Hi, ----- Original Message ----- > From: "Sean Bruno" > To: "Bryan Venteicher" > Cc: sbruno@freebsd.org, freebsd-virtualization@freebsd.org > Sent: Wednesday, October 31, 2012 12:33:11 PM > Subject: Re: dev/virtio stuff > > See below. > > On Mon, 2012-10-29 at 22:51 -0700, Bryan Venteicher wrote: > > Hi, > > > > ----- Original Message ----- > > > From: "Sean Bruno" > > > To: freebsd-virtualization@freebsd.org > > > Sent: Monday, October 29, 2012 4:49:42 PM > > > Subject: dev/virtio stuff > > > > > > So ... I see we have virtio nowish. I've started my hackery to > > > make > > > some man(4) pages for this, but have some questions. Doing some > > > raw > > > QEMU things, I can't quite see how to get the virtio blk and net > > > devices working. > > > > > > > There are already virtio(4) man pages, but it looks like they > > didn't > > get MFC to 9. > > Want me to shovel them back? > Sure. That would be great. > > > > > I've loaded the virtio drivers as modules. Is this not going to > > > work in > > > this case? I don't see the virtio versions of disk devices in > > > /dev > > > so I'm not sure what the problem here is. > > > > > > http://people.freebsd.org/~sbruno/virtio.txt > > > > >> FreeBSD 7.5-YAHOO-20121028 #0 ybsd_9@324991: Sun Oct 28 22:08:46 > > >> UTC 2012 > > >> kernel@yahoo-inc.com:/sys/amd64/compile/YAHOO amd64 > > > > I assume this is 9-STABLE'ish? > > > Yah, its pretty close to stable/9 +- 1 or to commits. > > > >> virtio_pci0: port 0xc200-0xc23f irq > > >> 11 at device 4.0 on pci0 > > >> vtblk0: on virtio_pci0 > > >> virtio_pci0: host features: 0x41000014 > > >> > > >> virtio_pci0: negotiated features: 0x14 > > >> vtblk0: 4096MB (8388608 512 byte sectors) > > > > The VirtIO block gets probed and attached correctly, and right > > after the > > last printf, hands off to disk_create(9) to create the GEOM > > plumbing and > > device. VirtIO block devices get created as vtbdX, not as ad, ada, > > or da. > > > > Can you see if g_disk_create() gets called (with flag==EV_CANCEL)? > > What does a verbose boot show? > > > > Bryan > > Grabbed a verbose dmesg for you here: > > http://people.freebsd.org/~sbruno/viritio_dmesg.txt > >> GEOM: new disk vtbd0 So it seems the VirtIO block device got created just fine. > Sean > > From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 19:22:17 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B983395D; Wed, 31 Oct 2012 19:22:17 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 703718FC0C; Wed, 31 Oct 2012 19:22:17 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9VJM3H9050053; Wed, 31 Oct 2012 12:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351711325; bh=S3DWdDarrOUgHFI5lz3CAJ5k6zVF9VHlo29wziJMfNE=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=e0rSlAfJAa3JjY9xxf1WmSde0ypU4bBlkUIMLST7EjeCf9wOXbwvEhdRhjqkINqa7 4VVQ3MHg3Xj1eQWrg39VoMxDOvG4Xgi6zWVC5EDpMNSdCOguzkPQiNlBROUryamMW/ Es6OR3nxochoQGxBNAclO+a+d242rPvkuU8gawWk= Subject: Re: dev/virtio stuff From: Sean Bruno To: Bryan Venteicher In-Reply-To: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> References: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 31 Oct 2012 12:22:03 -0700 Message-ID: <1351711323.6034.3.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 711324000 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 19:22:17 -0000 > > > There are already virtio(4) man pages, but it looks like they > > > didn't > > > get MFC to 9. > > > > Want me to shovel them back? > > > > Sure. That would be great. > Groovy, I'll poke at it directly. > > > > Grabbed a verbose dmesg for you here: > > > > http://people.freebsd.org/~sbruno/viritio_dmesg.txt > > > > >> GEOM: new disk vtbd0 > > So it seems the VirtIO block device got created just fine. > > > Sean > > > > Yep, it looks like I have to explicitly *mount* the virtio device for it to get created in /dev though. Is that intended? Sean From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 19:34:03 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3D74D42; Wed, 31 Oct 2012 19:34:03 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (ip-94-242-209-234.as5577.net [94.242.209.234]) by mx1.freebsd.org (Postfix) with ESMTP id 91F588FC14; Wed, 31 Oct 2012 19:34:03 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.196.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id 40C4A42C0865; Wed, 31 Oct 2012 20:35:23 +0100 (CET) X-Virus-Scanned: amavisd-new at daemoninthecloset.org Received: from sage.daemoninthecloset.org (sage.daemoninthecloset.org [127.0.1.1]) by sage.daemoninthecloset.org (Postfix) with ESMTP id 89B2E6EADC; Wed, 31 Oct 2012 14:33:12 -0500 (CDT) Date: Wed, 31 Oct 2012 14:33:12 -0500 (CDT) From: Bryan Venteicher To: Sean Bruno Message-ID: <163188575.1006.1351711992146.JavaMail.root@daemoninthecloset.org> In-Reply-To: <1351711323.6034.3.camel@powernoodle.corp.yahoo.com> Subject: Re: dev/virtio stuff MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.51.1.14] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC22 (Mac)/7.2.0_GA_2669) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 19:34:04 -0000 Hi, ----- Original Message ----- > From: "Sean Bruno" > To: "Bryan Venteicher" > Cc: sbruno@freebsd.org, freebsd-virtualization@freebsd.org > Sent: Wednesday, October 31, 2012 2:22:03 PM > Subject: Re: dev/virtio stuff > > > > > > There are already virtio(4) man pages, but it looks like they > > > > didn't > > > > get MFC to 9. > > > > > > Want me to shovel them back? > > > > > > > Sure. That would be great. > > > > Groovy, I'll poke at it directly. > > > > > > Grabbed a verbose dmesg for you here: > > > > > > http://people.freebsd.org/~sbruno/viritio_dmesg.txt > > > > > > > >> GEOM: new disk vtbd0 > > > > So it seems the VirtIO block device got created just fine. > > > > > Sean > > > > > > > > Yep, it looks like I have to explicitly *mount* the virtio device for > it > to get created in /dev though. Is that intended? > I don't get what you mean by *mount*. It should be probed at boot (or kernel module load time) and then GEOM should taste it and you're off to the races just like every other block device. Bryan > Sean > > From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 21:13:48 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03AF88D3 for ; Wed, 31 Oct 2012 21:13:48 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id B765F8FC14 for ; Wed, 31 Oct 2012 21:13:47 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9VLDLQM090349; Wed, 31 Oct 2012 14:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351718002; bh=N4FhK8uCLyy7QwoIuhCpYxsF3LxCFLD7A9lNl+hY7YE=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=Crj+5hfSPNH8DiLf9hqIZVX1Q0gmiqoLuQov5Wz8YTy/zU8L4zs9Gu3bFFx8YBq8m KAVVFQusVPXsimnXwNN5pKH/QxqnK2iLMJJ9Bbhzp85V+LbbRuQva7LLPDQp99YwTO uJQz3TNBhSNWqSgzwszQFjgE4TNAQhbbd5CwWAEY= Subject: Re: dev/virtio stuff From: Sean Bruno To: Bryan Venteicher In-Reply-To: <163188575.1006.1351711992146.JavaMail.root@daemoninthecloset.org> References: <163188575.1006.1351711992146.JavaMail.root@daemoninthecloset.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 31 Oct 2012 14:13:21 -0700 Message-ID: <1351718001.6034.17.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 718002002 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "sbruno@freebsd.org" List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 21:13:48 -0000 On Wed, 2012-10-31 at 12:33 -0700, Bryan Venteicher wrote: > > > > Yep, it looks like I have to explicitly *mount* the virtio device > for > > it > > to get created in /dev though. Is that intended? > > > > I don't get what you mean by *mount*. It should be probed at boot > (or kernel module load time) and then GEOM should taste it and you're > off to the races just like every other block device. > > Bryan What I saw, was that if I did not put entries into the fstab to mount the virtio devices, they never go created. But, retesting it now, I think that I didn't have virtio setup correctly from the linux box in the first place. Sean From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 21:23:26 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A2CEDD8; Wed, 31 Oct 2012 21:23:26 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.bf1.yahoo.com (mrout2-b.corp.bf1.yahoo.com [98.139.253.105]) by mx1.freebsd.org (Postfix) with ESMTP id 976E88FC08; Wed, 31 Oct 2012 21:23:25 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout2-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q9VLMs4b001642; Wed, 31 Oct 2012 14:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1351718576; bh=Epnlh9/WvEC4CMbmmuvh+r6ZC68H8OyMVMCa4NVFjXs=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version; b=ONdR7fcjH852NW6pGPs4Bwh4TnAg4cvhnvWZB+w9kK7vbF72+HSX85hmx5rdBELOg 1m3voZjNHX4Eo56IRELwPU3MnfAP1bJz8ceP7O0g85+8cbnCWNnSMcYNv3Es8o5sHP bOEjqsyD5QHWLL1Uu6c77mqfgFkU6ylwKxKdCHFE= Subject: Re: dev/virtio stuff From: Sean Bruno To: Bryan Venteicher In-Reply-To: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> References: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-jiPSL19za+e26Ck+g2xd" Date: Wed, 31 Oct 2012 14:22:54 -0700 Message-ID: <1351718574.6034.20.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 718575000 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "sbruno@freebsd.org" List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 21:23:26 -0000 --=-jiPSL19za+e26Ck+g2xd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2012-10-31 at 12:17 -0700, Bryan Venteicher wrote: > > > There are already virtio(4) man pages, but it looks like they > > > didn't > > > get MFC to 9. > >=20 > > Want me to shovel them back? > >=20 >=20 > Sure. That would be great. >=20 >=20 bcc eadler@ MFC to stable/9 at r242413. I couldn't quite apply all the updates as they caused me some svn pain. r227652 and r230450 should probably be applied, but r227652 touches a lot of files. Sean --=-jiPSL19za+e26Ck+g2xd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAABAgAGBQJQkZauAAoJEBkJRdwI6BaHe1UH/2w2fEnNl88J7ZbE+B2Q11tL 9vH4166A2ZvDECTM6aAvZUsCcMHy4vrOg79eDWb+pZZQeL4sLmcrflRdYXAOE+W8 h8/kFG8tP+Foc9YpUIFnSQXmEmpmb4SQPAjHH0DUSHklvs1NZQFCRBvG9dHXBZmi z0AAxjulYLPpmfB/1062EXCmjpKPegxifukXa1kDPd5JYtAaBIUU8CxTrk6om7Zx HpDiw5hg7psPcAzvbFGXFIImUvfxRnRsN9HGL5uGjDDwA+CKtUzMs1Uu+16NZ0bY WGqVEAENnl2n8Ac1F62n0tznO7LL3pHqFaWPg9v0w/+3cRrv6ak8oAtnJsuZCnQ= =zJMt -----END PGP SIGNATURE----- --=-jiPSL19za+e26Ck+g2xd-- From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 1 23:00:32 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45B14D26; Thu, 1 Nov 2012 23:00:32 +0000 (UTC) (envelope-from sree.openwrk@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E1CD78FC15; Thu, 1 Nov 2012 23:00:31 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wc20so3884459obb.13 for ; Thu, 01 Nov 2012 16:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wXuXtQpyzJvmvMA39rV6UZjfsefGBbogy/8jWQge8BY=; b=Emar5NUxq6xzxtXrmOufvua+FGJYmldoYAGRMu+PAfIsI48G7HSj1ijMTS59Wfx3I0 K5F/kQYrQWcUrPqynPAB0bzisQH16np8elHnZGtnxhOQjwPFKi+kB6C5lYqt5CT6sYLw +JqSKDg3Tt4n3y652EQamTEzPZJA4SyoMY/cV4iJb9uRRFBDvGvaft9pNkFOqKR+6BvD WD55wEutbLLaVDt+sty29lfBm1wqSBY4ORvINJQ+dUMBc3lX3vElCI8wYse7mL3F7ql1 rFdRZvzK6XQTVIwg9vL+EoFasrjc1ndNYypzkMXH8r6m9IQ1GBFMlP5tNXC0s8WCNkF8 oMpg== MIME-Version: 1.0 Received: by 10.182.212.70 with SMTP id ni6mr34882885obc.44.1351810831058; Thu, 01 Nov 2012 16:00:31 -0700 (PDT) Received: by 10.60.83.84 with HTTP; Thu, 1 Nov 2012 16:00:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Nov 2012 16:00:31 -0700 Message-ID: Subject: Re: Bhyve: panic: "Unregistered use of FPU in kernel" when starting guest From: "sree.openwrk" To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 23:00:32 -0000 Hey Neel Thanks for the fix. Will let you know if the fix solves the issue I reported earlier. On Thu, Oct 25, 2012 at 8:16 PM, Neel Natu wrote: > Hi svas, > > I just submitted a fix for this: > http://svnweb.freebsd.org/base?view=revision&revision=242122 > > Please let me know if this fixes the panic you reported. > > best > Neel > > On Sun, Oct 7, 2012 at 11:12 AM, sree.openwrk > wrote: > > Hey Neel > > Sure. I will reproduce the issue and try to narrow down the problem. > > Will update you, if I am able to narrow down the problem. > > > > Thanks > > > > > > On Thu, Oct 4, 2012 at 9:07 PM, Neel Natu wrote: > >> > >> Hi svas, > >> > >> On Thu, Oct 4, 2012 at 5:58 PM, sree.openwrk > >> wrote: > >> > Hi > >> > I am seeing frequent kernel panic when I try to run the guest OS. I > have > >> > the > >> > latest Freebsd (I compiled the latest code from > >> > svn://svn.freebsd.org/base/projects/bhyve and installed it in my > >> > machine). > >> > While trying to run the pre-built guest provided at > >> > http://people.freebsd.org/~neel/bhyve/vm1.tar.gz I get the kernel > panic > >> > (panic: Unregistered use of FPU in kernel) > >> > I am attaching the core.txt. > >> > I also want to mention that I was successfully able to boot in to the > >> > guest > >> > OS couple of times. But around 7/10 times I get thsi host kernel > panic. > >> > > >> > stack trace: > >> > vm_run() at vm_run+0xec > >> > vmmdev_ioctl() at vmmdev_ioctl+0x4ea > >> > devfs_ioctl_f() at devfs_ioctl_f+0x7a > >> > kern_ioctl() at kern_ioctl+0xcd > >> > sys_ioctl() at sys_ioctl+0xfd > >> > amd64_syscall() at amd64_syscall+0x304 > >> > Xfast_syscall() at Xfast_syscall+0xf7 > >> > > >> > >> I am seeing this too but nowhere as frequently as you are. I hit this > >> last night for the first time and not since. > >> > >> There hasn't been any change in this part of the code for quite some > time > >> now. > >> > >> Since you can trigger this much more frequently that me, would it be > >> possible for you to narrow down which change caused this? It would be > >> hugely helpful. > >> > >> best > >> Neel > >> > >> > > >> > regards > >> > svas > >> > > >> > > > > > > From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 3 19:35:24 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CC6FB76 for ; Sat, 3 Nov 2012 19:35:24 +0000 (UTC) (envelope-from bane.ivosev@pmf.uns.ac.rs) Received: from mail.pmf.uns.ac.rs (mail.pmf.uns.ac.rs [147.91.177.13]) by mx1.freebsd.org (Postfix) with ESMTP id 2BF2E8FC0A for ; Sat, 3 Nov 2012 19:35:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.pmf.uns.ac.rs (Postfix) with ESMTP id 1235A21537 for ; Sat, 3 Nov 2012 20:35:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.pmf.uns.ac.rs Received: from mail.pmf.uns.ac.rs ([127.0.0.1]) by localhost (mail.pmf.uns.ac.rs [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GA43H4SviQIf for ; Sat, 3 Nov 2012 20:35:17 +0100 (CET) Received: from [192.168.22.251] (unknown [79.175.111.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bane.ivosev@pmf.uns.ac.rs) by mail.pmf.uns.ac.rs (Postfix) with ESMTPSA id 39FB6213F0 for ; Sat, 3 Nov 2012 20:35:17 +0100 (CET) Message-ID: <509571F4.4050904@pmf.uns.ac.rs> Date: Sat, 03 Nov 2012 20:35:16 +0100 From: Bane Ivosev Organization: PMF Novi Sad User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: kvm vlan virtio problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bane.ivosev@pmf.uns.ac.rs List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 19:35:24 -0000 hi, i have several kvm ubuntu 12.04 and centos 6 hosts with standard bridged network setup. same problem on each server with freebsd 9 amd64 guest and virtio nic: soon after guest start host syslog is filling with this message at very high rate. guest is working without any problem. with e1000 guest driver eveything is ok. does enyone have/had same problem? thanks. kernel: [2337728.094141] ------------[ cut here ]------------ kernel: [2337728.094144] WARNING: at /build/buildd/linux-3.2.0/net/core/dev.c:1955 skb_gso_segment+0x341/0x3b0() kernel: [2337728.094146] Hardware name: System x3550 M3 -[7944K3G]- kernel: [2337728.094148] 802.1Q VLAN Support: caps=(0x30195833, 0x0) len=3196 data_len=0 ip_summed=0 kernel: [2337728.094149] Modules linked in: dm_snapshot ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables kvm_intel kvm dm_crypt nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc nls_iso8859_1 nls_cp437 vfat fat 8021q garp bridge stp serio_raw cdc_ether usbnet vhost_net macvtap i7core_edac macvlan shpchp ioatdma edac_core dca tpm_tis lp parport mac_hid btrfs zlib_deflate libcrc32c usbhid hid megaraid_sas bnx2 kernel: [2337728.094177] Pid: 8685, comm: vhost-8683 Tainted: G W 3.2.0-31-generic #50-Ubuntu kernel: [2337728.094179] Call Trace: kernel: [2337728.094180] [] warn_slowpath_common+0x7f/0xc0 kernel: [2337728.094185] [] warn_slowpath_fmt+0x46/0x50 kernel: [2337728.094188] [] skb_gso_segment+0x341/0x3b0 kernel: [2337728.094191] [] dev_hard_start_xmit+0xc1/0x540 kernel: [2337728.094196] [] ? br_flood+0xc0/0xc0 [bridge] kernel: [2337728.094199] [] dev_queue_xmit+0x2aa/0x420 kernel: [2337728.094203] [] br_dev_queue_push_xmit+0x92/0xd0 [bridge] kernel: [2337728.094208] [] br_forward_finish+0x58/0x60 [bridge] kernel: [2337728.094212] [] __br_forward+0xab/0xd0 [bridge] kernel: [2337728.094217] [] br_forward+0x5d/0x70 [bridge] kernel: [2337728.094221] [] br_handle_frame_finish+0x182/0x2a0 [bridge] kernel: [2337728.094226] [] br_handle_frame+0x1c8/0x270 [bridge] kernel: [2337728.094231] [] ? br_handle_frame_finish+0x2a0/0x2a0 [bridge] kernel: [2337728.094234] [] __netif_receive_skb+0x1e2/0x520 kernel: [2337728.094237] [] process_backlog+0xb1/0x190 kernel: [2337728.094240] [] net_rx_action+0x134/0x290 kernel: [2337728.094242] [] ? _raw_spin_lock+0xe/0x20 kernel: [2337728.094245] [] __do_softirq+0xa8/0x210 kernel: [2337728.094248] [] call_softirq+0x1c/0x30 kernel: [2337728.094249] [] do_softirq+0x65/0xa0 kernel: [2337728.094254] [] netif_rx_ni+0x28/0x30 kernel: [2337728.094258] [] tun_get_user+0x306/0x4a0 kernel: [2337728.094261] [] tun_sendmsg+0x25/0x30 kernel: [2337728.094265] [] handle_tx+0x296/0x530 [vhost_net] kernel: [2337728.094269] [] handle_tx_kick+0x15/0x20 [vhost_net] kernel: [2337728.094273] [] vhost_worker+0xdd/0x170 [vhost_net] kernel: [2337728.094276] [] ? vhost_set_memory+0x130/0x130 [vhost_net] kernel: [2337728.094279] [] kthread+0x8c/0xa0 kernel: [2337728.094282] [] kernel_thread_helper+0x4/0x10 kernel: [2337728.094285] [] ? flush_kthread_worker+0xa0/0xa0 kernel: [2337728.094287] [] ? gs_change+0x13/0x13 kernel: [2337728.094289] ---[ end trace a38cf088269411b3 ]--- kernel: [2337728.094731] ------------[ cut here ]------------