Displaying 2 results from an estimated 2 matches for "hostdev_net".
2023 Apr 03
1
SR-IOV pool with static MAC address and vlan
Hi Paul,
You can set the static MAC address and VLAN in the interface section of the
VM xml.
So it will not change even when the VM shuts down and restarts.
VM interface xml:
<interface type='network'>
<mac address='52:54:00:85:e2:cd'/>
<source network='hostdev_net'/>
<vlan>
<tag id='42'/>
</vlan>
</interface>
And set the network(vf pool) with xml like below:
# cat hostnet.xml
<network>
<name>hostdev_net</name>
<forward mode='hostdev' managed='yes'>...
2023 Apr 02
1
SR-IOV pool with static MAC address and vlan
I'm planning to set up a libvirt/kvm system using a card with SR-IOV
support. I'd like to use the vf pool option rather than statically
assigning a vf to each vm. However, I'd also like each vm to have a
static MAC address and I have multiple VLANs they will be on.
I found in the documentation a syntax for specifying a MAC and a vlan
when the vf is statically assigned, but I don't