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

    Cannot resume an imported image

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 2 Posters 708 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.
    • A Offline
      ashinobi
      last edited by

      Hi, Everyone.

      Hope you can help me with my dilemma. Here is the scenario.

      I have a Windows 10 machine that came from Vmware Workstation. Before booting it, I have enabled Windows Update in the ADvance settings in XO. It was able to boot and I was successfully login, it rebooted twice and I was able to login (it just rebooted on its own without me triggering it). On the 3rd reboot it got stuck so I manually click the reboot option in XO for this VMGuest. Instead of rebooting it just stop and the only option in XO for this VMGuest is Resume and Snapshot. So I went into terminal for xcp-ng and try the following:

      [22:12 home-hypervisor ~]# xe vm-start uuid=60fe04d2-de81-3e26-ed05-fcdee68c305e
      You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call.
      vm: 60fe04d2-de81-3e26-ed05-fcdee68c305e (Network simulators)
      expected: halted
      ``
      
      [22:21 home-hypervisor ~]# xe vm-reboot force=true vm=60fe04d2-de81-3e26-ed05-fcdee68c305e
      The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
      message: unspecified domain type
      
      [22:13 home-hypervisor ~]# xe vm-shutdown  uuid=60fe04d2-de81-3e26-ed05-fcdee68c305e
      You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call.
      vm: 60fe04d2-de81-3e26-ed05-fcdee68c305e (Network simulators)
      expected: running
      actual: paused
      
      [22:20 home-hypervisor ~]# xe vm-destroy uuid=60fe04d2-de81-3e26-ed05-fcdee68c305e
      You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call.
      vm: 60fe04d2-de81-3e26-ed05-fcdee68c305e (Network simulators)
      expected: halted, suspended
      actual: paused
      

      My question is how

      1. Is it still possible to run this image again?
      2. If not how can I remove it?
      1 Reply Last reply Reply Quote 0
      • stormiS Offline
        stormi Vates 🪐 XCP-ng Team
        last edited by

        I think xe vm-reset-powerstate should work to force XAPI to reevaluate the state of the VM.

        A 1 Reply Last reply Reply Quote 1
        • A Offline
          ashinobi @stormi
          last edited by

          @stormi

          Thanks for the big help that fixed the issue.

          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