???????????????????? ????????????agent.properties?????????????? workers=5 #host= The IP address of management server host=10.6.27.103 #port = The port management server listening on, default is 8250 port=8250 #cluster= The cluster which the agent belongs to cluster=default #pod= The pod which the agent belongs to pod=default #zone= The zone which the agent belongs to zone=default ??????????????host??????????????????????????pod??zone?????????????????? ?????????????????????????????????????????????????????? ??????????agent.properties?????? guest.network.device=cloudbr2 workers=5 private.network.device=cloudbr2 port=8250 resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource pod=1 zone=1 guid=2f5167d8-b5ff-3714-8c7e-2e8a4d6d43c2 public.network.device=cloudbr2 cluster=1 local.storage.uuid=fd93ad47-8d6b-4561-a1d9-71a93a0c81c9 domr.scripts.dir=scripts/network/domr/kvm LibvirtComputingResource.id=6 host=10.6.27.2
------------------ ???????? ------------------ ??????: "yan_5...@163.com";<yan_5...@163.com>; ????????: 2014??11??28??(??????) ????1:39 ??????: "users-cn"<users-cn@cloudstack.apache.org>; ????: ????: kvm????????cloudstack4.0.2???? Connecting to localhost:8250 //kvm??????????????????????IP /etc/cloudstack/agent/agent.properties ????????????host????CS ??????????agent???????? yan_5...@163.com ???????? ?????? ?????????? 2014-11-28 13:24 ???????? users-cn ?????? kvm????????cloudstack4.0.2???? ?????????? kvm??????CS4.0.2?????????????? ??????????????????????????????????????????????????????????????????????SELINUX??????????????libvirt?????????????? 2014-11-28 13:13:26,816 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-15:null) Trying to add a new host at http://10.6.31.4 in data center 1 2014-11-28 13:13:27,204 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-15:null) Executing cmd: lsmod|grep kvm 2014-11-28 13:13:28,324 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-15:null) lsmod|grep kvm output:kvm_intel 52570 0 kvm 314739 1 kvm_intel 2014-11-28 13:13:29,330 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-15:null) Executing cmd: cloud-setup-agent -m 10.6.27.103 -z 1 -p 1 -c 1 -g f20023a3-34a2-3ac5-91bd-f99a046ae76a -a --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 2014-11-28 13:13:31,394 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) HostStatsCollector is running... 2014-11-28 13:13:37,120 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode 2014-11-28 13:13:37,517 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers. 2014-11-28 13:13:44,931 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-15:null) cloud-setup-agent -m 10.6.27.103 -z 1 -p 1 -c 1 -g f20023a3-34a2-3ac5-91bd-f99a046ae76a -a --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 output:[Failed] ore Libvirt ... bvirt Try to restore your system: Restore SElinux ... 2014-11-28 13:14:07,120 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode 2014-11-28 13:14:07,517 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers. 2014-11-28 13:14:24,049 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) VmStatsCollector is running... 2014-11-28 13:14:24,865 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) StorageCollector is running... 2014-11-28 13:14:31,395 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector is running... 2014-11-28 13:14:37,120 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode 2014-11-28 13:14:37,517 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers. ???????????????????????? 2014-11-28 13:18:13,560 INFO [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250 2014-11-28 13:18:13,560 ERROR [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect to remote 2014-11-28 13:18:18,561 INFO [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250 2014-11-28 13:18:18,561 ERROR [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect to remote 2014-11-28 13:18:23,562 INFO [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250 2014-11-28 13:18:23,563 ERROR [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect to remote ???????????????????????????????????????????????????????????????????????????? ???????????????????????? ?????????????????????????????? hostname??????????/etc/hosts SELINUX=permissive ???????????? -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m tcp --dport 1798 -j ACCEPT -A INPUT -p tcp -m tcp --dport 16509 -j ACCEPT -A INPUT -p tcp -m tcp --dport 5900:6100 -j ACCEPT -A INPUT -p tcp -m tcp --dport 49152:49216 -j ACCEPT ???????? /etc/libvirt/qemu.conf /etc/libvirt/libvirtd.conf /etc/sysconfig/libvirtd ????????????????????????????