[dpdk-dev] Not able to bring up the VM with dpdk enabled ovs bridge
harshavardhan Reddy
hvreddy1110 at gmail.com
Thu Aug 18 14:14:50 CEST 2016
Hi,
When I try to add the virtio interface to dpdk enabled ovs bridge I am
getting below error message.
"Unable to add port vnet1 to OVS bridge ovsbr0"
I have added created the ovs bridge and added ports to the same as below.
$OVS_DIR/utilities/ovs-vsctl add-port ovsbr0 vhost-user1 -- set Interface
vhost-user1 type=dpdkvhostuser
$OVS_DIR/utilities/ovs-vsctl add-port ovsbr0 vhost-user2 -- set Interface
vhost-user2 type=dpdkvhostuser
In my VM's xml file I have done the below "highlighted "changes as well
sudo virsh dumpxml AP1
<domain type='kvm'>
<name>AP1</name>
<uuid>6dd3c551-76a2-65d5-32e7-8daaaf433cf4</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static' cpuset='2-3'>2</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/VM1-clone.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<controller type='usb' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:64:ad:4f'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:f0:7f:a1'/>
<source bridge='ovsbr0'/>
<virtualport type='openvswitch'>
<parameters interfaceid='22a05fd5-0501-49fb-983b-06c3c06540ea'/>
</virtualport>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
</interface>
<interface type='vhostuser'>
<mac address='52:54:00:a2:e6:28'/>
<source type='unix' path='/usr/local/var/run/openvswitch/vhost-user1'
mode='client'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</sound>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</memballoon>
</devices>
</domain>
However still I am not able to start the VM.
When I try to start the VM, I am getting below error message.
#virsh start AP1
error: Failed to start domain AP1
error: internal error: Unable to add port vnet1 to OVS bridge ovsbr0
I have Ubuntu latest version as my host
"Ubuntu 16.04.1 LTS" with qemu 2.5.0 version.
Kindly suggest If I am missing anything here.
Regards,
Hvr
More information about the dev
mailing list