I am having major trouble building a working autoinstall process. This is for 20.04.2.0; first, testing it with a VMware ESXI host.
What I thought I could do:
- Boot the VM off the ISO and,
- Specify parameters at the kernel prompt to pull in autoinstall data and build the VM
The kernel/boot args I've recently tested (boot ISO, press SHIFT, enter commands):
vmlinuz=/casper/vmlinuz initrd=/casper/initrd autoinstall ip=dhcp ds=nocloud-net;s=http://our-mirror/media/ubuntu-20.04.2.0/
root=/dev/ram0 ramdisk_size=1500000 fsck.mode=skip autoinstall ds=nocloud-net;s=http://our-server/media/[contains user-data etc] ip=dhcp url=http://our-server/media/ubuntu-20.04.3-live-server-amd64.iso cloud-config-url=http://our-server/media/ [seems redundant] — splash
and a few variations of the above, based on different examples. There are many differing opinions about how this should work--the documentation I have found challenging.
Thus far, nothing has worked. I see the HTTP pull of the user-data, meta-data and vendor-data, but generally the process will crash/stop.
In one instance, Ubuntu created SSH keys and halted the install -- to facilitate login and log review. Great, save for the fact that you cannot copy-and-paste on VMware's console without VMware-tools installed. But, I did catch a couple of errors:
"no kernel command line url found"
and
"no local datasource found"
which I find puzzling. Shouldn't I be able to boot off the ISO of the same release, and point the installer to the autoinstall data and have it run? I have also tried booting off the ISO and having it pull/install from an HTTP ISO, multiple combinations of things. NO luck.
I do not understand the need for separate user-data, vendor-data and meta-data files -- it seems unnecessary, or it could simply be included under a YAML configuration in the autoinstall file ("user-data") or why those files MUST be in the root of the ISO directory. That won't scale if you are deploying different types of installations.
Kickstart isn't this complicated and is better documented.
We do have PXE available and we will be using Foreman, but we're not even close to that until I get a workable autoinstall. And for Foreman, you have to break down the install a bit (partitioning, provisioning).
I'm hoping someone can help clarify how to get this working; I've spent a lot of time trying to figure this out :)
Thanks in advance.