Files
zroc/zroc-ova/packer/http/user-data
T
Justin 8b146bc340 ova: fix packer build — correct password hash, boot command, overlay copy
- Fix user-data password hash to match ssh_password (zroc-setup-temp)
- Increase boot_wait to 10s and escape semicolon in autoinstall boot command
- Add mkdir provisioner before file upload to ensure /tmp/overlays exists
- Build tested successfully: 1.4G OVA + 2.9G qcow2 in 15 minutes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:44:46 -04:00

83 lines
1.7 KiB
Plaintext

#cloud-config
autoinstall:
version: 1
locale: en_US.UTF-8
keyboard:
layout: us
source:
id: ubuntu-server-minimal
storage:
layout:
name: direct
config:
- type: disk
id: disk0
match:
size: largest
ptable: gpt
wipe: superblock-recursive
preserve: false
grub_device: true
- type: partition
id: part-efi
device: disk0
size: 512M
flag: boot
number: 1
preserve: false
- type: format
id: fmt-efi
volume: part-efi
fstype: fat32
preserve: false
- type: partition
id: part-root
device: disk0
size: -1
number: 2
preserve: false
- type: format
id: fmt-root
volume: part-root
fstype: ext4
preserve: false
- type: mount
id: mnt-root
device: fmt-root
path: /
- type: mount
id: mnt-efi
device: fmt-efi
path: /boot/efi
identity:
hostname: zroc-appliance
username: zroc
password: "$6$packer$gwlQZBIqCQJgsuatoEA7pHxI3qdmXPR/PHH6s8Nw8LTKz.OABa.LAU9JvGKcXPKjxNOIVRoKMVNNjMJyIWKM30"
ssh:
install-server: true
allow-pw: true
packages:
- curl
- wget
- git
- vim
- htop
- net-tools
- open-vm-tools
- ca-certificates
- gnupg
- lsb-release
- unattended-upgrades
- apt-transport-https
late-commands:
- echo 'zroc ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/zroc-packer
- chmod 440 /target/etc/sudoers.d/zroc-packer
- echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /target/etc/sysctl.d/99-zroc.conf