@@ -114,6 +114,19 @@ set -ex
in-target sed -i 's/^deb *cdrom/#&/g' /etc/apt/sources.list
END
+ # Do not use "Predictable Network Interface Names" -- this can break
+ # nested HVM tests.
+ # https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
+ #
+ # See also
+ # https://www.debian.org/releases/stretch/example-preseed.txt
+ my $netifnames = "";
+ $netifnames = <<END if $ho->{Suite} =~ m/stretch/;
+d-i debian-installer/add-kernel-opts string net.ifnames=0
+END
+
+ $preseed_file .= "$netifnames";
+
$preseed_file .= preseed_hook_cmds();
return $preseed_file;
This is required to fix nested hvm test. The L1 host is installed by this script. We want the L1 host to not use the new nic naming scheme. Signed-off-by: Wei Liu <wei.liu2@citrix.com> --- ts-debian-hvm-install | 13 +++++++++++++ 1 file changed, 13 insertions(+)