b039fb8128
- But build on OSREL=8.2 failed. So stick old rev on 8.2. - Add support for 8.3-REL. - Copy only required part of source tree [1]. Suggested by: Richard Yao <ryao@cs.stonybrook.edu> from Gentoo [1]
22 lines
682 B
Text
22 lines
682 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'/>
|
|
+ <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'/>
|