Loading...
 
[Zobrazit/Skrýt nabídky vlevo]
[Zobrazit/Skrýt nabídky vpravo]

FreeBSD 9.1 - virtio

Download binary virtio module, install, edit appropriate config and setup virtio on libvirt layer:

-bash>root@jack0:~# pkg_add http://people.freebsd.org/~kuriyama/virtio/9.1/virtio-kmod-9.1-0.250249.tbz
Fetching http://people.freebsd.org/~kuriyama/virtio/9.1/virtio-kmod-9.1-0.250249.tbz... Done.

To use these modules, add loading lines in /boot/loader.conf:

virtio_load="YES"
virtio_pci_load="YES"
virtio_blk_load="YES"
if_vtnet_load="YES"
virtio_balloon_load="YES"

and edit fstab and interface config in rc.conf:

  1. sed -i.bak -Ee 's|/dev/ada?|/dev/vtbd|' /etc/fstab
  2. echo 'ifconfig_vtnet0_name="em0"' >> /etc/rc.conf


and enable virtio devices in host's domain.xml:

- <target dev='hda' bus='ide'/>

- <address type='drive' controller='0' bus='0' unit='0'/> + <target dev='vda' bus='virtio'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

...
- <model type='e1000'/>

+ <model type='virtio'/>


Created by darek. Last Modification: Úterý 03 of listopad, 2015 08:20:34 CET by darek.