Technical

VMs and LXCs are frequently ‘unknown status’: fix the three causes

VMs and LXCs are frequently ‘unknown status’: fix the three causes

VMs and LXCs are frequently ‘unknown status’ in Proxmox when the node can’t read their config or state. It’s storage, lock files, or HA. Check in that order and you’ll have it fixed in minutes.

Detailed view of audio equipment with cables and sound card connections in a studio setting.

Check storage first

Unknown status almost always means Proxmox lost access to the storage where the VM or LXC lives. Open Datacenter → Storage and look for a question mark or red X. If the storage is NFS or iSCSI, the mount probably dropped. Reconnect it or restart the storage service.

For NFS, check pvesm status and mount | grep nfs. If the mount is stale, unmount and remount it:

umount -l /mnt/pve/nfs-share
mount -a

If it’s local storage, check disk health. A failing disk or full filesystem will make the config unreadable.

Detailed view of a SATA power cable connector with colorful wiring.

Look for lock files

If storage is fine, a stale lock file is the next suspect. Locks live in /var/lock/lxc for containers and /var/lock/qemu-server for VMs. A crashed backup or migration leaves a .lock file behind, and the GUI shows unknown status because it can’t get a lock.

List them:

ls -la /var/lock/lxc /var/lock/qemu-server

If you see a lock for the affected VMID, delete it. The VM or LXC should come back to stopped or running status immediately.

Disable HA temporarily

If the VM or LXC is in a High Availability group, HA can cause unknown status when the resource is in a weird state. Try disabling HA for that resource:

ha-manager set vm:100 --state disabled

Then check ha-manager status. If the resource shows as disabled and the VM status becomes known, you can re-enable HA after fixing the underlying issue. Sometimes the HA manager itself is stuck, and a restart of pve-ha-lrm and pve-ha-crm helps.

I’d also check the syslog for errors around the time the status changed. journalctl -u pve-ha-lrm -u pve-ha-crm --since "1 hour ago" usually shows what went wrong.

If none of this works, the config file itself might be corrupted. Look at /etc/pve/qemu-server/100.conf or /etc/pve/lxc/100.conf and make sure it’s valid. A syntax error there will also cause unknown status.

One more thing: don’t shotgun this. Storage, locks, HA. That order covers 95% of cases. If you’re still stuck, the Proxmox Random Freeze post has a similar checklist approach that might help you think through it.

Leave a comment

Comments are reviewed before they appear. Your email is never published.