Ubuntu desktop 22.04 autoinstall cloud init
-
Or can someone point me towards a better solution?
-
@Skreadz I don’t understand what you’re requesting exactly?
-
@Skreadz This might give you some information:
https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/8 -
@Tom-Elliott I want to make an autoinstall for Ubuntu Desktop 22.04 with fog.
According to my research, with version 22.04 it is no longer possible to use “d-i” preseeds.
And I can’t find any other solution. -
@Skreadz https://www.molnar-peter.hu/en/ubuntu-jammy-netinstall-pxe.html
There will likely need adjustment to make it ipxe compatible, but this seems like it’s still possible.
-
-
@Skreadz
What you need is this to get it ‘work’:jammy-desktop
set base-url http://server.example.com/iso/ubuntu/22.04
kernel ${base-url}/vmlinuz
initrd ${base-url}/initrd
imgargs vmlinuz initrd=initrd cloud-config-url=/dev/null ip=dhcp root=/dev/ram0 ramdisk_size=4800000 url=${base-url}/ubuntu-22.04.2-desktop-amd64.iso autoinstall ds=nocloud-net;s=${base-url}/
boot || goto failed- Mount the ‘desktop’/‘server’ to your local disk
- Extract the vmlinux and initrd, copy them to the baseurl location
- The root and ramdisk_size is necessary because the ISO is to large.
The code above works fine with ubuntu 22 server but for the desktop I am facing a issue.
The desktop will start direct to the GUI interface from where you can run the installer.
For the server it will run directly to the installer and so the ckoud-init file works fine. -
@kroepoek85
Yeah same here, it seems the user-data file didn’t count -
@kroepoek85
I think cloud-init method didn’t work with Ubuntu 22.04 desktop.
Maybe we can still use d-i presseed? -
@kroepoek85 it’s work with ubuntu live server 22.04 and then in the user-data file you write packages: ubuntu-desktop.
It work well, i can autoinstall ubuntu desktop now with fog ipxe menu. -