How To

Protect VM from accidental deletion in Proxmox VE

Proxmox is a powerful open-source and enterprise-grade virtualization platform that uses a modified Debian kernel to deploy and manage multiple virtualized environments on bare metal server hardware. Proxmox Virtualization environment exists to help businesses run and manage virtual machines, containers, and physical hypervisors.

Original content from computingforgeeks.com - post 67030

In this short article we shall look at how you can prevent accidental Virtual Machine deletion on Proxmox Virtualization Environment. We’ll use a setting on Web interface to protect a VM on Proxmox from accidental deletion until flag is turned off.

VM > Options > Protection: <boolean> (default = 0)

Prevent VM accidental deletion on Proxmox VE

Login to your Proxmox VE through the web dashboard.

protect vm from accidental deletion in proxmox ve 01

Click on the Virtual Machine you’ll like to protect from accidental deletion and go to Options > Protection

protect vm from accidental deletion in proxmox ve 02

Change the setting flag/boolean from No (0) to Yes(1)

protect vm from accidental deletion in proxmox ve 03

The setting should look like below after the change.

protect vm from accidental deletion in proxmox ve 04

From this point you won’t be able to delete the Virtual Machine while the setting is on. Let’s demonstrate this with the Virtual Machine we just enabled delete protect on.

protect vm from accidental deletion in proxmox ve 05

We can input VM ID and attempt the deletion.

protect vm from accidental deletion in proxmox ve 06

Here is the error message encountered.

protect vm from accidental deletion in proxmox ve 07

From the message we can conclude our Virtual Machine is now protected from accidental deletion. Until you manually disable the setting you won’t be able to remove the Virtual Machine from Proxmox Virtual Environment.

Similar guides on Proxmox:

Keep reading

Install KVM and Virt-Manager on Arch Linux Virtualization Install KVM and Virt-Manager on Arch Linux Virsh Commands Cheatsheet for KVM Virtual Machine Management KVM Virsh Commands Cheatsheet for KVM Virtual Machine Management Install VirtIO Drivers on Windows Server 2025 / Windows 11 KVM Install VirtIO Drivers on Windows Server 2025 / Windows 11 Recover a Headless Proxmox or Linux Box With an IP-KVM Proxmox Recover a Headless Proxmox or Linux Box With an IP-KVM Best IP-KVM for a Homelab: JetKVM vs PiKVM vs NanoKVM vs Comet Proxmox Best IP-KVM for a Homelab: JetKVM vs PiKVM vs NanoKVM vs Comet Configuring Open vSwitch on CentOS | RHEL | Fedora Networking Configuring Open vSwitch on CentOS | RHEL | Fedora

Leave a Comment

Press ESC to close