068d76f9a2
- Don't do multiple (needless) copy of sys/* sources [1] PR: ports/168512 [1] Submitted by: Yasuhito FUTATSUKI <futatuki@bsdclub.org> [1]
24 lines
828 B
Text
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'/>
|