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

    Remove running host

    Scheduled Pinned Locked Moved Solved Management
    5 Posts 2 Posters 104 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.
    • K Offline
      kassebasse
      last edited by

      Hi!
      I've gotten myself into a bit of a mess I guess and I need help to resolve it. I changed storage on one of my host, and that meant that I did not power down the host correctly. But now, when I try to forget the host, a running VM does not let me remove the host.

      The problem:

      1. The host is "running" even though it is not connected.
      2. It has a "running" ghost VM
      3. The VM has a GPU attached
      4. Trying to shut the VM down results in the host offline error message.

      How can I resolve this issue?

      1 Reply Last reply Reply Quote 0
      • D Offline
        Davidj 0
        last edited by

        @kassebasse said in Remove running host:

        Hi!
        I've gotten myself into a bit of a mess I guess and I need help to resolve it. I changed storage on one of my host, and that meant that I did not power down the host correctly. But now, when I try to forget the host, a running VM does not let me remove the host.

        The problem:
        The host is "running" even though it is not connected.
        It has a "running" ghost VM
        The VM has a GPU attached
        Trying to shut the VM down results in the host offline error message.

        How can I resolve this issue?

        @kassebasse , please clarify a few things:

        1. When you sat that the host is "running", do you mean that the host is powered on?
        2. Is there an SR on the host?
        3. Is there any data on the host that you want to keep?
        4. What are you trying to accomplish by forgetting the host?
        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kassebasse @Davidj 0
          last edited by

          @Davidj-0

          1. I mean that Xen Orchestra sees the host as running. Even though it should show offline. The host has been reinstalled, due to upgrading the storage (local disks only)

          2. There is only a local SR on the host that has been totally wiped (meaning that the operating system of the host is no longer existing and the disks are removed long ago)

          3. All the important VM:s has already been migrated to another host. This host does no longer exist, therefore I wonder why Xen Orchestra shows it running and powered on.

          4. I am just trying to remove the host, because it is no longer exists. The host has been completely wiped, and rejoined again as another host (because of a fresh reinstallation)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            Davidj 0 @kassebasse
            last edited by

            @kassebasse said in Remove running host:

            I am just trying to remove the host, because it is no longer exists

            In that case, try

            xe host-declare-dead
            

            You will need the prior UUID of the host, that is, the UUID assigned to the host before you reinstalled xcp-ng.
            xe host-list will provide that.

            Read the warnings about host-declare-dead carefully.

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              kassebasse @Davidj 0
              last edited by

              @Davidj-0

              Thank you, this solved my issue.

              1 Reply Last reply Reply Quote 1
              • olivierlambertO olivierlambert marked this topic as a question on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • First post
                Last post