0

I follow this guide to install CloudStack and KVM:

https://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/qig.html#kvm-setup-and-installation

Everything went well but after install cloudstack-agent:

# yum -y install cloudstack-agent

and do the configuration as the guide, I can't see any result when check if KVM is running OK on my machine:

# lsmod | grep kvm

I don't know the reason.

When I check cloudstack-agent status:

# service cloudstack-agent status
cloudstack-agent dead but subsys locked

The log is:

# tail /var/log/cloudstack/agent/agent.log
...
2017-04-18 12:13:14,205 ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) org.libvirt.LibvirtException: XML error: missing pool source name element
...
3

This guide only provides steps to install and configure cloudstack-agent on KVM server.

You need to install KVM first on this server:

# yum install kvm qemu-kvm python-virtinst libvirt libvirt-python libguestfs-tools

After installing these packages, start libvirt service and check if kvm is working fine:

# lsmod | grep kvm
4
  • After I installed those packages, there also nothing when run lsmod | grep kvm. OS: CentOS 6.8 – cloud_cloud Jun 6 '17 at 3:24
  • This because I am using vagrant. – cloud_cloud Jun 6 '17 at 4:46
  • In that case, you won't be able to use kvm. Please check if cpu has vmx or svm flag which is required for kvm. egrep ‘(vmx|svm)’ /proc/cpuinfo – errorfetch Jun 7 '17 at 11:37
  • Yes, I checked that. There aren't. – cloud_cloud Jun 8 '17 at 1:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.