Starting instances in a domain other than root fails, #10430
-
Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
When I search in the /var/log/cloudstack/management/management-server.log i see entries of the VM with id "xxxxxxxx..." and the error "No suitable host found for VM" what words should I search for in the log that will determine the reason? |
Beta Was this translation helpful? Give feedback.
-
Thanks for ponting it out, I hope you can make something of the output. The log lines containing the logid of the failure are the below. [root@cloudstack1 ~]# cat /var/log/cloudstack/management/management-server.log |grep 'logid:738bcad5' 2025-03-06 09:17:08,584 DEBUG [c.c.a.ApiServlet] (qtp1390913202-168842:[ctx-8e9f0fbc]) (logid:738bcad5) Two factor authentication is already verified for the user 12, so skipping |
Beta Was this translation helpful? Give feedback.
-
Apologies I may have correlated the VM uuid instead of the "No suitable host"! After capturing the correct lines this time it appears as the VM has a UEFI tag which the hosts do not. If I get this right, how do I overcome? Its a simple selection of a UEFI VM, not something exotic with manually creating tags for it. Pasting the logs below, 50~ish lines. I am pasting both the tail of the error and the cat of the logid. [root@cloudstack1 ~]# tail -f /var/log/cloudstack/management/management-server.log |grep 'No suitable host found' 2025-03-06 15:17:06,708 ERROR [c.c.a.m.a.i.FirstFitRoutingAllocator] (API-Job-Executor-44:[ctx-7c27e5ec, job-825, ctx-99e4d63b, FirstFitRoutingAllocator]) (logid:c51b4fab) No suitable host found for vm [VM instance {"id":39,"instanceName":"i-15-39-VM","type":"User","uuid":"68cbdc53-28f2-4a9a-8e97-54796be4ed19"}] with tags [null]. [root@cloudstack1 ~]# cat /var/log/cloudstack/management/management-server.log |grep 'logid:c51b4fab' 2025-03-06 15:17:06,706 INFO [c.c.a.m.a.i.FirstFitRoutingAllocator] (API-Job-Executor-44:[ctx-7c27e5ec, job-825, ctx-99e4d63b, FirstFitRoutingAllocator]) (logid:c51b4fab) Guest VM is requested with Custom[UEFI] Boot Type true 2025-03-06 15:17:06,706 DEBUG [c.c.a.m.a.i.FirstFitRoutingAllocator] (API-Job-Executor-44:[ctx-7c27e5ec, job-825, ctx-99e4d63b, FirstFitRoutingAllocator]) (logid:c51b4fab) Looking for hosts in zone [1], pod [1], cluster [1] 2025-03-06 15:17:06,707 DEBUG [c.c.a.m.a.i.FirstFitRoutingAllocator] (API-Job-Executor-44:[ctx-7c27e5ec, job-825, ctx-99e4d63b, FirstFitRoutingAllocator]) (logid:c51b4fab) Hosts with tag 'UEFI' are:[] 2025-03-06 15:17:06,708 ERROR [c.c.a.m.a.i.FirstFitRoutingAllocator] (API-Job-Executor-44:[ctx-7c27e5ec, job-825, ctx-99e4d63b, FirstFitRoutingAllocator]) (logid:c51b4fab) No suitable host found for vm [VM instance {"id":39,"instanceName":"i-15-39-VM","type":"User","uuid":"68cbdc53-28f2-4a9a-8e97-54796be4ed19"}] with tags [null]. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the for the suggestion, it solved the UEFI issue! Now the instance goes to starting for some moments. After that it fails with another message: Unable to start a VM due to [Unable to create a deployment for VM instance {"id":39,"instanceName":"i-15-39-VM","type":"User","uuid":"68cbdc53-28f2-4a9a-8e97-54796be4ed19"}]. The logs with the relevant logid are now 590 lines, maybe I should disable debugging? Can you suggest a filter to locate the problem now? |
Beta Was this translation helpful? Give feedback.
-
I checked the dir contents and they are a bit different in my 4 rhel8 kvm servers. lrwxrwxrwx. 1 root root 33 Oct 29 17:21 OVMF_CODE.secboot.fd -> ../edk2/ovmf/OVMF_CODE.secboot.fd So as per the above fles i changed the uefi.properties contents to look like: (I am not sure, just trying out) guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS.secboot.fd Now, VMs start but cannot boot, even VMs that were previously booting. In boot manager there is no disk. If I rename uefi.properties and restart agent, I am back to VMs that boot normaly when i start them from root domain and will not start from the subdomain. Maybe the uefi.properties needs more entries to support the disk? |
Beta Was this translation helpful? Give feedback.
-
your clarifications made me feel smarter today, thanks! |
Beta Was this translation helpful? Give feedback.
Yup, that's an issue with UEFI, not with tags. You need to setup UEFI support manually in your hosts:
ovmf
/etc/cloudstack/agent/uefi.properties
with the following content (this is for Ubuntu hosts. You may need to change the values depending on your OS):