[ovs-discuss] KVM + openvswitch : device tap could not be initialized

Ben Pfaff blp at nicira.com
Thu Mar 8 17:33:27 UTC 2012


On Wed, Mar 07, 2012 at 10:59:50PM -0800, sumit sengupta wrote:
> hi all,
> 
> I'm trying to use openvswitch with kvm in Ubuntu latest version following the commands in INSTALL.KVM file but when I try to run the kvm command, it fails with error "Device 'tap' could not be initialized". Fyi, I have initialized the tap devices using tunctl commands and ifconfig command also shows me the configuration success. Any idea? Am I missing something here ?
> 
> bash$ sudo kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=~/iso_images/linux-5.6.0-i386.iso,boot=on
> /etc/ovs-ifup: could not launch network script

Does /etc/ovs-ifup exist?  Is it marked executable ("chmod +x
/etc/ovs-ifup")?



More information about the discuss mailing list