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

    HAOS .ova says 'Management Agent Detected' but doesn't respond to stop/start

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 3 Posters 604 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.
    • B Offline
      BigHeadBighetti
      last edited by BigHeadBighetti

      I installed HAOS by importing an ova file into XO.

      XO says 'Management Agent Detected' but there is no OS logo icon next to the VM in the list of VMs in XO (Presence of the logo is an indicator that the guest tools are installed, recognized, and working).

      When I press the stop button, I get an 'Operation Blocked' Opaque Ref popup error notification as if the guest tools aren't working.

      I want to be able to gracefully shut the VM down with NUT.

      My version of XO is a year old.

      vm.stop
      {
        "id": "2c5897a7-2fe4-43dd-ecbc-207e258664a2",
        "force": false
      }
      {
        "code": "OPERATION_BLOCKED",
        "params": [
          "OpaqueRef:2f53e52d-0ffe-4841-ab9d-9b56bcb75777",
          "true"
        ],
        "task": {
          "uuid": "8311b925-779b-de5a-5450-06b3c375a38b",
          "name_label": "Async.VM.clean_shutdown",
          "name_description": "",
          "allowed_operations": [],
          "current_operations": {},
          "created": "20230105T18:42:00Z",
          "finished": "20230105T18:42:00Z",
          "status": "failure",
          "resident_on": "OpaqueRef:298b8e45-77cc-4d31-89df-6c46a23e5993",
          "progress": 1,
          "type": "<none/>",
          "result": "",
          "error_info": [
            "OPERATION_BLOCKED",
            "OpaqueRef:2f53e52d-0ffe-4841-ab9d-9b56bcb75777",
            "true"
          ],
          "other_config": {},
          "subtask_of": "OpaqueRef:NULL",
          "subtasks": [],
          "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_lifecycle.ml)(line 697))((process xapi)(filename ocaml/xapi/xapi_vm_helpers.ml)(line 1432))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 231))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 103)))"
        },
        "message": "OPERATION_BLOCKED(OpaqueRef:2f53e52d-0ffe-4841-ab9d-9b56bcb75777, true)",
        "name": "XapiError",
        "stack": "XapiError: OPERATION_BLOCKED(OpaqueRef:2f53e52d-0ffe-4841-ab9d-9b56bcb75777, true)
          at Function.wrap (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/_XapiError.js:16:12)
          at _default (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/_getTaskResult.js:11:29)
          at Xapi._addRecordToCache (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/index.js:898:24)
          at forEach (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/index.js:932:14)
          at Array.forEach (<anonymous>)
          at Xapi._processEvents (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/index.js:922:12)
          at Xapi._watchEvents (/opt/xo/xo-builds/xen-orchestra-202112300215/packages/xen-api/src/index.js:1087:14)"
      }
      
      DarkbeldinD 1 Reply Last reply Reply Quote 0
      • DarkbeldinD Offline
        Darkbeldin Vates 🪐 Pro Support Team @BigHeadBighetti
        last edited by

        @BigHeadBighetti Hi,

        Look in the VM advanced tab if it's not protected against shutdown.

        B 1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          My version of XO is a year old.

          😬

          B 1 Reply Last reply Reply Quote 1
          • B Offline
            BigHeadBighetti @Darkbeldin
            last edited by BigHeadBighetti

            @Darkbeldin That solved the problem! I assumed that the expected behavior for 'Prevent accidental shutdown' would be a "Are you sure you want to shutdown this VM?" dialog box. Not an error notification.

            1 Reply Last reply Reply Quote 0
            • B Offline
              BigHeadBighetti @olivierlambert
              last edited by

              @olivierlambert I built it from sources.. I'm reluctant to touch it because its working and I count on it. I'll upgrade it today.

              DarkbeldinD 1 Reply Last reply Reply Quote 0
              • DarkbeldinD Offline
                Darkbeldin Vates 🪐 Pro Support Team @BigHeadBighetti
                last edited by

                @BigHeadBighetti Just make a snapshot 😉
                And yes I know I already discuss this with XOA team to have a more obvoious warnin but you already have a "Are you sure you want to shutdown this VM?" even without the box checked

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post