Re: vhost not working with version 12.5 with kernel 2.6.35.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, September 02, 2010 06:27:26 pm matthew.r.rohrer@xxxxxxxxxx wrote:
> When trying to use vhost I get the error "vhost-net requested but could
> not be initialized".  The only thing I have been able to find about this
> problem relates to SElinux being turned off which mine is disabled and
> permissive.  Just wondering if there were any other thoughts on this
> error? Am I correct that it should work with the .35.4 kernel and
> version 12.5 KVM?


If you mean 0.12.5, no. If you mean 0.12.50 (i.e. a git checkout from some 
point after 0.12.0 was released), then it depends on when the checkout is 
from.



> 
> 
> KVM Host OS: Fedora 12 x86_64
> KVM Guest OS Tiny Core Linux 2.6.33.3 kernel
> 
> Host kernel 2.6.35.4 and qemu-system-x86_64 12.5 compiled from from
> qemu-kvm repo.
> 
> Starting with:
>       modprobe kvm
>       modprobe kvm_intel
>       modprobe tun
>       echo -e "Setting up bridge device br0" "\r"
>       brctl addbr br0
>       ifconfig br0 192.168.100.254 netmask 255.255.255.0 up
>       brctl addif br0 eth7
>       ifconfig eth7 down
>       ifconfig eth7 0.0.0.0
>       for ((i=0; i < NUM_OF_DEVICES ; i++)); do
>                echo -e "Setting up " "\r"
>                tunctl -b -g ${KVMNET_GID} -t kvmnet$i
>                brctl addif br0 kvmnet$i
>                ifconfig kvmnet$i up 0.0.0.0 promisc
>        done
> 	echo "1" > /proc/sys/net/ipv4/ip_forward
> 	iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth7 -j
> MASQUERADE
> 	for ((i=0; i < NUM_OF_DEVICES ; i++)); do
> 
> 	    qemu-img create -f qcow2 vdisk_$i.img $VDISK_SIZE
> 
> 	    /root/bin/qemu-system-x86_64 -cpu host -drive
> file=./vdisk_$i.img,if=virtio,boot=on -cdrom ./$2 -boot d \
> 		-netdev
> type=tap,id=tap.0,script=no,ifname=kvmnet$i,vhost=on \
> 		-device
> virtio-net-pci,netdev=tap.0,mac=52:54:00:12:34:3$i \
> 		-m 1024 \
> 		-smp 2 \
> 		-usb \
> 		-usbdevice tablet \
> 		-localtime \
> 		-daemonize \
>             -vga std
> 
> 
> Thanks in advance for the input! -Matt
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux