You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "Jefferson Briones (CONVERGE)" <jc...@convergeict.com> on 2013/07/18 11:19:32 UTC

Agent is running but KVM Failed

Hi guys,

Im trying to install my agent on a separate host and im having some issue
when going to the setup stage.

 

[root@cloudhost01 network-scripts]# service cloudstack-agent status

cloudstack-agent (pid  5884) is running...

 

[root@cloudhost01 agent]# tail -f agent.log 

2013-07-18 17:12:55,295 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to localhost:8250

2013-07-18 17:12:55,296 ERROR [utils.nio.NioConnection]
(Agent-Selector:null) Unable to connect to remote

 

 

[root@cloudhost01 network-scripts]# cloudstack-setup-agent

Welcome to the CloudStack Agent Setup:

Please input the Management Server
Hostname/IP-Address:[localhost]192.168.10.10

Please input the Zone Id:[default]

Please input the Pod Id:[default]

Please input the Cluster Id:[default]

Please choose which network used to create VM:[eth0.100]

Starting to configure your system:

Checking KVM...[Failed]

Please enable KVM on this machine

 

Try to restore your system:

 

Tia.

Jeff


Re: Agent is running but KVM Failed

Posted by Alex Yang <al...@gmail.com>.
Hi Jeff,

Firstly, you also should load the kvm_intel module.

# lsmod | grep kvm
kvm_intel              54394  4
kvm                   317376  1 kvm_intel

If you use the redhat or centos. You can use the following file to make the
kvm modules auto-loading.

/etc/sysconfig/modules/kvm.modules (755)

#!/bin/sh

if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
    modprobe -b kvm-intel >/dev/null 2>&1
fi

if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
    modprobe -b kvm-amd >/dev/null 2>&1
fi

modprobe -b vhost_net >/dev/null 2>&1

exit 0

Secondly, make sure the “/usr/libexec/qemu-kvm” is existed.

2013/7/22 Jefferson Briones (CONVERGE) <jc...@convergeict.com>

> Hi Alex,
> Ive check it with the ff commands
>
>  [root@cloudhost01 network-scripts]# service cloudstack-agent status
> cloudstack-agent (pid  5884) is running...
>
> [root@cloudhost01 network-scripts]# egrep '(vmx|svm)' --color=always
> /proc/cpuinfo
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc
> aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr
> pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat
> epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc
> aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr
> pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat
> epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc
> aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr
> pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat
> epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc
> aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr
> pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat
> epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
>
> [root@cloudhost01 network-scripts]# lsmod  | grep kvm
> kvm                   317376  0
>
> Setting up Install Process
> Package 2:qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.5.x86_64 already
> installed and latest version Package libvirt-0.10.2-18.el6_4.9.x86_64
> already installed and latest version Package
> python-virtinst-0.600.0-15.el6.noarch already installed and latest version
> Package 2:qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.5.x86_64 already installed
> and latest version Nothing to do
>
> Thanks.
> Jeff
>
> -----Original Message-----
> From: Alex Yang [mailto:alex890714@gmail.com]
> Sent: Friday, July 19, 2013 9:17 AM
> To: users@cloudstack.apache.org
> Subject: Re: Agent is running but KVM Failed
>
> Hi Jeff,
>
> You should make sure the module of kvm is loaded.
>
> lsmod | grep kvm
>
>
>
>
> 2013/7/18 Jefferson Briones (CONVERGE) <jc...@convergeict.com>
>
> > Hi guys,
> >
> > Im trying to install my agent on a separate host and im having some
> > issue when going to the setup stage.
> >
> >
> >
> > [root@cloudhost01 network-scripts]# service cloudstack-agent status
> >
> > cloudstack-agent (pid  5884) is running...
> >
> >
> >
> > [root@cloudhost01 agent]# tail -f agent.log
> >
> > 2013-07-18 17:12:55,295 INFO  [utils.nio.NioClient]
> > (Agent-Selector:null) Connecting to localhost:8250
> >
> > 2013-07-18 17:12:55,296 ERROR [utils.nio.NioConnection]
> > (Agent-Selector:null) Unable to connect to remote
> >
> >
> >
> >
> >
> > [root@cloudhost01 network-scripts]# cloudstack-setup-agent
> >
> > Welcome to the CloudStack Agent Setup:
> >
> > Please input the Management Server
> > Hostname/IP-Address:[localhost]192.168.10.10
> >
> > Please input the Zone Id:[default]
> >
> > Please input the Pod Id:[default]
> >
> > Please input the Cluster Id:[default]
> >
> > Please choose which network used to create VM:[eth0.100]
> >
> > Starting to configure your system:
> >
> > Checking KVM...[Failed]
> >
> > Please enable KVM on this machine
> >
> >
> >
> > Try to restore your system:
> >
> >
> >
> > Tia.
> >
> > Jeff
> >
> >
>
>
> --
>   杨雨
>   Email:       alex890714@gmail.com
> GitHub:       https://github.com/AlexYangYu
>  Weibo:       http://www.weibo.com/alexyangyu
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2904 / Virus Database: 3204/6481 - Release Date: 07/10/13
> Internal Virus Database is out of date.
>
>


-- 
  杨雨
  Email:       alex890714@gmail.com
GitHub:       https://github.com/AlexYangYu
 Weibo:       http://www.weibo.com/alexyangyu

RE: Agent is running but KVM Failed

Posted by "Jefferson Briones (CONVERGE)" <jc...@convergeict.com>.
Hi Alex,
Ive check it with the ff commands

 [root@cloudhost01 network-scripts]# service cloudstack-agent status cloudstack-agent (pid  5884) is running...

[root@cloudhost01 network-scripts]# egrep '(vmx|svm)' --color=always /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

[root@cloudhost01 network-scripts]# lsmod  | grep kvm
kvm                   317376  0

Setting up Install Process
Package 2:qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.5.x86_64 already installed and latest version Package libvirt-0.10.2-18.el6_4.9.x86_64 already installed and latest version Package python-virtinst-0.600.0-15.el6.noarch already installed and latest version Package 2:qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.5.x86_64 already installed and latest version Nothing to do

Thanks.
Jeff

-----Original Message-----
From: Alex Yang [mailto:alex890714@gmail.com] 
Sent: Friday, July 19, 2013 9:17 AM
To: users@cloudstack.apache.org
Subject: Re: Agent is running but KVM Failed

Hi Jeff,

You should make sure the module of kvm is loaded.

lsmod | grep kvm




2013/7/18 Jefferson Briones (CONVERGE) <jc...@convergeict.com>

> Hi guys,
>
> Im trying to install my agent on a separate host and im having some 
> issue when going to the setup stage.
>
>
>
> [root@cloudhost01 network-scripts]# service cloudstack-agent status
>
> cloudstack-agent (pid  5884) is running...
>
>
>
> [root@cloudhost01 agent]# tail -f agent.log
>
> 2013-07-18 17:12:55,295 INFO  [utils.nio.NioClient] 
> (Agent-Selector:null) Connecting to localhost:8250
>
> 2013-07-18 17:12:55,296 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to connect to remote
>
>
>
>
>
> [root@cloudhost01 network-scripts]# cloudstack-setup-agent
>
> Welcome to the CloudStack Agent Setup:
>
> Please input the Management Server
> Hostname/IP-Address:[localhost]192.168.10.10
>
> Please input the Zone Id:[default]
>
> Please input the Pod Id:[default]
>
> Please input the Cluster Id:[default]
>
> Please choose which network used to create VM:[eth0.100]
>
> Starting to configure your system:
>
> Checking KVM...[Failed]
>
> Please enable KVM on this machine
>
>
>
> Try to restore your system:
>
>
>
> Tia.
>
> Jeff
>
>


--
  杨雨
  Email:       alex890714@gmail.com
GitHub:       https://github.com/AlexYangYu
 Weibo:       http://www.weibo.com/alexyangyu



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 3204/6481 - Release Date: 07/10/13
Internal Virus Database is out of date.


Re: Agent is running but KVM Failed

Posted by Alex Yang <al...@gmail.com>.
Hi Jeff,

You should make sure the module of kvm is loaded.

lsmod | grep kvm




2013/7/18 Jefferson Briones (CONVERGE) <jc...@convergeict.com>

> Hi guys,
>
> Im trying to install my agent on a separate host and im having some issue
> when going to the setup stage.
>
>
>
> [root@cloudhost01 network-scripts]# service cloudstack-agent status
>
> cloudstack-agent (pid  5884) is running...
>
>
>
> [root@cloudhost01 agent]# tail -f agent.log
>
> 2013-07-18 17:12:55,295 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to localhost:8250
>
> 2013-07-18 17:12:55,296 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to connect to remote
>
>
>
>
>
> [root@cloudhost01 network-scripts]# cloudstack-setup-agent
>
> Welcome to the CloudStack Agent Setup:
>
> Please input the Management Server
> Hostname/IP-Address:[localhost]192.168.10.10
>
> Please input the Zone Id:[default]
>
> Please input the Pod Id:[default]
>
> Please input the Cluster Id:[default]
>
> Please choose which network used to create VM:[eth0.100]
>
> Starting to configure your system:
>
> Checking KVM...[Failed]
>
> Please enable KVM on this machine
>
>
>
> Try to restore your system:
>
>
>
> Tia.
>
> Jeff
>
>


-- 
  杨雨
  Email:       alex890714@gmail.com
GitHub:       https://github.com/AlexYangYu
 Weibo:       http://www.weibo.com/alexyangyu