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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login