Can't boot existing VM "NO_HOSTS_AVAILABLE"
-
I think I've really messed things up. I finally added 3 other servers to a pool. After I did that, I suspended 4 different VMs that have existed for a long time even before I added other hosts to a single pool. After trying to enable mutlipathing for all hosts (did not do), I restarted all 4 VMs. 3 of the 4 VMs did start, but one did not and the error was "NO_HOSTS_AVAILABLE even though there should be hosts available (4 total including the master which is where the VM was originally on) which all show up and running. The master host is the master of the pool, can it not just find that original host?
Am I just being a stupid newbie or is there a procedure in which to restart and find the master host to reattach to?
edit: To add a little more context, see attached image. This disks are on storage one of the host/master pool that seem to be just hanging (suspended and transfer VM) and may be related to the stuck VM?
-
You can have the reason why it doesn't boot by doing
xe vm-start uuid=<VM UUID>
from a console of any host. -
As the founder and the CEO, I can't believe you take the time and answer all sorts of questions and concerns! You are amazing! I have been using XCP-NG in my "homelab" for a long time and appreciate everything you and your team do! I am only an IT "wannabe", so I have very limited knowledge, but like to learn. Thanks for the response in the forum. I executed the command as you asked, and it returned "expected: halted, actual suspended". Then I probably did something wrong, and I forcefully shutdown the VM. Now it says below:
I tried to start the VM again, and it errored saying:
I don't know how to reattach the network because when I try to connect the networks existing in the VM, it just returns the bad power state error. Seems like it is in a loop, but of course, I'm really not sure if what I'm doing is in the correct sequence or even the correct process. More help would be appreciated!
-
If someone could just let me know if they think this is recoverable or not, I will move on if it is not. I have tried to add networks on both the original host and the VM to no avail. It still just says VM cannot see required network (from original host). If this is just not recoverable, please let me know. Thanks for any help!
-
This should be recoverable, but it can be difficult to troubleshoot this way. Have you investigated the
BAD_POWER_STATE
error? From your first screenshot above, it looks like the VM is suspended, not stopped. Have you tried starting it withxe vm-resume
? -
I've encounter this error on a few occasions. There might be a few reasons:
- The VM has features or hardware requirements that cannot be met by the host (too much assigned memory, Network, CPU-cores, GPU or storage does not match with the server)
- The XOA has not been refreshed (it can help to sign out/sign in again and get a new session going)
- Force shutdown (Works sometimes, but sometimes not that even helps and might not always be a good solution)
- Try to use the XCP-NG Center (Even though it is old, it can also give some hits of what is wrong, it does not work though in 8.3)
- Restart the host (Last resort to resolve the issue for me at least)
Looking at your error message, it looks like there is some trouble with the network and storage. Have you maybe migrated the VM or such?
-
Thank you so much for the replies! I appreciate the responses and will take the appropriate actions and then follow back up with a reply. Thanks again! Follow up shortly!
12/18/24 OK, I have no idea what I did to fix it but the VM in question has now recognized the original host. I suspended all VMs and reboot all servers and that didn't seem to help. Then I changed the network "adapter?" in the VM, and started the VM again and it works! I obviously don't understand the networking of Pools, Hosts or VMs well enough to just fix it in the first place, but all I know is that it is working! I would back up the VM in question, but unfortunately I originally made the storage "thick" and also it's around 6 TB big (all storage combined), so I don't have a remote storage big enough to store it. I appreciate all the responses and help!