XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Can't boot new VM "NO_HOSTS_AVAILABLE"

    Xen Orchestra
    2
    8
    3419
    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.
    • C
      cg last edited by

      I created a new VM with XOA 5.53.1 (freshly updated) on an XPC-ng 8.2.0 host (no pool) and can't start the VM.

      It says:

        "name": "XapiError",
        "stack": "XapiError: NO_HOSTS_AVAILABLE()
      

      I don't see any reasons. Memory is enough available, Disks have been placed during creation... what's wrong?

      1 Reply Last reply Reply Quote 0
      • Danp
        Danp Top contributor 💪 last edited by

        A few questions --

        • What are the hardware specs for the host?

        • Have you verified that virtualization support is enabled in the BIOS?

        • Is XOA running as a VM on this same host?

        P.S. A single host is technically still running in a pool 🙂

        C 1 Reply Last reply Reply Quote 0
        • C
          cg @Danp last edited by cg

          @danp The host is running the XOA instance and already a Windows 10 and OpnSense VM.
          That should answer all questions. 😉

          IIRC the other VMs have been created with that XOA instance, but can't say for sure right now.

          (at least with XenServer you still had to create a pool manually, until then the server was pool-less)

          Danp 1 Reply Last reply Reply Quote 0
          • Danp
            Danp Top contributor 💪 @cg last edited by

            @cg You could try checking the logs (both XOA and XCP-ng) to see if that yields any further details. Have you tried starting the VM from the CLI?

            C 1 Reply Last reply Reply Quote 0
            • C
              cg @Danp last edited by

              @danp Hmm now that's tricky.

              XCP-ng center showed following dialog:
              698583cc-bf2c-4549-b3d3-3b415370bc7d-grafik.png

              I created a local iso repo with XOA, which is visible in XOA and XCP-ng.
              It's disconnected but the content still visible.

              As I recently upgraded XCP-ng to 8.2, it killed the /srv/iso-store repo, but XCP-still thinks it's there, just disconnected and also allows to insert the ISOs as boot media.

              It's a tricky situation and I consider it as a bug, though I don't really know how to fix that.
              Of course the repo is still in the database, as XCP-ng can't know if it's a "real" storage repo or not. Otherwise I wonder why it doesn't empty the scanned content at startup and rescans it - if no result (because of disconnection), empty the shown content.
              In current state it's a bit fiddling to debug and find the reason.

              Definately XCP-ng center gives a helpful feedback, whereas XOAs feedback is not pointing you to the cause of the error. This is definately a thing one could fix - if XCP-ng center is able to identify it, XOA should be, too. I can create an issue @ github. @olivierlambert ?

              1 Reply Last reply Reply Quote 0
              • Danp
                Danp Top contributor 💪 last edited by

                @cg Did you try xe vm-cd-eject --multiple to eject all CDs?

                C 1 Reply Last reply Reply Quote 0
                • C
                  cg @Danp last edited by cg

                  @danp Of course after I found the root cause, I fixed everything, VM is running.
                  ...more or less, seems Debian 10.7 netboot can't be used as install media, as it can't find the NIC. 😕
                  Seems it's missing or not recognized - even after I created a new VM:
                  006ae936-8617-47cf-b7ad-1f09e226e0cf-grafik.png

                  Edit: I might have an idea... could be a problem with opnsense (freebsd) and DHCP requests to Linux. Whereas it works for a Windows 10 VM.
                  Will check if that checksumthing fixes it.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cg @cg last edited by

                    As I ran into the same issue again: Is there no chance of getting a more informative error? "NO_HOSTS_AVAILABLE" is in the first view totally wrong and not helpful for debugging. ISO or at least storage not available would better help finding the problem (in this case an offline/disconnected iso repository).

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