[ovs-discuss] connecting a VM to OVS with a virtio device

Guoshuai Li ligs at dtdream.com
Wed Apr 26 16:01:58 UTC 2017


This is my command, Please refer :

# qemu-kvm /root/image/gdx_ctl1.img -cpu host --enable-kvm -smp 
2,sockets=4 -m 4G -vnc :702, -net nic,vlan=0,macaddr=0c:b5:8a:e3:9c:00 
-net tap,vlan=0,ifname=tap709,script=no

# ovs-vsctl add-br br-def

# ovs-vsctl add-port br-def eth0
# ovs-vsctl add-port br-def tap709
# ip link set tap709 up


> Hi,
> currently I can launch a VM connected to OVS with a tap device using the following command line :
> "qemu-system-x86_64 -m 512 -smp 4 -cpu host -hda ~/f21vm1c1.qcow2 -boot c -enable-kvm -no-reboot -nographic -net nic,macaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown"
>
> I want to launch a VM to be connected to OVS via a virtio  (vhost) device   - which its performance is much better
>
> Can you specify the required changes to command-line above in order to do it ?
>   
> Regards
> avi
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss



More information about the discuss mailing list