Remove VM but retain disk

gob

Renowned Member
Aug 4, 2011
69
2
73
Chesterfield, United Kingdom
Hi

I had a broken Nextcloud VM with two disks attached - one for the OS and one for the data.
I built a new VM with a new OS disk and added the previous data disk from the broken VM so both VMs share one data disk.
I would like to remove the broken VM but I do not want it to delete the data disk that is currently being used by the good working VM.

What is the best way to do this?

thanks
 
You need to rename the disk, so that the VMID in the disk name points to the new VM. But exact steps depends on the storage type and VM config you use.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!