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 ... 

1 Answer 1

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 Commented Jun 6, 2017 at 3:24
  • This because I am using vagrant. Commented Jun 6, 2017 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 Commented Jun 7, 2017 at 11:37
  • Yes, I checked that. There aren't. Commented Jun 8, 2017 at 1:06

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.