2012-01-09 15:58:27 +01:00
|
|
|
To use these modules, add loading lines in /boot/loader.conf:
|
2011-11-21 16:15:54 +01:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2012-01-09 15:58:27 +01:00
|
|
|
# sed -i.bak -Ee 's|/dev/ada?|/dev/vtbd|' /etc/fstab
|
2012-04-22 15:52:23 +02:00
|
|
|
# echo 'ifconfig_vtnet0_name="em0"' >> /etc/rc.conf
|
2011-11-21 16:15:54 +01:00
|
|
|
|
|
|
|
and enable virtio devices in host's domain.xml:
|
|
|
|
|
|
|
|
- <target dev='hda' bus='ide'/>
|
|
|
|
+ <target dev='vda' bus='virtio'/>
|
|
|
|
...
|
|
|
|
- <model type='e1000'/>
|
|
|
|
- <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
|
|
+ <model type='virtio'/>
|
|
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|