Ubuntu 22.04.3 LTS install hangs at subiquity/install/install/postinstall/run_unattended_upgrades/cmd-in-target

Using packer version 1.10 and the base install using the iso is something I do rarely as problems like this are slow to troubleshoot. The install hangs at subiquity/install/install/postinstall/run_unattended_upgrades/cmd-in-target.

I have tried disabling the upgrades in the user-data but I cant tell if it is working. It hangs for over an hour and I give up.

Since every install test is 30 minutes minimum , it is slow going trying different things in the user-data file.

Does anyone have a user-data and json file that have worked with VMworkstation?

I have got this to work in the past with older versions of packer and ubuntu.

This is my current attempt at the user-data file:

#cloud-config
autoinstall:
version: 1
identity:
hostname: Ubuntu2204
username: frank
password: hash-here
network:
network:
version: 2
ethernets:
ens33:
dhcp4: true
ssh:
install-server: yes
allow-pw: yes
storage:
layout:
name: lvm
user-data:
disable_root: false
updates: security
late-commands:
- ‘sed -i “s/dhcp4: true/&\n dhcp-identifier: mac/” /target/etc/netplan/00-installer-config.yaml’

Here is the file that ended up working but another major issue I had was the RAM.
My old builders were for a 1024 , upped it to 4096 and not only was the build working (or failing) much faster it end the end allowed all the updates to work as well.

Build completed.

#cloud-config
autoinstall:
  version: 1
  early-commands:
    - sudo systemctl stop ssh
  identity:
    hostname: Ubuntu2204
    username: frank
    password: hashhere
  network:
    network:
      version: 2
      ethernets:
        ens33:
          dhcp4: true
  ssh:
    install-server: yes
  storage:
    layout:
      name: lvm
  user-data:
    disable_root: false
  updates: security
  late-commands:
    - echo 'frank ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/frank

My json build file

{
  "builders": [
    {
      "boot_command": [
	"c<wait>linux /casper/vmlinuz --- autoinstall cloud-config-url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/user-data ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}'<enter><wait5s>initrd /casper/initrd <enter><wait5s>boot <enter><wait5s>"
      ],
      "boot_wait": "5s",
      "guest_os_type": "ubuntu-64",
      "http_directory": "subiquity/http",
      "iso_checksum": "sha256:a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd",
      "iso_url": "iso/ubuntu-22.04.3-live-server-amd64.iso",
	  "disk_size": "15000",
      "disk_type_id": "0",
      "memory": 4096,
      "name": "ubuntu-22.04-live-server",
      "output_directory": "output/live-server_v22",
      "shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'coolpasswordhere'|sudo -S sh 'shutdown.sh'",
      "ssh_handshake_attempts": "100",
      "ssh_password": "coolpasswordhere",
      "ssh_pty": true,
      "ssh_timeout": "90m",
      "ssh_username": "frank",
      "type": "vmware-iso"
    }
  ],
  "provisioners": [
    {
      "inline": [
        "ls /"
      ],
      "type": "shell"
    }
  ]
}