Ubuntu 22.04 Unattended Automatic Server into Desktop ISO

Опубликовано: 08 Август 2026
на канале: Velon
4,513
48

A short video on how to make an unattended fully automatic install from an ubuntu server a desktop since Ubuntu 22.04 complicate's a few things...

info used:
https://www.pugetsystems.com/labs/hpc...
https://github.com/canonical/autoinst...
https://releases.ubuntu.com/jammy/
song:    • Breakcore to heal you.  

commands used in the video:

sudo apt install p7zip
sudo apt install xorriso
sudo apt install whois

mkdir u22.04-autoinstall-ISO
cd u22.04-autoinstall-ISO
mkdir source-files

7z -y x ubuntu-22.04.2-live-server-amd64.iso -osource-files

cd source-files
mv '[BOOT]' ../BOOT

menuentry "Autoinstall Ubuntu Server" {
set gfxpayload=keep
linux /casper/vmlinuz quiet autoinstall ds=nocloud\;s=/cdrom/server/ ---
initrd /casper/initrd
}

mkdir source-files/server
touch source-files/server/meta-data
touch source-files/server/user-data

#cloud-config
autoinstall:
version: 1
packages:
ubuntu-desktop
snaps:
name: firefox
name: gnome-3-38-2004
name: gtk-common-themes
name: snap-store
name: snapd-desktop-integration
identity:
hostname: HOSTNAME
password: PASSWRD #mkpasswd --method=SHA-512 PASSWORD_HERE
username: USERNAME

cd source-files

xorriso -as mkisofs -r \
-V 'Ubuntu 22.04 LTS AUTO (EFIBIOS)' \
-o ../ubuntu-22.04-autoinstall.iso \
--grub2-mbr ../BOOT/1-Boot-NoEmul.img \
-partition_offset 16 \
--mbr-force-bootable \
-append_partition 2 28732ac11ff8d211ba4b00a0c93ec93b ../BOOT/2-Boot-NoEmul.img \
-appended_part_as_gpt \
-iso_mbr_part_type a2a0d0ebe5b9334487c068b6b72699c7 \
-c '/boot.catalog' \
-b '/boot/grub/i386-pc/eltorito.img' \
-no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info \
-eltorito-alt-boot \
-e '--interval:appended_partition_2:::' \
-no-emul-boot \
.