CentOS 6
Sponsored Link

Enable vhost-net
2011/07/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
24241 0

macvtap
7867 1 vhost_net

tun
16825 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 3254 1 50 20:37 ? 00:00:04 /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -name www -uuid e54f5785-6e47-83f7-d0b8-28d4b2334419 -nographic -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/www.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive file=/var/kvm/images/www.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=24,id=hostnet0,
vhost=on
, vhostfd=25 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:86:d8:58,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 3267 2 0 20:37 ? 00:00:00 [vhost-3254]

root 3285 3195 0 20:38 pts/2 00:00:00 grep vhost
Matched Content
 
Tweet