Bug#980528: debian-installer: net-install impossible because link is always reset
I noticed a strange bug with the debian installer when I wanted to install a virtual machine (KVM) using
virt-install. I use MacVTap in VEPA mode for networking. While the host would create an interface such
like "macvtap[n]@eth0", the VM gets an interface such like "ens1" when using the e1000 NIC.
The fact, which lets me think that it is actually a bug of the installer, is, that a) the network works
without any problem in all VMs which are installed and b) that I can configure the network manually,
but *only* using the shell, for instance:
> ip link set ens1 up
> ip addr add 255.255.8.243/29 dev ens1
> ip route add default via 255.255.8.1 dev ens1 onlink
The bug is, that the installer - e.g. even if I, after DHCP has failed, try to manually configure it
using the installer (not the shell) - always resets the link "ens1" to a state where the link is not up:
> ~ # ip link show
> 2: ens1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
> link/ether 52:54:00:fb:a1:98 brd ff:ff:ff:ff:ff:ff
Expected is "<BROADCAST,MULTICAST,UP,LOWER_UP>", but the interface is always set to down by the installer.
If I enable it by typing "ip link set ens1 up" it gets up and I can configure the network in the shell.
I even tried it with a preseed file, but whatever I try, the interface is always down and so it is
impossible to configure it within the installation.
# libvirt VM configuration
<source dev='eth0' mode='vepa'/>
<address type='pci' domain='0x0000' bus='0x09' slot='0x01' function='0x0'/>
# Preseed (which also does not work)
d-i netcfg/choose_interface select ens1
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_ipaddress string 255.255.8.243
d-i netcfg/get_netmask string 255.255.255.248
d-i netcfg/get_gateway string 255.255.8.1
d-i netcfg/get_nameservers string 184.108.40.206
d-i netcfg/confirm_static boolean true