[libvirt-users] VLANs with Open vSwitch in libvirt 0.10.1

Scott Lowe h.scott.lowe at gmail.com
Sun Sep 23 19:23:26 UTC 2012


Hello all, I'm trying to take advantage of libvirt's VLAN and OVS support in the 0.10.1 release and consistently getting an "error: internal error corrupted profileid string" when starting a guest.

I've defined a network using virsh; the configuration looks like this:

<network>
  <name>ovs-network</name>
  <uuid>40c32a20-9eed-238c-895c-b9af7eaf72f1</uuid>
  <forward mode='bridge'/>
  <bridge name='ovsbr0' />
  <virtualport type='openvswitch'/>
  <portgroup name='green' default='yes'>
    <virtualport>
      <parameters profileid='green-profile'/>
    </virtualport>
  </portgroup>
  <portgroup name='blue'>
    <vlan>
      <tag id='2'/>
    </vlan>
    <virtualport>
      <parameters profileid='blue-profile'/>
    </virtualport>
  </portgroup>
</network>

This network is listed when I run "virsh net-list --all" and is listed as active.

In a guest, the network is defined like this:

    <interface type='network'>
      <mac address='52:54:00:a8:bf:8f'/>
      <source network='ovs-network'/>
      <virtualport type='openvswitch'>
        <parameters interfaceid='2913d936-6771-4983-1cdf-753c45ac24d2' profileid='green-profile'/>
      </virtualport>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </interface>

This is running on Ubuntu 12.04.1 (and QEMU-KVM) with manually compiled libvirt 0.10.1 and OVS version 1.4.0+build0.

For troubleshooting, I've undefined/re-define both the network and the guest, and restarted libvirtd in between. I've also tried different network names, different portgroup names, and different profileid's.

I'm sure I'm missing something obvious but I can't seem to find it--any suggestions? Any and all help is appreciated.

-- 
Scott





More information about the libvirt-users mailing list