This is not directly relevant to proxmox i put it here incase someone comes here looking for a solution.
I encountered an issue on pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve) running a alpine-virt-3.21.0-x86.iso vm with cloud-init 24.3.1 installed, where cloud-init failed to mount the proxmox generated cloud-init ISO (/dev/sr0) with an “Invalid argument” error.
The failure originates in cloudinit/util.py within the mount_cb function, which tries to run mount -o ro -t auto /dev/sr0 <mountpoint>
On this minimal Alpine setup, the iso9660 kernel module was not loaded at boot, causing the automatic filesystem detection (-t auto) to fail.
Manually mounting with the filesystem type explicitly specified (mount -o ro -t iso9660 /dev/sr0 /mnt) worked perfectly, confirming the root cause.
Solution:
Load the iso9660 kernel module automatically at boot by creating /etc/modules-load.d/iso9660.conf with the line:
iso9660
This ensures the module is loaded early, allowing cloud-init’s auto mount to succeed without manual intervention.
I encountered an issue on pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve) running a alpine-virt-3.21.0-x86.iso vm with cloud-init 24.3.1 installed, where cloud-init failed to mount the proxmox generated cloud-init ISO (/dev/sr0) with an “Invalid argument” error.
The failure originates in cloudinit/util.py within the mount_cb function, which tries to run mount -o ro -t auto /dev/sr0 <mountpoint>
On this minimal Alpine setup, the iso9660 kernel module was not loaded at boot, causing the automatic filesystem detection (-t auto) to fail.
Manually mounting with the filesystem type explicitly specified (mount -o ro -t iso9660 /dev/sr0 /mnt) worked perfectly, confirming the root cause.
Solution:
Load the iso9660 kernel module automatically at boot by creating /etc/modules-load.d/iso9660.conf with the line:
iso9660
This ensures the module is loaded early, allowing cloud-init’s auto mount to succeed without manual intervention.