[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#980528: debian-installer: net-install impossible because link is always reset

Package: debian-installer
Severity: important
Tags: d-i

Good Morning!

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 dev ens1
> ip route add default via 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
<interface type='direct'>
	<mac address='52:54:00:5c:d3:e7'/>
	<source dev='eth0' mode='vepa'/>
	<model type='e1000'/>
	<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
d-i netcfg/get_netmask string
d-i netcfg/get_gateway string
d-i netcfg/get_nameservers string
d-i netcfg/confirm_static boolean true

Kind Regards,

Reply to: