[ovs-discuss] vhost-cuse ports with qemu-2.3.0

Traynor, Kevin kevin.traynor at intel.com
Wed May 20 14:38:16 UTC 2015


> From: leidian fengyu [mailto:fengyuleidian0615 at gmail.com]

> Sent: Wednesday, May 20, 2015 8:05 AM

> To: discuss at openvswitch.org<mailto:discuss at openvswitch.org>

> Cc: Traynor, Kevin

> Subject: vhost-cuse ports with qemu-2.3.0

>

> Hi, Traynor

>

> Several month ago, I setup a user space ovs bridge with vhost-cuse v8 patch

> set.

> It all works well with qemu-kvm, but now when I switched to qemu-2.3.0, with

> the same

> image, and same boot parameters as OTHER_ARGS stated in INSTALL.DPDK.md "DPDK

> vHost

> VM configuration with standard vHost" section, kvm guest cannot DHCPed valid

> ip address,

> actually ifconfig guest_eth0 shows no traffic at all.

>

> Am I using the right qemu version or

> Am I missing something obviously when using qemu-2.3.0?

> Thanks in advance!

>

> OTHER_ARGS="-smp 4 -m 2048 -hda centos7-1.img

>             -netdev

> tap,id=nic1,script=no,downscript=no,ifname=dpdkvhost1,vhost=on \

>             -device virtio-net-pci,netdev=nic1,mac=00:16:3d:22:33:54,\

>             csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off \

>             -mem-path /dev/hugepages -mem-prealloc"

>



I’m guessing you previously tested with qemu <2.0.0. You need to explicitly

share the memory in the command line now. It’s the very last line of this

section:

https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-vm-configuration



>

>

> (1) Use qemu-kvm from https://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

> qemu-kvm/x86_64-softmmu/qemu-system-x86_64 $OTHER_ARGS

>

> (2) Use qemu-2.3.0

> qemu-2.3.0/x86_64-softmmu/qemu-system-x86_64 -enable-kvm $OTHER_ARGS

>

> --

> 天下英雄出我辈,一入江湖岁月催。

> 宏图霸业谈笑中,不胜人生一场醉。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150520/0093f169/attachment-0002.html>


More information about the discuss mailing list