Hello All, I've followed the command line of Guoshuai Li - but receive exactly the same performance results as a non virtio device.
I'm trying to lauch a VM with a qemu-system-x86_64 for a virtio device to achieve better network performance with the following command-line: "qemu-system-x86_64 -boot c -drive file=$QCOW2_IMAGE,if=virtio -m 4096 -smp 4 -netdev type=tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown,id=net0 -device virtio-net-pci,netdev=net0 " But the VM is cpu overloaded . When I launch a VM (command line below) with not virtio device - everything is OK but I get poor network performance " qemu-system-x86_64 -m 2048 -smp 2 -cpu host -hda $QCOW2_IMAGE -boot c -enable-kvm -no-reboot -net nic,macaddr=00:11:22:EE:EE:E1 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown " Note that the qcow2 files are the same. Can anyone help me how to launch a VM with -device virtio-net-pci and if=virtio ? Best Regards Avi > -----Original Message----- > From: Avi Cohen (A) > Sent: Tuesday, 09 May, 2017 9:36 AM > To: 'Guoshuai Li'; 'ovs-discuss@openvswitch.org' > Subject: RE: [ovs-discuss] connecting a VM to OVS with a virtio device > > Thanks Guoshuai Li > Found it with netstat -vatpn > Best Regards > avi > > > -----Original Message----- > > From: Avi Cohen (A) > > Sent: Tuesday, 09 May, 2017 9:32 AM > > To: 'Guoshuai Li'; ovs-discuss@openvswitch.org > > Subject: RE: [ovs-discuss] connecting a VM to OVS with a virtio device > > > > Thank you Guoshuai Li > > But I don't know the server_ip (VM ip) Can you give the exact command > > to vncviewer ? > > Best Regards > > avi > > > > > -----Original Message----- > > > From: Guoshuai Li [mailto:l...@dtdream.com] > > > Sent: Monday, 08 May, 2017 7:25 PM > > > To: Avi Cohen (A); ovs-discuss@openvswitch.org > > > Subject: Re: [ovs-discuss] connecting a VM to OVS with a virtio > > > device > > > > > > -vnc :702 > > > > > > this is means the vnc-port is 5900+702 = 6602 you may used vnc by > > > server_ip:6602 > > > > > > Make sure the firewall does not prohibit it. > > > > > > > Thank you very much Guoshuai Li > > > > How can I enter (vncviwer) the VM ? I don't know the VM ip Best > > > > regards avi > > > > > > > >> -----Original Message----- > > > >> From: Guoshuai Li [mailto:l...@dtdream.com] > > > >> Sent: Wednesday, 26 April, 2017 7:02 PM > > > >> To: Avi Cohen (A); ovs-discuss@openvswitch.org > > > >> Subject: Re: [ovs-discuss] connecting a VM to OVS with a virtio > > > >> device > > > >> > > > >> 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 > > > >> _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss