Cloudstack – Agent rebooting KVM host

CloudStack 4.0.0

In some cases, Cloudstack agent reboots KVM host, when it can’t access primary NFS shares (because Agent starts heartbeat, trying to write to primary NFS storage every now and then to check if the storage is alive)

So, in order to disable CloudStack Agent (on KVM host) from rebooting that KVM host, simpy edit the “kvmheartbeat.sh” by commenting out the “reboot” part:

sed -i ‘s/reboot/#reboot/g’ /usr/lib64/cloud/common/scripts/vm/hypervisor/kvm/kvmheartbeat.sh

service cloud-agent restart # or not

No more reboots !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: