[ovs-discuss] qemu failed when configure vm

Na Zhu nazhu at cn.ibm.com
Thu May 28 08:48:04 UTC 2015



Hi,

I am trying to install an vm and connect the vm to dpdk port. I am using
ovs dpdk version.
I follow the instructions in the link
https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md

I create vm to connect to dpdk0, it failed, anyone knows the reason?

root at juno:~#
root at juno:~# /usr/bin/qemu-system-x86_64 -cpu host -name dpdk
-hda /root/os/ubuntu.qcow2 -object
memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge, share=on -numa
node,memdev=mem -mem-prealloc -smp 4 --enable-kvm -nographic -vnc :1 -net
none -netdev tap,id=net1,script=no,downscript=no,ifname=dpdk0,vhost=on
-device virtio-net-pci,netdev=net1,mac=00:00:00:00:00:01
**
ERROR:/build/buildd/qemu-2.0.0+dfsg/qom/object.c:437:object_new_with_type:
assertion failed: (type != NULL)
Aborted
root at juno:~#


I have created a br0 and add 3 dpdk ports to br0.
root at juno:~# ovs-vsctl show
948294fb-d455-4bcf-8086-bae49feede58
    Bridge "br0"
        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
        Port "dpdk1"
            Interface "dpdk1"
                type: dpdk
        Port "br0"
            Interface "br0"
                type: internal
        Port "dpdkvhost0"
            Interface "dpdkvhost0"
                type: dpdkvhost
        Port "dpdk2"
            Interface "dpdk2"
                type: dpdk
root at juno:~#

The dpdk port is VF port.
root at juno:~/dpdk-2.0.0# ./tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
0000:07:10.2 'I350 Ethernet Controller Virtual Function' drv=igb_uio
unused=
0000:07:10.6 'I350 Ethernet Controller Virtual Function' drv=igb_uio
unused=
0000:07:11.2 'I350 Ethernet Controller Virtual Function' drv=igb_uio
unused=

Network devices using kernel driver
===================================
0000:06:00.0 'I350 Gigabit Network Connection' if=eth0 drv=igb
unused=igb_uio *Active*
0000:06:00.1 'I350 Gigabit Network Connection' if=eth1 drv=igb
unused=igb_uio
0000:06:00.2 'I350 Gigabit Network Connection' if=eth2 drv=igb
unused=igb_uio
0000:06:00.3 'I350 Gigabit Network Connection' if=eth3 drv=igb
unused=igb_uio

Other network devices
=====================
<none>
root at juno:~/dpdk-2.0.0#





Regards,
Juno Zhu
Staff Software Engineer, System Networking
China Systems and Technology Lab (CSTL), IBM Wuxi
Email: nazhu at cn.ibm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150528/98ec190b/attachment-0002.html>


More information about the discuss mailing list