Fedora 16
Sponsored Link

Enable vhost-net2011/11/11

 
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      3257     1 29 22:55 ?        00:00:02 /usr/bin/qemu-kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -name www -uuid 
8f1a7952-1866-9257-cbda-71d23833bad5 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/www.monitor,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -drive file=/var/kvm/images/www.img,if=none,id=drive-virtio-disk0,format=raw -device 
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=24 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:bf:0e:e7,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
root      3285     2  0 22:55 ?        00:00:00 [vhost-3257]
root      3290  2060  0 22:55 pts/0    00:00:00 grep --color=auto vhost
Matched Content