Is it possible to configure libvirt's MAC generation?

Alvin Starr alvin at netvel.net
Fri Jun 12 18:18:13 UTC 2020


One solution would be to dump the XML for the domain and then run 
something like sed on it to change what ever you want and then update 
the domain.
Of course that will only work if the domain is stopped.

On 6/12/20 2:00 PM, Ian Pilcher wrote:
> On 6/12/20 12:28 PM, Peter Crowther wrote:
>> Specify the MAC address as part of the domain XML for the bootstrap 
>> node.  See https://libvirt.org/formatdomain.html#elementsNICS.
>
> Unfortunately, the domain XML is created by the OpenShift installer,
> over which I have no control.  :-(
>
> Digging into the libvirt source, it doesn't look like there's any way
> to configure MAC address generation.  I'm now investigating whether I
> can mangle the source MAC of the outgoing DHCP packets with ebtables.
>
> Uugh.
>

-- 
Alvin Starr                   ||   land:  (647)478-6285
Netvel Inc.                   ||   Cell:  (416)806-0133
alvin at netvel.net              ||





More information about the libvirt-users mailing list