Netbooting the live server installer

It seems that the desktop installer, even being based on the server installer (subiquity), has no autoinstall option by now:

https://github.com/canonical/ubuntu-desktop-installer/issues/16

A bit confusing, because in this page (https://www.molnar-peter.hu/en/ubuntu-jammy-netinstall-pxe.html) it says: " While Canonical announces autoinstall as a server installer, it can be used to install both server and desktop systems ."

So, the only way to autoinstall Ubuntu 22.04 by now seems to be (awkwardly!) using the server ISO.

2 Likes

The Ubuntu 22.04 LTS desktop installer is not based on subiquity. Automated installs with the desktop ISO continue to use the previous preseed configuration format.

2 Likes

Sorry @vorlon, I’m really confused.

This is the first phrase about the “Ubuntu Dektop Installer” at https://github.com/canonical/ubuntu-desktop-installer:

“This project is a modern implementation of the Ubuntu Desktop installer, using subiquity as a backend and Flutter for the UI.”

Perhaps this is a new installer that is not being used by now?

That is a next-generation installer which is not the installer used in 22.04.

1 Like

Thanks, @vorlon, for clarifying my confusion about the new desktop installer.

Another question. Is there any way to reduce the size of the desktop ISO?

We can not afford to ditch computers with 4GB of RAM. I’m thinking about opening the ISO and removing unused packages from the squashfs file using the information at https://help.ubuntu.com/community/LiveCDCustomization#Extract_the_Desktop_system

Is that a viable option?

1 Like

Reducing the size of the desktop ISO would be unsupported and out of scope for this forum.

1 Like

Then installing “ubuntu-desktop” from the server ISO is our only hope for computers with 4GB of RAM.

Is that option supported @vorlon?

2 Likes

Sorry to insist. I know this discourse page is for “Netbooting the live server installer”.

But the download page for Ubuntu Desktop has the “Alternative Downloads” link (https://ubuntu.com/download/alternative-downloads) that sends to this discourse page for the instructions for the “Network Installer”

With these instructions, the computers are supposed to netboot from a 3.5GB ISO, but that is not feasible with the 4GB of RAM that is the “recommended system requirement” for Ubuntu Desktop.

We have thousands of computers to install and usually do that remotely via netboot.

As tinkering to reduce the Desktop ISO size is not supported, the only way for us to continue using ubuntu is to install the desktop system from the server ISO.

Is that option supported?

2 Likes

It is July now… where would I find the PXEboot related files for 22.04 along with a clear explanation of how things have changed now and how to revise my pxeboot menus in order to install 22.04? What would be especially nice is if notes were included for the case where the DHCP/tftpd are provided from an 18.04 server (eg, would I be installing various packages into this? many examples seem to start off with a provisioning server that is 20.04 or later!)

Many thanks. I’m getting dizzy with my googlefu today o.O

3 Likes

I’ll try to be useful here, not just critical. Though, critical will come first.

Issue here is that this new way is escalating quickly. We started with 800MB ISO image just a “few” releases ago, and still working netboot image. Now we’re at 1.7GB ISO with 22.10 and no netboot image at all, just a link that eventually leads back here. After following this for 2 years I don’t understand where Canonical is going with this.

Now, to be helpful as well, for those that don’t like having 4GB PCs becoming obsolete, there is a know workaround, and I don’t know why there’s no mention of it here. It’s booting contents of the ISO via nfsroot.

EDIT: to make it clear, I’m talking about extracting or mounting ISO on NFS server, then serve the contents itself, which goes around the requirement of keeping whole ISO in RAM plus additional RAM to do the booting and installation procedure. Example, on local server in your network:

mkdir -p /mnt/ubuntu-22.10-live-server-amd64-iso-nfs/
mount /var/www/html/ubuntu-22.10-live-server-amd64.iso /mnt/ubuntu-22.10-live-server-amd64-iso-nfs/
nano /etc/exports
	/mnt/ubuntu-22.10-live-server-amd64-iso-nfs 10.10.1.1/24(ro,sync,no_subtree_check)
exportfs -a
systemctl restart nfs-kernel-server

I’ve been doing that with 20.04 and 20.10, and I tried that with 22.10 today and I get to installer, seeing subiquity lines and all. I tested with 2GB VM net-booting as well, and it gets to subiquity (didn’t bother to wait till end).

 LABEL UbuntuServer-22.10-auto-nfs
  MENU LABEL Ubuntu 22.10 Live Auto Installer from NFS
  KERNEL http://10.10.1.1/ubuntu-server-22.10/vmlinuz
  INITRD http://10.10.1.1/ubuntu-server-22.10/initrd
  APPEND netboot=nfs ip=dhcp nfsroot=10.10.1.1:/mnt/ubuntu-22.10-live-server-amd64-iso-nfs autoinstall ds=nocloud-net;s=http://10.10.1.1/ubuntu-server-22.10/

Anyway, I’m still in process of doing what I actually plan, that’s booting custom squashfs with PXE, something I did with 20.04/20.10, I do wonder though if I’ll be able to do that with 22.10. But I’m starting to think that switching to another distro would be less demanding task.

Hope my comment helps at least someone, I’m sure it won’t change the Canonical path anyway.

Another edit: Doing this from NFS will still download ~1.7GB from NFS server unfortunately, so if you’re booting 100’s or 1000’s of PCs it will still strain your network and your NFS server.

3 Likes

How can I use PXE to automate the installation of Ubuntu22.04 LTS without netboot?

Hi all,

Back in the Trusty Tahr days I wrote some scripts to setup PXE booting on a number of devices. I decided to update them & test to see if they still work, they do!

Happy for people to take a look & play around!

PXE boot setup scripts

Boot screens repo

I used to use these a lot before I discovered Netboot.xyz, which tbh is far superior & better maintained, but hopefully this helps at least 1 person! :slight_smile:

1 Like

Lunar Lobstar now has a mini iso 104 MB. How to boot from it ? Is it same as old mini iso ?

1 Like

Here is a mailing list discussion where you can get some more details how the new mini iso installer works:

and some more details in the thread from the actual developer:

1 Like

This 108MB mini-installer let me choose which Ubuntu distribution to install, then downloaded and ran that installer. That was way faster than writing gigabytes of desktop image to a USB-2 drive and waiting for it to load. https://cdimages.ubuntu.com/ubuntu-mini-iso/daily-live/current/

I use ipxe to install 22.04.2 automatically , but it appears error "Network is unreacheable " when downloading image from server .Check by ip addr and find there is no ip assigned to nic port which used for ipxe install. But the DHCP assign ip to this nic port successfully when enter ipxe .The NIC adapter i use is broadcom 1G and Broadcom 25G nic card .
I want to which folder have the nic support list for this OS

How exactly did you get that working?

I don’t have a DHCP server where I’m trying to use it, and it dies at first stage trying to DHCP.

I only used it on a network where I had DHCP.
You can probably unpack the ISO, edit the config to use static IP, and then rebuild the ISO.

As several other people, I came here from https://ubuntu.com/download/alternative-downloads, expecting to find a kernel image, squashfs filesystem or other stuff to make a networked install possible. The only thing that comes close that I found after quickly reading most of the messages here (and wasting a lot of time) is a link to Index of /ubuntu-mini-iso/daily-live. Besides the fact that we lost all the network configuration options that where in the debian-installer based mini.iso (how would a user without DHCP even use this?), I tried it out on our network hoping to use it on our workstations (dozens of them), and if didn’t even work. It seems to require more than 4 GB of RAM (I’m getting out of memory on 4 GB machines), and doesn’t even work properly to start the Ubuntu 22 installer (I’m getting an error about some /dev/pmem stuff).

Given the trend with the Ubuntu installation experience, I’m seriously considering switching all our PCs to Debian…

2 Likes

Closing - a full year without any useful on-topic discussion.