Remove a VM without Destroying the Disk
-
Hey all! I'm trying to decommission my first Xen VM. In VMWare, I used to just "unregister" the VM, and then move the disk files over to cold storage on my NAS.
When I try to "remove" the VM in XCP-NG it warns me that it's going to delete the disks.
Question is... How can I "remove" the VM configuration such that the VM is not available anymore, but still keep the disks intact? Is this possible with XCP-NG? Perhaps I need to re-think how I'm executing this...
-
@JSylvia007 Just detach the disk from the VM before you delete the VM.. Then youu can create a new VM and attach the disk later.. Just make sure you name the disk something sensible so you know what it is LOL
-
@Anonabhar - Brilliant. That's exactly what I was loking for...
Second (but related question) - once I delete the VM, will all my backups for that VM become invalid? I don't actually mind deleting the VM and the active disk, IF I can just go into restore and restore the VM.
-
@JSylvia007 If you made the backup with a tool like XO / XOA then the backups should be unaffected. So long as they were proper backups and not just snapshots ! LOL
If you are worried, just do a restore before you delete the original VM. It will have the date appended to the end of the VM name, so it will not overwrite the existing VM..
-
@Anonabhar Thanks!! This worked exactly as you described!