XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Remove a VM without Destroying the Disk

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 2 Posters 1.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JSylvia007J Offline
      JSylvia007
      last edited by

      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...

      AnonabharA 1 Reply Last reply Reply Quote 0
      • AnonabharA Offline
        Anonabhar @JSylvia007
        last edited by

        @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

        JSylvia007J 1 Reply Last reply Reply Quote 0
        • JSylvia007J Offline
          JSylvia007 @Anonabhar
          last edited by

          @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.

          AnonabharA 1 Reply Last reply Reply Quote 0
          • AnonabharA Offline
            Anonabhar @JSylvia007
            last edited by

            @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..

            JSylvia007J 1 Reply Last reply Reply Quote 1
            • JSylvia007J Offline
              JSylvia007 @Anonabhar
              last edited by

              @Anonabhar Thanks!! This worked exactly as you described!

              1 Reply Last reply Reply Quote 0

              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
              • First post
                Last post