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"