This is my first post here so please have patience :)
I am trying to build a Ubuntu 20.04.5 image with Packer(1.8.4) on Proxmox(7.2-11). Everything seems to be working fine (get IP, reads cloud-init config via HTTP, starts the install, installs kernel) until the installation of qemu-guest-agent with subiquity. It fails to run the install command, generates a crash report and asks to hit enter to get a terminal. For 20.04.4 ISO image everything works fine with the same exactly config in Packer.
cloud-init config:
#cloud-config
autoinstall:
version: 1
locale: en_US
keyboard:
layout: en
network:
version: 2
ethernets:
ens18:
dhcp4: true
ssh:
install-server: true
allow-pw: false
disable_root: true
ssh_quiet_keygen: true
allow_public_ssh_keys: true
packages:
- qemu-guest-agent
- sudo
storage:
swap:
size: 0
config:
- {ptable: gpt, path: /dev/vda, preserve: false, name: '', grub_device: true, type: disk, id: disk-vda}
- {type: partition, number: 1, device: disk-vda, flag: bios_grub, size: 1M, id: vda-grub}
- {type: partition, number: 2, device: disk-vda, flag: boot, size: 1G, id: vda-boot}
- {type: partition, number: 3, device: disk-vda, size: -1, id: vda-lvm}
- {type: lvm_volgroup, name: vg-ubuntu, devices: [vda-lvm], id: vg-ubuntu}
- {type: lvm_partition, volgroup: vg-ubuntu, id: lv-root, name: lv-root, size: -1}
- {type: format, fstype: ext4, volume: vda-boot, id: vda-boot-fs}
- {type: format, fstype: xfs, volume: lv-root, id: lv-root-fs}
- {type: mount, path: /, id: m-root, device: lv-root-fs}
- {type: mount, path: /boot, id: m-boot, device: vda-boot-fs}
user-data:
package_upgrade: true
timezone: Europe/Bucharest
users:
- name: devops
groups: [adm, sudo]
lock-passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
# passwd: your-password
ssh_authorized_keys:
- MyPublicKey
I have no idea if this comes from Ubuntu new iso or Packer but as the same config works for 20.04.4 I think it comes from something new that was included in last release.
Does anyone have an idea or experienced the same?
Thanks in advance for your answers!
/var/log/installer/
and/target/var/log/apt/
, and to runjournalctl
. – Andrew Lowther Nov 16 '22 at 00:03journalctl
as you mentioned. it is returning error 100. this is the screenshot. i have been using a fresh ubuntu 20.04.5 iso as well. – cindrmon Jan 26 '23 at 08:24user-data
doesn't contain any network section. although, i also want to ask how to configure apt inuser-data
. what do you think i should do to update like latest repositories and such? also, here's another link for a bin which contains my currentuser-data
. – cindrmon Jan 27 '23 at 00:11qemu-guest-agent
through the autoinstall script, and it somewhat doesn't even find the package at all. i tried running it on the error shell and this is the result. i don't have any clue to force curtinstall to update its sources, as i feel like it doesn't update its sources. – cindrmon Jan 27 '23 at 06:54sources.list
when pullingqemu-guest-agent
.. as you said that "the error code is 100 because of invalid apt repos or misconfigured networking." i've tried configuring the networking, but you mentioned that "removing thenetwork
directive helps solve the problem" in one of your given backlinked issues. i mean, removingqemu-guest-agent
in the list of packages work, so i'm feeling that there is an issue with the sources, but i don't know how to fix that. – cindrmon Jan 28 '23 at 00:59