Fedora 15
Sponsored Link

Enable vhost-net
2011/05/27
 
Enable vhost-net to mitigate overheads on virtualiazation environment.
[1] Load vhost-net module on KVM Host.
[root@dlp ~]#
modprobe vhost_net

[root@dlp ~]#
lsmod | grep vhost

vhost_net
25194 0

macvtap
7629 1 vhost_net

tun
14146 3 vhost_net

[2] It's Ok all. Virtual Machines start with enabling vhost-net. By default, if vhost-net is loaded, virtual machines start with "vhost=on" automatically like follows.
[root@dlp ~]#
virsh start www
# start

Domain www started
[root@dlp ~]#
ps -ef | grep vhost

qemu   3692   1 7 02:02 ?   00:00:22 /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -name mail -uuid 02d4a8ed-d012-e847-1532-1d1f5e2f0edc -nographic -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/mail.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive file=/var/kvm/images/mail.img,if=none,id=drive-virtio-disk0,boot=on,format=raw,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=20,id=hostnet0,
vhost=on
,vhostfd=22 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:67:8c:a1,bus=pci.0,addr=0x2 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
root   3706   2 0 22:15 ?   00:00:00 [vhost-3692]
Matched Content