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

    VM cannot be migrated after NICs of one host died

    Scheduled Pinned Locked Moved Solved XCP-ng
    5 Posts 3 Posters 179 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.
    • H Offline
      hansve
      last edited by

      HI,

      I have 2 host in a pool with VMs distributed amongst them. Today first the NICs in one host (not the pool master) died and then the entire server became unstable (not always booting, but when it boots, it doesn't have any NIC).

      The problem is that I cannot migrate the VMs which running on that host or even restart the VMs again on the pool host because it thinks they are still running.
      The VM disks are on shared storage.

      How can I get these VMs to start on the pool master?

      thanks
      Hans

      nick.lloydN 1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        Hi,

        Try running the following command on your pool master for each VM that you are unable to start --

        xe vm-reset-powerstate vm=vm_name -force

        This will reset the power state so that you can start the VM on the remaining host.

        Regards,
        Dan

        H 1 Reply Last reply Reply Quote 0
        • nick.lloydN Offline
          nick.lloyd @hansve
          last edited by

          @hansve Since you have shared storage, you should be able to use the "Start on..." feature under the Advanced tab of the VM. That should let you start it on any of the hosts. I'm curious if it will work though because your NIC isn't being detected. You may have to get a USB Ethernet adapter to try and get it to move.

          The other option would be to forget the VMs if you can (similar to VMware's "remove from inventory" option). Then create a VM without any disks attached to it, then add the already existing disk to the VM and start it.

          I suppose you could do both of them as well. You'd get a USB NIC so you can have networking to the pool (as not to screw with the XAPI DB), then unregister the VMs, create shell VMs, attach disks, then start.

          If none of these work, let me know!

          1 Reply Last reply Reply Quote 0
          • H Offline
            hansve @Danp
            last edited by

            @Danp

            I was able to reset the power state, but when I wanted to start it on the remaining host, it returned an error:

            SR_BACKEND_FAILURE_46(, The VDI is not available [opterr=['HOST_OFFLINE', 'OpaqueRef:34e590d8-19ab-eb89-af81-5eead08952d1']], )

            Apparently there were still locks on the disk, so I looked up the uuid and removed it from the pool database

            xe vdi-forget uuid=....
            

            Next I gave it a new name, attached it to the VM and was able to restart the VM.
            Thanks for pointing me in the right direction !

            DanpD 1 Reply Last reply Reply Quote 0
            • DanpD Offline
              Danp Pro Support Team @hansve
              last edited by

              @hansve You're welcome.

              1 Reply Last reply Reply Quote 0
              • DanpD Danp marked this topic as a question on
              • DanpD Danp has marked this topic as solved on
              • First post
                Last post