Dear experts,

I try to use dpdk ovs to improve the NFV performance. I follow all the
instructions of INSTALL.DPDK.md, when i do dpdk vhost vm configuration with
libvirt, the vm can not created. the error is:
root@juno:~/vm# virsh define dpdk0.xml
Domain dpdk0 defined from dpdk0.xml

root@juno:~/vm#
root@juno:~/vm# virsh start dpdk0
error: Failed to start domain dpdk0
error: internal error: process exited while connecting to monitor: **
ERROR:/build/buildd/qemu-2.0.0+dfsg/qom/object.c:437:object_new_with_type:
assertion failed: (type != NULL)

My dpdk0.xml file is:
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>dpdk0</name>
  <memory unit='KiB'>512000</memory>
  <currentMemory unit='KiB'>512000</currentMemory>
  <vcpu placement='static' cpuset='0-1'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu>
    <topology sockets='1' cores='1' threads='1'/>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64-spice</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/root/os/cirros.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
    </disk>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'
keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
  </devices>
  <qemu:commandline>
  <qemu:arg value='-object'/>
 <qemu:arg
value='memory-backend-file,id=mem,size=512M,mem-path=/mnt/huge,share=on'/>
 <qemu:arg value='-numa'/>
 <qemu:arg value='node,memdev=mem'/>
 <qemu:arg value='-mem-prealloc'/>
</qemu:commandline>
<qemu:commandline>
<qemu:arg value='-netdev'/>
 <qemu:arg
value='type=tap,id=net0,script=no,downscript=no,ifname=dpdkvhost0,vhost=on'/>
 <qemu:arg value='-device'/>
 <qemu:arg value='virtio-net-pci,netdev=net1,mac=00:00:00:00:00:01'/>
</qemu:commandline>
</domain>

I create a ovs bridge:
root@juno:~/vm# ovs-vsctl show
199fdc65-a790-4edc-bf4a-baf8dedf2d32
    Bridge "br0"
        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
        Port "dpdkvhost0"
            Interface "dpdkvhost0"
                type: dpdkvhost
        Port "br0"
            Interface "br0"
                type: internal
        Port "dpdk1"
            Interface "dpdk1"
                type: dpdk
root@juno:~/vm#

Does anyone know how to fix the error?


Thanks
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to