Weird issue when using autoinstall its fires up cloud-init and starts doing something but gets to subiquity/meta/status_get and its falls over.
So heres what i'm using
ubuntu 20.04 moved to 22.04
packer 1.9.1
deploying ubuntu-22.04.2-live-server-amd64.iso
cd_files = [
"./http/meta-data",
"./http/user-data"
]
cd_label = "cidata"
boot_wait = "2s"
boot_command = [
"<enter><wait><f6><wait><esc><wait>",
"linux /casper/vmlinuz ",
"<wait><enter>",
"initrd /casper/initrd",
"<wait><enter>",
"autoinstall",
"<wait><enter>",
"boot"
]
user-data file is as follows. (stripped to barebones)
#cloud-config
autoinstall:
version: 1
identity:
hostname: tf-edu-ubuntu
realname: builduser
username: builduser
password: "encrypted"
this is the error im getting.
enter image description here
Any help would be appreciated even if its to get more logs.
Hoping someone one would have come across this? Well here goes.
Update added some logging to packer and found the following.
2023/07/21 09:12:13 packer-builder-vsphere-iso plugin: [INFO] Waiting for SSH, up to timeout: 2h46m40s
==> vsphere-iso.this: Waiting for SSH to become available...
2023/07/21 09:12:13 packer-builder-vsphere-iso plugin: [DEBUG] Error getting SSH config: SSH_AUTH_SOCK is not set
Update
With the SSH issue I used putty to connect to the server but the username and password used in both the user-data and vSphere configuration will not allow me to connect.
I found the answer tucked away. This worked and enabled cloudinit.
boot_command = [
"<down><down><down><end>",
" autoinstall ds=nocloud;",
"<F10>"
]