]> xenbits.xensource.com Git - people/royger/osstest.git/commit
ts-host-install: Do not force MAC address of Xen vifs
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 15 Apr 2019 11:46:09 +0000 (12:46 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 15 Apr 2019 11:51:47 +0000 (12:51 +0100)
commit689d27fa7e38adb2499134e8a075c34a5b76d3da
tree449f0c6f3ab5382bb12a3b853dd1a7cd90c8a5a2
parent09aa42d6fb51719f3229f3a466021f3aa92d8155
ts-host-install: Do not force MAC address of Xen vifs

For some broken hosts we explicitly force the mac address in
software.  (This is controlled by the ForceMacAddress host property.)

We achieve this by writing a udev rule (which ends up both in the
installer and in the initramfs) which calls `ip link set ... address'.

However: in some cases we share the initramfs with guests.  In
particular, the `xen-tools' package likes to use the host initramfs.

In stretch at least, this rule, empirically, applies in the guest too.
The result is that with ForceMacAddress, the guest ends up with the
same mac address as the host, breaking everything.

Fix this by explicitly excluding Xen network interfaces.  These all
get a proper mac address from xenstore (ultimately, from osstest
itself via the guest config, or in other configurations from libxl).

I don't know why this apparently worked on jessie.  Startup order
changes are a possibility.

CC: Julien Grall <julien.grall@arm.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install