You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
If there are issues around KVM hypervisor in CloudStack, better to have the following information when reports issues/bugs:
- Which KVM host os is using? Centos 6.2, 6,1, Ubuntu 10.04?
- Which version of libvirt is using, "virsh --version"
- turn the agent log level to debug: sed -i 's/INFO/DEBUG/g' /etc/cloud/agent/log4j-cloud.xml
- reproduce the issue, attach the /var/log/cloud/agent/agent.log to bugs.cloudstack.org
- If adding kvm host failed, take a look at: /var/log/cloud/setupAgent.log
-
Steps to debug the KVM agent from eclipse:
- In KVM agent edit ‘/usr/libexec/agent-runner ‘,
add "-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" to ‘java -Xms128M -Xmx384M’ line
java -Xms128M -Xmx384M -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -cp "$CLASSPATH" "$@" com.cloud.agent.AgentShell $SERVICEARGS &2.
- Add the firewall rule in KVM host to accept the traffic on 8787 port.
iptables --I INPUT --p tcp --dport 8787 --j ACCEPT
- Then restart cloud-agent.
service cloud-agent restart
- Verify that 8787 port is opened by java using ‘netstat --napt’ command.
- Connect from eclipse Debug Configuration to to KVM host 8787 port for debugging.