Repository navigation
Replies: 3 comments
🏷️ Issue TriagedHi Reasoning: This issue seeks operational guidance on resolving an expired VNC certificate preventing VM startup in a production environment. View Triage DetailsAnalysis
Recommended Next Steps
References: Triage run §24141413094
|
|
@maic , a bit of a late reply, The VNC certs are symlinks to the libvirt host certs (keystore-cert-import links /etc/pki/libvirt-vnc/* to /etc/pki/libvirt/servercert.pem and friends). Renewing the host certificate fixes both: cmk provision certificate hostid= reconnect=true while the agent is still connected. If the agent is already down because of the expired cert, follow the manual steps in discussion #13576. Raise ca.framework.cert.validity.period first so it doesn't come back soon. You had probably already fixed this. Let me know if this ^ makes sense. |
|
From the logs you have shared, it appears that the VNC SSL certificate on your KVM host has expired. Due to this, QEMU is unable to initialize the VNC server, which prevents the VM from starting. You can try the following steps to resolve the issue. 1. Verify the certificate expiration date Log in to the affected KVM host as root and execute the following commands: bash This will help you confirm the expiration dates of both the VNC and CloudStack agent certificates. 2. Renew the host certificate If the affected KVM host is still connected to the CloudStack Management Server:
CloudStack should generate and deploy the new certificates to the KVM host. 3. Verify the renewed certificate Execute the following commands again on the affected KVM host: openssl x509 -in /etc/pki/libvirt-vnc/server-cert.pem -noout -dates If the certificate has been renewed successfully, try starting one of the affected VMs and check its console access. 4. Prevent the issue from occurring again Navigate to Global Settings in CloudStack and review the following parameters:
We also recommend monitoring certificate expiration dates across all your KVM hosts. Since this is a production environment, please perform this operation on one affected host first during a maintenance window. Certificate provisioning may restart the libvirt and CloudStack agent services. Once everything is verified, you can proceed with the remaining affected hosts. Please note that already-running VMs may require a planned stop/start or migration to pick up the renewed VNC certificate, depending on your CloudStack version. If the host is disconnected from the Management Server or you are unable to re-provision the certificate, please share your CloudStack version, KVM host operating system and current host status so we can suggest the appropriate recovery steps. You can also refer to the official CloudStack documentation: Regards, |
Uh oh!
There was an error while loading. Please reload this page.
How to solve the problem encountered by several machines in the production environment? Can you provide specific operating steps? Thank you
Abnormal log information:
172.17.0.2:0,password,tls,x509verify=/etc/pki/libvirt-vnc: Failed to start VNC server: The server certificate /etc/pki/libvirt-vnc/server-cert.pem has expired
at org.libvirt.ErrorHandler.processError(Unknown Source)
at org.libvirt.ErrorHandler.processError(Unknown Source)
at org.libvirt.Connect.domainCreateXML(Unknown Source)
at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.startVM(LibvirtComputingResource.java:1821)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:104)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:49)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1853)
at com.cloud.agent.Agent.processRequest(Agent.java:662)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1082)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
All reactions