[SOLVED] Getting partition_label error when fetching auto-install answers from iso

defaultcube

New Member
Nov 28, 2024
3
1
3
I've successfully created an auto-install ISO in the past using the command...

proxmox-auto-install-assistant prepare-iso ./proxmox-ve_8.2-2.iso --fetch-from iso --answer-file ./pve_answers.toml

... and the answer file

Code:
[global]
keyboard = "en-us"
country = "us"
fqdn = "pve3.<host-redacted>"
mailto = "nobody@<host-redacted>"
timezone = "America/New_York"
root_password = "<root-password-redacted>"
root_ssh_keys = [
    "<ssh-key-redacted>"
]

[network]
source = "from-answer"
cidr = "<ip-redacted>/24"
dns = "<ip-redacted>"
gateway = "<ip-redacted>"
filter.ID_NET_NAME_MAC = "<mac-redacted>"

[disk-setup]
filesystem = "ext4"
disk_list = ["/dev/sda"]

All of a sudden, I'm getting errors on boot that the installer can't parse the answers due to an unexpected field that seems to pertain to the --fetch-from partition option:

Code:
ERROR: Failed to parse '/cdrom/auto-installer-mode.toml': TOML parse error at line 2, column 1
  |
2 | partition_label = "proxmox-ais"
  |
unknown field `partition_label`, expected `mode` or `http`

My understanding from the auto install instructions was that the partition_label was only needed if the answers were being fetched from a partition instead of the ISO (or http or other). Is this correct?

The auto-installer-mode.toml file that the auto install assistant emits is as follows:

Code:
mode = "iso"
partition_label = "proxmox-ais"


[http]

Is there something I should be doing differently to prevent the partition_label field from going into the toml? Also, why is this auto-installer-mode.toml file created? Is this essentially a log of the toml that has been written to the ISO?

I'm using proxmox-auto-install-assistant 0.1.0. Any help would be much appreciated!

Thank you.
 
Turns out I had inadvertently upgraded to auto installer package v8.3.3. Reverting to 8.2.6 seems to have solved it. Still interested to know if this is a known issue?
 
Hi,

yeah, newer versions of proxmox-auto-install-assistant are (unfortunately) not necessarily compatible with older ISO. (E.g. your proxmox-auto-install-assistant from the 8.3.3 is newer than the 8.2-2 ISO).

Is there a particular reason for using the 8.2-2 ISO, rather than the current 8.3 one?
 
Ah. Assistant 8.3.3 does sure enough work with ISO 8.3-1. I was certain I had tried this combination yesterday but evidently I didn't. Just gave it a shot and it came right up. Many thanks!
 
  • Like
Reactions: cheiss
Great! :)

Please just mark the thread as SOLVED by editing the first post, there should be a dropdown for that near the title field! This helps others with the same problem find this thread more easily!