Add a type attribute on the mac address element

This is only used in the ESX driver where, when set to "static", it will
ignore all the checks libvirt does about the origin of the MAC address
(whether or not it's in a VMWare OUI) and forward the original one to
the ESX server telling it not to check it either.

This allows keeping a deterministic MAC address which can be useful for
licensed software which might dislike changes.

Signed-off-by: Bastien Orivel <bastien.orivel@diateam.net>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Bastien Orivel
2020-07-13 18:47:44 +02:00
committed by Michal Privoznik
parent c051e56d27
commit 454e5961ab
9 changed files with 121 additions and 4 deletions
+7
View File
@@ -427,6 +427,13 @@ error: invalid argument in libvirt was built without the 'esx' driver
<pre>
ethernet0.checkMACAddress = "false"
</pre>
<p>
<span class="since">Since 6.6.0</span>, one can force libvirt to keep the
provided MAC address when it's in the reserved VMware range by adding a
<code>type="static"</code> attribute to the <code>&lt;mac/&gt;</code> element.
Note that this attribute is useless if the provided MAC address is outside of
the reserved VMWare ranges.
</p>
<h3><a id="hardware">Available hardware</a></h3>