Possible to use OVN networking and virtio simultaneously in the same VM?

Gianluca Cecchi gianluca.cecchi at gmail.com
Sat Feb 15 09:04:58 UTC 2020

On Fri, Feb 14, 2020 at 8:05 PM Andre Goree <agoree at staff.atlantic.net>

> I wanted to know if it's possible to use OVN networking and virtio
> simultaneously in the same VM?  Or am I wasting my time trying to get it to
> work?
In  oVirt 4.x I was able to do it and also to intermix normal vnic and OVN
based vnic.
I needed to reproduced a problem I had in a physical Red Hat Cluster. So i
"cloned" the physical nodes to oVirt VMs and the vnic of the intracluster
network of this virtual RedHat cluster was put on OVN, while the production
vnic was on a normal lan.
Both with virtio as the network type and the second with openvswitch
I just simulate it on a RHV 4.3.7 env and it starts ok
the snippet of the dynamic xml definition that RHV creates is this one
(note some RHV related parameters not pertinent to your env I think).
Note also that on OVN based nics I often put 1442 as the mtu size.

    <interface type='bridge'>
      <mac address='00:1a:4a:16:01:1d'/>
      <source bridge='vlan65'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <driver name='vhost' queues='2'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='down'/>
      <mtu size='1500'/>
      <alias name='ua-8ccec0e9-c32d-4021-8a06-3d24280536b8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
    <interface type='bridge'>
      <mac address='00:1a:4a:16:01:20'/>
      <source bridge='br-int'/>
      <virtualport type='openvswitch'>
        <parameters interfaceid='9c0927a8-2256-44f3-b089-0e8923055747'/>
      <target dev='vnet1'/>
      <model type='virtio'/>
      <driver name='vhost' queues='2'/>
      <link state='up'/>
      <mtu size='1442'/>
      <alias name='ua-ea95c1fe-b226-4a64-ad30-ee5cb2da08ca'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'

On this particular environment RHV provides these packages:


Which kind of errors do you get in term of functionality? no connection
between two VMs on the same OVN networking subnet?
How did you configure OVN? I ask because in oVirt/RHV now you do it from a
general setup command and then through web gui admin, not manually
Your OS?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20200215/8ed2b200/attachment.htm>

More information about the libvirt-users mailing list