Automated installation constantly crashes with "No such file or directory (os error 2)", ignores reboot_on_error = false

nhubbard

New Member
Mar 14, 2025
12
0
1
Hello all,

I'm not exactly sure what's going on here, and debugging is made more difficult because setting reboot_on_error = false isn't working.

I have an automated install server using the same code as the per-MAC address server in the Automated Install wiki page.

It successfully gets the config file from the server, but then dies with the error No such file or directory (os error 2). I can't debug it because it constantly reboots on errors despite having it configured not to do so. I also had to repack the install ISO because the DHCP timeout for my network was far too short.

Here's my configuration:

Code:
[global]
keyboard = "en-us"
country = "us"
fqdn = "**removed**"
mailto = "**removed**"
timezone = "America/Detroit"
root_password = "**removed**"
reboot_on_error = false

[network]
source = "from-answer"
cidr = "172.20.128.100/21"
dns = "172.20.83.12"
gateway = "172.20.128.1"

[disk-setup]
filesystem = "ext4"
lvm.swapsize = 0
lvm.maxvz = 0
disk_list = [ "sda" ]

[first-boot]
source = "from-iso"
ordering = "fully-up"

[network.filter]
ID_NET_NAME_MAC = "enx90b11c12940f"

I manually verified that it was able to find the network adapter, and it does have an entry for /dev/sda.

Any ideas?
 

Attachments

  • rpviewer (1).png
    rpviewer (1).png
    80.9 KB · Views: 4
Last edited:
Hi,

what ISO version do you exactly use?
Have you checked that the auto-installer receives the correct answer file? E.g. using curl http://172.20.128.122:8000/answer
What is the exact command you used to prepare the ISO for auto-installation?

You can also boot into debug mode and manually run the auto-installer.

When you are in the second, proper debug shell, run:
Code:
dhclient -v
proxmox-low-level-installer dump-udev
proxmox-fetch-answer >/run/automatic-installer-answers
proxmox-auto-installer </run/automatic-installer-answers


debugging is made more difficult because setting reboot_on_error = false isn't working.
FWIW, that has been already fixed in https://git.proxmox.com/?p=pve-installer.git;a=commit;h=254bfaee87f55c91c5811b3dd93128f2fcb865ca, but there hasn't been a new PVE (ISO) release since that.
 
repacked using a combination of two scripts from here
That's a custom ISO then. Please try with the official ISO - otherwise cannot really help you, as the modified ISO might as well just be broken.

Manual run in debug mode didn't produce anything different:
Sorry, missed a step there. Run proxmox-low-level-installer dump-env before proxmox-low-level-installer dump-udev.
 
Is there any way to specify the URL that the fetch answer command does while using an official, un-repacked ISO?
 
Last edited:
Just figured it out. No change in behavior, same error ("No such file or directory (os error 2)") when doing the automated install process manually.
 
Just tried 8.0-2 and it didn't work, but it also didn't have the proxmox-low-level-installer dump-udev and proxmox-fetch-answer commands, so I'm going to try 8.1-2.
 
Last edited:
New progress, but still not towards a functioning install. Same error occurred when I tried to do the install using an embedded config from the ISO. I'm going to try doing it without Ventoy and see what happens.
 
Funny enough, the same exact issue happened when writing the ISO file directly to the USB drive with Rufus. I'm running out of ideas here
 
Again, please provide exact command you used to prepare the ISO for auto-installation. That might also reveal some things.

You can also try e.g. the PDM 0.1-ALPHA ISO for debugging purposes, that ships a newer installer with some fixes and better error handling in certain cases.
 
The command for the config in the ISO file was proxmox-auto-install-assistant prepare-iso proxmox_ve-8.3-1.iso --fetch-from iso --answer-file {system MAC address}.toml

The command for the config from the HTTP server was proxmox-auto-install-assistant prepare-iso proxmox_ve-8.3-1.iso --fetch-from http --url http://172.20.128.122:8000/answer
 
Is there a version of the Proxmox ISO with a debug build of the proxmox-auto-installer command that logs the complete content of any errors? I'm not sure what file it's failing to find, but I think knowing that will help figure this issue out.
 
The command for the config in the ISO file was proxmox-auto-install-assistant prepare-iso proxmox_ve-8.3-1.iso --fetch-from iso --answer-file {system MAC address}.toml

That's probably the reason for the error, from your answer file:
[first-boot]
source = "from-iso"
ordering = "fully-up"
Try removing the section, if you not using it. Due to the above configuration, it will of course try to load a file from the ISO, which you is not there.