freebsd-ports/emulators/virtio-kmod/pkg-message
Jun Kuriyama 068d76f9a2 - pkg-{descr,message} cosmetic changes.
- Don't do multiple (needless) copy of sys/* sources [1]

PR:		ports/168512 [1]
Submitted by:	Yasuhito FUTATSUKI <futatuki@bsdclub.org> [1]
2012-07-20 14:23:37 +00:00

24 lines
828 B
Text

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:
# sed -i.bak -Ee 's|/dev/ada?|/dev/vtbd|' /etc/fstab
# 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'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+ <model type='virtio'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>