On 06/04/2018 06:50 PM, Pradeep K.S wrote:
I am planning to configure vlan on vhostuser interfaces in the
libvirt
xml, it throws out error.
Does this configuration is supported ?
No. configuration of vlan tags within libvirt is only supported for
emulated devices that use a tap device connected to Open vSwitch (i.e.
(<interface type='bridge|network'> .... <virtualport
type='openvswitch'>
..."), or for SRIOV VFs that are assigned to the guest using vfio device
assignment ("<interface type='hostdev'>").
If there is a standard and reasonable method of setting up vlan tagging
for a vhostuser interface from the *host*, then we would consider
accepting patches to implement it (assuming that you want to write them :-).
Otherwise, you'll need to configure the vlan tagging to be done on the
guest (in the guest OS networking config).
I can install higher version if
required.
*Error:*
unsupported configuration: an interface of type 'vhostuser' is
requesting a vlan tag, but that is not supported for this type of connection
*Libvirt version:*
[redhathost@qemu]# libvirtd --version
libvirtd (libvirt) 3.2.0
*Qemu version:*
QEMU emulator version 2.9.0(qemu-kvm-ev-2.9.0-16.el7_4.11.1)
*Domain XML*
*
*
<interface type='vhostuser'>
<mac address='02:3a:c1:4b:a1:0a'/>
<source type='unix' path='/tmp/vhost-test'
mode='server'/>
<vlan trunk='yes'>
<tag id='3' nativeMode='tagged'/>
<tag id='4'/>
</vlan>
<model type='virtio'/>
<driver rx_queue_size='1024'>
<host mrg_rxbuf='on'/>
</driver>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x03'
function='0x0'/>
</interface>
--
Thanks and Regards,
Pradeep.K.S.
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users