[ovs-discuss] Virsh XML definition & openvswith

Benoît benoit at neviani.fr
Mon Jan 16 16:34:04 UTC 2017


I am using ovs with virsh for VM under KVM, but I would like to automatically start some commands when 
my VM is started (to start mirroring for example) is there a way to do it or should I use a workaround 
like a sh script ?

I am looking for a more beautiful solution or if there is anything I can 
add to my XML VM definition as an extra parameters ? 

My current definition :

    <interface type='bridge'>
      <mac address='22:22:22:18:00:66'/>
      <source bridge='v_dmz'/>
        <tag id='140'/>
      <virtualport type='openvswitch'>
        <parameters interfaceid='85570136-4a17-4827-9e8f-812744805721'/>
      <target dev='vnic_140'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 

Many thanks

More information about the discuss mailing list