Date: Mon, 29 Oct 2012 17:00:41 -0700 From: Sean Bruno <seanbru@yahoo-inc.com> To: Vincent Hoffman <vince@unsane.co.uk> Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@FreeBSD.org> Subject: Re: dev/virtio stuff Message-ID: <1351555241.3315.0.camel@powernoodle.corp.yahoo.com> In-Reply-To: <508F1820.3050404@unsane.co.uk> References: <1351547382.3063.21.camel@powernoodle.corp.yahoo.com> <508F1820.3050404@unsane.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> > metric 0 mtu 1500 > > options=c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE> > 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<PERFORMNUD,AUTO_LINKLOCAL> > media: Ethernet 1000baseT <full-duplex> > 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) > > <disk type='block' device='disk'> > <driver name='qemu' type='raw'/> > <source dev='/dev/vg_data/vm.unsane.co.uk'/> > <target dev='vda' bus='virtio'/> > <alias name='virtio0'/> > <address type='drive' controller='0' bus='0' unit='0'/> > </disk> > <controller type='ide' index='0'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x01' > function='0x1'/> > </controller> > <interface type='bridge'> > <mac address='54:52:00:2a:63:af'/> > <source bridge='br0'/> > <target dev='vnet0'/> > <model type='virtio'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' > function='0x0'/> > </interface> > > > Not sure if thats useful to you or not? totally and very useful. thank you. Sean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1351555241.3315.0.camel>