Our Thinking / Field Notes / The Fix

TROUBLESHOOTING / PROXMOX VE VIRTUALISATION TROUBLESHOOTING

Proxmox VM Won't Start After Host Restart: What to Check

A safe, read-only route through the usual causes when a Proxmox VM stays off after a host reboot: storage that was not ready, lost cluster quorum, stale locks, missing devices and autostart settings.

Start here

Read the failed Start task in the Proxmox web interface first, then check the host's view of the VM with qm status and qm config. Most post-reboot failures come down to storage that was not ready when autostart ran, a cluster without quorum, a leftover lock, a missing passed-through device or autostart not being set. Fix the cause, then start the VM by hand and confirm it stays running.

Work out which problem you actually have

"Won't start after a restart" covers three quite different situations, and the quickest wins come from telling them apart before you touch anything.

The host probably ran its automatic start-up pass at boot, tried your VM, and either skipped it, failed it or started it. That one event decides which of the sections below you need.

  • The VM never tried to start: autostart (the Start at boot option) is not enabled, or the VM is managed by the High Availability stack, which handles its own starting. Go to the autostart section.
  • A start was attempted and failed: the task log shows an error such as a storage not being online, no quorum, a lock, a device that cannot be opened or QEMU exiting with code 1. This is the common case, and most of this article is about it.
  • The VM did start, but the guest operating system will not boot: you can open the console and see a boot failure. That is a guest problem rather than a Proxmox start problem, so jump to the short section near the end.

Read the failure before you retry it

Everything in this section only reads information. It tells you which of the later sections applies, and it preserves the evidence. Hammering Start repeatedly tends to bury the original error under newer, less informative ones.

  1. In the Proxmox web interface, look at the Tasks panel at the bottom of the screen and find the most recent Start task for the VM, or the host's start-all task from around boot time. Double-click it to read the full output. The last few lines normally name the cause.
  2. Open a shell on the host (the node's Shell button in the web interface, or SSH as an administrator). These commands list the VMs, show whether yours is running and display its configuration. The example uses VMID 100; replace it with your own VM's number.
    bash
    qm list
    qm status 100
    qm config 100
  3. Read what the host logged about guest start-up since it last booted. Nothing here changes the system. If the first command shows nothing useful, the second gives a wider view of errors from the whole boot.
    bash
    journalctl -b -u pve-guests
    bash
    journalctl -b -p err

Storage that was not ready when autostart ran

This is the most commonly reported cause, and it fits the symptom neatly: the VM fails at boot, yet starts perfectly when you press Start a few minutes later. The host began its autostart pass before the disk behind the VM was available. Typical culprits are network storage (NFS, Ceph and similar) when the storage appliance or switch was still coming up, a ZFS pool whose volumes had not appeared yet, or a second disk that had not mounted. Community reports describe the autostart pass as running once per boot, so a storage that arrives late stays unused until someone starts the guest.

Start with the storage IDs in the VM's config. In a line such as local-lvm:vm-100-disk-0, the part before the colon is the storage ID. Then check that each of those storages is active on this node.

  • Directory storage on a separate disk: confirm the filesystem is actually mounted at the path Proxmox uses. Replace the path with your own mount point. No output means it is not mounted.
    bash
    findmnt /mnt/YOUR_MOUNT_POINT
  • ZFS: confirm the pool is imported and healthy. A pool that is missing, or reporting a degraded or faulted state, needs resolving before any VM on it will start.
    bash
    zpool status
  • LVM: confirm the volume group and logical volumes are present and active. In the lvs output, an a in the attributes column means active.
    bash
    vgs
    lvs
  • If lvs shows the volumes active but the VM reports that a path under /dev for the volume group does not exist, a community-reported fix is to recreate the missing device nodes. This only recreates the special files under /dev for volume groups that exist; it does not alter data.
    bash
    vgscan --mknodes
  • Network storage: confirm the storage server or appliance is reachable from the host, the share is mounted and the network path has settled. If the whole site lost power and came back together, the NAS may simply have taken longer to boot than the hypervisor.
  1. Run the storage check on the affected node. Every storage your VM uses should show as active. One showing inactive or unknown is your prime suspect.
    bash
    pvesm status
  2. Once the underlying storage is healthy and active, start the VM by hand. A VM with a lot of memory can take longer than the default start timeout, which is the larger of 30 seconds or the VM's memory in GiB; the optional timeout setting extends it.
    bash
    qm start 100
    bash
    qm start 100 --timeout 180
  3. Check that the VM reports as running, then open its Console tab to confirm the guest is booting. Starting a VM by hand and seeing it work is reassuring but also slightly misleading: it proves the VM is fine, not that the next host restart will behave.
    bash
    qm status 100

Cluster hosts: check quorum

Skip this section if your host is standalone. In a cluster, quorum means a majority of nodes can see each other. Proxmox documents that the cluster switches to read-only mode when it loses quorum, and forum reports tie the error "cluster not ready - no quorum?" to VMs that refuse to start after a restart. A common pattern is several hosts rebooting together, or a host booting while its switch is still restarting.

Run the status command below on the affected node and look at the Quorate line. Yes means quorum is fine and this is not your cause. No means the node cannot see enough of its peers. The fix is to restore the missing nodes or the network between them: check the other hosts are up, the cluster network links are healthy and the switch has finished starting.

There is a command that forces the expected vote count down so a lone node regains quorum. Do not use it as a shortcut. If the other nodes are in fact running somewhere you cannot see, forcing quorum risks them making conflicting changes. That decision belongs with someone who knows the state of every node.

Once quorum returns, the VM may still be off because the autostart pass already ran and failed. Start it by hand. To start every guest marked for autostart on that node in one go, use the node-level start-all command instead. It starts all of them according to their configured order and delays, so check qm list first and be sure you want that.

bash
pvecm status
bash
pvenode startall

Locks, missing devices and CPU settings

If the task log did not point at storage or quorum, look at specific lines in the VM's configuration. This read-only command shows only the settings that most often block a start. Empty output for a line simply means that setting is not in use.

  • A lock line means a task such as a backup, snapshot or migration marked the VM as busy. If that task is still genuinely running, leave it alone. If the host restarted mid-task and nothing is running, the lock is stale and can be cleared.
  • hostpci or usb lines mean hardware passthrough. PCI addresses can change when hardware is added, removed or rearranged, and the VM may fail to start if the device is no longer where it was. Proxmox's resource mapping feature exists for this reason, and it stops HA from starting a guest with the wrong device.
  • The CPU type matters on cluster moves or after hardware changes. Proxmox will not start a VM with more virtual cores than the host physically has, and a VM using the host CPU type can fail if the host lacks flags the guest depends on.
  1. Run the filtered configuration check and note any lock, hostpci or usb lines.
    bash
    qm config 100 | grep -E '^(lock|hostpci|usb|cpu|cores|sockets|memory):'
  2. Only if a lock line is present and you have confirmed no backup, snapshot or migration is actually running (check the Tasks panel and the other cluster nodes), clear it. Impact: this removes the safety marker, so unlocking an operation that is still in progress can corrupt it. Rollback is not possible for a lock removed in error, which is why the confirmation comes first.
    bash
    qm unlock 100
  3. Start the VM and confirm it stays running. If a passed-through device is missing, put the hardware back, correct the device address in the VM's Hardware tab or ask whoever manages the hardware, before starting again.

Autostart not happening, or happening too early

If the VM never tried to start, or tried before its storage was ready, the durable fix is in the VM's start-up settings. These are configuration changes only. They take effect at the next host boot and do not affect VMs that are running now.

Start at boot enables autostart. Start/Shutdown order decides who goes first (lower numbers start first, and VMs with no order are started after those that have one). Startup delay is the wait before the next VM begins. Order applies only within a single host, and VMs managed by the HA stack are skipped by this logic.

A sensible pattern for a VM that depends on slow storage is to give the storage-related or foundational VMs an early order and a delay, so the dependent VMs start later. For a delay before any guest starts, a node-level setting adds an initial wait of up to 300 seconds after the host boots.

  1. Check whether the VM has autostart set. In the web interface this is the Start at boot entry on the VM's Options tab. The command line equivalent is to look for the onboot line in the VM's configuration.
    bash
    qm config 100 | grep -E '^(onboot|startup):'
  2. Enable autostart for the VM.
    bash
    qm set 100 --onboot 1
  3. Give it a position and delay. This example starts the VM first, with a 60 second pause before the next one. Adjust the numbers to your own dependencies.
    bash
    qm set 100 --startup order=1,up=60
  4. If storage or networking is consistently slow after boot, add a node-level delay before the first guest starts. This example waits 60 seconds. To roll back, set it to 0, which is the default.
    bash
    pvenode config set --startall-onboot-delay 60
    bash
    pvenode config set --startall-onboot-delay 0
  5. Roll back an individual VM's start-up order if it does not suit.
    bash
    qm set 100 --delete startup
  6. To confirm the fix works, the host has to restart, which stops every guest on it (Proxmox waits up to 180 seconds per VM for a clean shutdown by default before forcing it off). Do this in a quiet window, with the owners of the guests aware. After the host comes back, the VM should be running without anyone touching it, and the task log should show a successful Start.

If the VM starts but the guest will not boot

When the Proxmox task succeeds and the VM shows as running, the problem has moved inside the guest. Open the VM's Console tab and see where it stops. Repairing the guest operating system is a separate job, but three Proxmox-side checks are quick and rule out the common configuration causes.

  • Look at the Boot Order setting on the VM's Options tab. The disk should be enabled and ahead of any empty network or CD-ROM entry.
  • Check the Hardware tab for the disk and, on UEFI VMs, the EFI disk. A missing disk entry suggests a configuration change rather than a failing OS.
  • If the console shows file system or disk errors, stop and take advice before running repair tools. Repairs on a failing disk can make recovery harder.

Confirming it is sorted, and when to hand it over

You have succeeded when the VM is running, its console shows a healthy guest, and, if you changed start-up settings, it comes back by itself after the next planned host restart.

If none of the above explains it, collect the following before asking anyone for help: the full text of the failed Start task, the output of qm config for the VM (check it for credentials or private details first), pvesm status and, for clusters, pvecm status. That is what an experienced administrator will ask for first, and it saves a round trip.

Technical terms explained
HA
High Availability. A Proxmox cluster feature that starts and restarts designated VMs on healthy nodes automatically. HA-managed VMs are handled by that system rather than normal autostart.
LVM
Logical Volume Manager. It divides disk space into volume groups and logical volumes, which Proxmox can use as VM disk storage.
passthrough
Giving a VM direct access to a physical device, such as a PCI card or USB device, instead of a virtual one. The VM may fail to start if that device is missing.
quorum
In a Proxmox cluster, the state where a majority of nodes can communicate. Without it the cluster becomes read-only to protect against conflicting changes.
VMID
The unique number Proxmox VE gives each virtual machine, such as 100. Commands like qm start use it to identify the VM.
ZFS
A file system and volume manager that groups disks into pools. Proxmox can store VM disks on ZFS pools, which must be imported and healthy before VMs on them can start.

Sources and further reading

KEEP THE CONVERSATION GOING

Want a second pair of eyes on your Proxmox hosts?

If VMs keep failing to return cleanly after maintenance, we can help you work out the cause and set up start-up behaviour you can rely on.

Talk to us