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

    No Hosts Available When Creating New VM

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 2 Posters 5.9k 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
      kagbasi-wgsdac
      last edited by

      Good-day folks,

      I'm running into the following error when attempting to create a new VM via XO:

      NO_HOSTS_AVAILABLE()
      This is a XenServer/XCP-ng error
      

      Unfortunately, there's nothing else in the log. I've already rebooted the host, and XO, still the problem persists. Anybody else seeing this on their system?

      My Environment:
      1 Pool, 1 Host
      Git commit 42432
      xo-server 5.103.1
      xo-web 5.104.0

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

        Try to boot the VM with xe vm-start uuid=<UUID> to get more details.

        Likely not enough memory to boot the VM here or something similar.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kagbasi-wgsdac @olivierlambert
          last edited by

          @olivierlambert That's what's strange, Olivier. The host has enough RAM (about 20GB of 64GB available). I can stop and start existing VMs without any issues.

          The problem I'm having is specifically with trying to create a new VM from the XO UI. I will try using xe to create it from the CLI and see what happens.

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

            No need to create the VM with xe. Create it with XO, just uncheck "boot after create". Get the UUID, and then just xe vm-start uuid=<VM UUID> in XCP-ng.

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              kagbasi-wgsdac @olivierlambert
              last edited by

              @olivierlambert Thanks for that information, will use it next time I run into the issue.

              Before I read your above reply, I was poking around and noticed that the only SR I had added was disconnected, somehow. So I researched into it and discovered that this was my own doing. Without going into too much detail, I had converted my Active Directory environment from a Zentyal server to a Windows Server and I was hosting the SMB share on the old domain controller. So I had made a DNS error which was causing the SR to not be reachable from the XCP-ng host.

              So I deleted the SR and recreated it and viola I was able to create the VM. Honestly, I'm not sure how the two are connected since I'm not storing any disks on this SR; I only use it for ISOs which I mount into the newly created VM to install an OS and then I eject it.

              Long story short, my problem is solved but I'm still confused as to how it happened.

              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