CloudStack fails to start more VMs #10184
Replies: 9 comments 45 replies
-
libvirt version - 8.0.0-1ubuntu7.10
Also I see repeating CloudStack agent errors when the problem starts (at least in some of hosts)
After libvirt restart, CloudStack agent managed to connect to libvirt, and logs started looking regular. |
Beta Was this translation helpful? Give feedback.
-
After libvirtd restart on all hosts, CloudStack managed to get rid of VMs in Starting state. Though many in Expunging state are still there and are not removed. Refresh of Instances page is a lost slower than before, takes some 12-15 seconds and shows just 49 VMs in Expunging state. |
Beta Was this translation helpful? Give feedback.
-
If anybody successfully runs CloudStack on Ubuntu, please let me know your versions (Ubuntu, kernel, CloudStack, libvirt, etc.) |
Beta Was this translation helpful? Give feedback.
-
@akrasnov-drv |
Beta Was this translation helpful? Give feedback.
-
One more peace of info
Then most of VMs were expunged. |
Beta Was this translation helpful? Give feedback.
-
Similar issue afer upgrade to 4.20 (Ubuntu 22), but I couldn't run any VM (unfortunately, we had to withdraw the upgrade, I cannot provide more detailed information) agent.log: ``2025-01-10 12:28:30,179 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-1:null) (logid:fb2d5891) Exit value of process [3708958] for command [/usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh update_config.py 169.254.93.185 vm_dhcp_entry.json.82a5c90f-4744-4bba-abe0-df28dfaa3c0c ] is [1]. and managemen.log:
|
Beta Was this translation helpful? Give feedback.
-
I provided logs and additional info above in corresponding threads.
|
Beta Was this translation helpful? Give feedback.
-
Appeared that when I start VMs with static nat, VR cpu is quite high. Hardly understand what it does on 2.1Ghz to get
but I'll try to increase VR CPU |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm struggling to make CloudStack 4.20.0.0 properly start KVM VMs on Ubuntu 22.
We have isolated network over VLAN.
CloudStack manages to start single VM and to add several more. But when I ask to start more (e.g. 10-30), Cloudstack starts behaving weird.
New VMs produce different errors, then Cloudstack becomes slow, does not clean resources, and at the end stays with number of VMs in Starting state.
I have 5 KVM servers connected, each able to handle 30 VMs alone (in KVM without Cloudstack). VMs use local server storage. I do not see any resource problem.
I tried to debug the issue, and looks like virtual router stops working properly. I found in its log that it restarts managing script at some point, still part of VMs do not get proper network config. Static NAT enable also returns errors.
Error while enabling static nat. Ip Id: 14
Expunge for VMs then also hangs.
In addition sometimes I see KVM hosts stop communicating with management, and stop writing to their local logs.
To recover I need to restart management, delete virtual router and clean stuck resources, sometimes directly in mysql db. Agent restart is also sometimes needed.
Any help to understand and fix the problem is highly appreciated.
I'll provide logs or other info on request.
Thanks,
Alex.
Beta Was this translation helpful? Give feedback.
All reactions