diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2011-11-21 15:15:54 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2011-11-21 15:15:54 +0000 |
commit | a84067960de619ef9c4b2b937d088d6d88b38c2b (patch) | |
tree | f5628061783161e15627f216c29fb8158b9c74b3 /emulators/virtio-kmod/pkg-message | |
parent | 2e84009fdab5b6a1f1a0658782432c0461035074 (diff) | |
download | ports-a84067960de619ef9c4b2b937d088d6d88b38c2b.tar.gz ports-a84067960de619ef9c4b2b937d088d6d88b38c2b.zip |
Port for package building of virtio kernel lodable modules.
This port support only 8.2 and 9.0 releases.
WWW: http://people.FreeBSD.org/~kuriyama/virtio/
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=286189
Diffstat (limited to 'emulators/virtio-kmod/pkg-message')
-rw-r--r-- | emulators/virtio-kmod/pkg-message | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/emulators/virtio-kmod/pkg-message b/emulators/virtio-kmod/pkg-message new file mode 100644 index 000000000000..91eba778a71f --- /dev/null +++ b/emulators/virtio-kmod/pkg-message @@ -0,0 +1,27 @@ +To use these modules, copy into /boot/kernel directory: + +# cp -Rp ${PREFIX}/modules/* /boot/kernel/ +# kldxref /boot/kernel + +and 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 -e 's|/dev/ada?/|/dev/vtbd/|' /etc/fstab +# sed -i.bak -e 's|em0|vtnet0|' /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'/> |