PXE netboot install of Ubuntu Desktop results in unconfigured network interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-installer (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When doing a PXE netboot of Ubuntu Desktop over NFS, the installer adds the following lines for each network interface to /etc/network/
auto ens3
iface ens3 inet manual
I was able to reproduce the issue with both Xenial and Bionic. There's something specific about Ubuntu Desktop that's not an issue with Ubuntu Server. I believe it's because of ubiquity and casper being used for Desktop vs debian installer in Server.
The workaround is to edit /etc/network/
auto lo
iface lo inet loopback
One can preseed a late_command which overwrites the /etc/network/
There is an 8 year old bug #388060 related to this issue that mentions the following:
```
These lines are added by casper in a script called 23networking. Here are a few relevant lines from the script:
if [ -z "${NETBOOT}" ]; then method="dhcp"; else method="manual"; fi
if [ "$method" != dhcp ] || [ ! -x /root/usr/
# ...
cat >> "$IFFILE" <<EOF
auto $i
iface $i inet $method
EOF
fi
So, this at least enables the live cd environment to be loaded over NFS. However, the problem is that this later gets propagated to the installed environment if ubiquity is called. This is done by the install.py script and here are the relevant lines from the script:
for path in ('/etc/
if os.path.
shutil.copy2(path, os.path.
```
I'm attaching a screenshot of the issue after the livecd netboot PXE installation (netboot-
Additional information:
1) The release of Ubuntu you are using via 'lsb_release -rd'
Ubuntu 16.04.3 LTS
Ubuntu Bionic Beaver (development branch)
2) The version of the package you are using, via 'apt-cache policy pkgname'
Ubuntu 16.04.3 LTS:
casper 1.376.2
ubiquity 2.21.63.4
Ubuntu Bionic Beaver (development branch)
casper 1.388
ubiquity 18.04.1
3) What you expected to happen
Network interfaces should be configured by Network Manager after the final reboot at the end of the installation. There shouldn't be 'manual' lines in /etc/network/
4) What happened instead
Network interfaces are not configured by Network Manager after the final reboot at the end of the installation. There are 'manual' lines in /etc/network/
affects: | casper (Ubuntu) → debian-installer (Ubuntu) |
Netbooting Ubuntu Desktop is not a supported installation method for Ubuntu. The only supported way to install Ubuntu via netboot is with the Netboot images of Ubuntu[1]. More information in the Ubuntu documentation[2].
[1] http:// cdimage. ubuntu. com/netboot/ /help.ubuntu. com/community/ Installation/ Netboot
[2] https:/