PDA

View Full Version : [SOLVED] 20.04 Unattended installation process



coolpul
April 17th, 2020, 01:43 PM
Hi,
We are trying to create unattended installation of Ubuntu-20.04 Desktop edition and would like the inputs for the same.
Can we perform through netboot method or Live image method?

We have tried using Netboot method and did not work with error as Network was unreachable. Tried to ping the network and it was working fine

Entries made to Grub file is as shown below with netboot option:
menuentry "Install Ubuntu 20.04" --id 2004 {
linux netboot_1/vmlinuz root=/dev/nfs boot=casper netbot=nfs nfsroot=192.168.x.xxx://OS/ubuntu2004 automatic-ubiquity url=http://xx.xxx.xx.xx/ubuntu/preseed/ubuntu2004.cfg console-setup/ask_detect=false keyboard-configuration/layoutcode=us netcfg/choose_interface=auto locale=en_us netcfg/get_hostname=ubuntu20.04 biosdevname=0 systemd.mask=dev-hugepages.mount systemd.mask=dev-mqueue.mount systemd.msk=sys-fs-fuse-connections.mount syetmd.mask=sys-kernel-config.mount systemd.mask=sys-kernel-debug.mount systemd.mask=tmp.mount splash toram nomodeset
initrd netboot_focal/initrd
}

With below method, I am facing Live image not found.
Entries made to Grub file is as shown below with Live image option:
menuentry "Install Ubuntu 20.04 Live" --id 2004Live {
linux netboot_1/vmlinuz automatic-ubiquity url=http://xx.xxx.xx.xx/ubuntu/preseed/ubuntu2004.cfg console-setup/ask_detect=false keyboard-configuration/layoutcode=us netcfg/choose_interface=auto locale=en_us netcfg/get_hostname=ubuntu20.04 biosdevname=0 systemd.mask=dev-hugepages.mount systemd.mask=dev-mqueue.mount systemd.msk=sys-fs-fuse-connections.mount syetmd.mask=sys-kernel-config.mount systemd.mask=sys-kernel-debug.mount systemd.mask=tmp.mount splash toram nomodeset
initrd netboot_focal/initrd
}

Any help to create unattended installation of U20.04 would be appreciated.

TIA.

dino99
April 17th, 2020, 04:15 PM
The 20.04 netboot image does not exist yet
https://help.ubuntu.com/community/Installation/Netboot
https://help.ubuntu.com/community/Installation/NetbootInstallFromInternet
http://cdimage.ubuntu.com/netboot/

Wait the month end to get it.

coolpul
April 27th, 2020, 02:49 PM
Hi,
We are using Server NFS version as 3.
Any help on enabling automation of OS Provision without netboot.

TheFu
April 27th, 2020, 03:39 PM
For 20.04 Servers: https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls Link provided in the Release Notes, so you've probably seen it.
Don't know about desktops.

When any system is installed using the server installer, an autoinstall file for repeating the install is created at /var/log/installer/autoinstall-user-data.
The desktop seems to write data to that directory, but the autoinstall* file doesn't exist.

For bare metal installs, I’d look at Cobbler. That's what a University around here uses.

Sliph
April 28th, 2020, 08:44 AM
I've been struggling a bit with it too, but finally here's what works for me:
Keep in mind that i host the unpacked iso on an NFS-server running nfs-kernel-server.
This is served through pxe efi adapted from http://c-nergy.be/blog/?p=13334

The "pcie_aspm=off"-bit is for a bug with the manufacturer BIOS, so that's pretty specific to my usecase.


menuentry "Preseeded Install (Ubuntu 20.04 NFS)" {
set gfxpayload=keep
linux /boot/casper/vmlinuz ip=dhcp nfsroot=10.0.0.1:/var/www/html/desktop/focal/ netboot=nfs file=/cdrom/preseed/myseed.seed auto=true priority=critical debian-installer/locale=nb_NO keyboard-configuration/layoutcode=no ubiquity/reboot=true languagechooser/language-name=English countrychooser/shortlist=NO localechooser/supported-locales=nb_NO.UTF-8 boot=casper automatic-ubiquity initrd=casper/initrd systemd.mask=tmp.mount quiet --- pcie_aspm=off
initrd /boot/casper/initrd
}

edit:

To be honest, I'm not sure what all the parameters do, it's a bit of a frankenstein to be sure.