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