Alex, I was trying to do the same thing, and ended up having to downgrade the OS to CentOS 6.3 to add a host to Cloudstack. I did notice when I was trying to investigate that there is a JIRA ticket open to add CentOS 6.4 support for installation at https://issues.apache.org/jira/browse/CLOUDSTACK-1642. From the look of things it is not being added until future releases though. I also had the same issue with following the network setup and no longer having internet access, but was able to do a basic network installation just leaving it as a flat network without configuring the vlans. Hope this helps, David Ortiz
> Date: Thu, 11 Apr 2013 00:43:15 +0800 > From: a...@j2anywhere.com > To: users@cloudstack.apache.org > Subject: 4.0.1 Installation on CentOS 6.4 Questions > > I am currently looking at installating CS 4.0.1 onto a single system > running CentOS 6.4. > > The installation of the management server was pretty straight forward, > however using either the configuration wizard or the web based console I > am not able to add a host to the server. Ideally I would like to run > everything of a single system, which seems to be supported. > > Here is what I did so far: > > Completed the steps from the installation guide until steps 5.1 from > which point I tried using the configuration wizard to complete the > installation. This failed on the "Adding host" step. I then tried adding > the host by-passing the configuration wizard, but that failed as well. > > Reading further in the manual in section 8 I came across the network > configuration. Some of this seemed to have already been completed by the > previous installation steps. > > After applying the network configuration I lost internet access and was > still not able to add a hosts. > > Below is my configuration and the content of some of the log files I > found. I have tried following the installation guide several times now, > each time starting with a clean installation of CentOS, but always got > stuck at this point. > > [root@panda ~]# for i in $(ls -1 > /etc/sysconfig/network-scripts/ifcfg-eth0*);do echo $i;cat $i;echo > "=================================";done > /etc/sysconfig/network-scripts/ifcfg-eth0 > DEVICE=eth0 > TYPE=Ethernet > UUID=60452d20-04fd-480f-9d73-ed980e4ed223 > ONBOOT=yes > NM_CONTROLLED=yes > BOOTPROTO=dhcp > HWADDR=50:E5:49:E1:7D:12 > DEFROUTE=yes > PEERDNS=yes > PEERROUTES=yes > IPV4_FAILURE_FATAL=yes > IPV6INIT=no > NAME="System eth0" > ================================= > /etc/sysconfig/network-scripts/ifcfg-eth0.100 > DEVICE=eth0.100 > ONBOOT=yes > HOTPLUG=no > BOOTPROTO=none > TYPE=Ethernet > VLAN=yes > IPADDR=192.168.0.7 > GATEWAY=192.168.0.1 > NETMASK=255.255.0.0 > ================================= > /etc/sysconfig/network-scripts/ifcfg-eth0.200 > DEVICE=eth0.200 > ONBOOT=yes > HOTPLUG=no > BOOTPROTO=none > TYPE=Ethernet > VLAN=yes > BRIDGE=cloudbr0 > ================================= > /etc/sysconfig/network-scripts/ifcfg-eth0.300 > DEVICE=eth0.300 > ONBOOT=yes > HOTPLUG=no > BOOTPROTO=none > TYPE=Ethernet > VLAN=yes > BRIDGE=cloudbr1 > ================================= > > cat /var/log/libvirt/libvirtd.log > 2013-04-09 18:53:05.248+0000: 5764: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-09 18:53:05.248+0000: 5764: error : > virNetTLSContextCheckCertFile:113 : Cannot read CA certificate > '/etc/pki/CA/cacert.pem': No such file or directory > 2013-04-09 18:53:35.851+0000: 5800: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-09 18:53:35.851+0000: 5800: error : > virNetTLSContextCheckCertFile:113 : Cannot read CA certificate > '/etc/pki/CA/cacert.pem': No such file or directory > 2013-04-10 16:07:49.156+0000: 4018: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-10 16:07:49.156+0000: 4018: error : > virStoragePoolDefParseXML:774 : XML error: missing pool source name element > > cat /var/log/libvirt/libvirtd.log > 2013-04-09 18:53:05.248+0000: 5764: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-09 18:53:05.248+0000: 5764: error : > virNetTLSContextCheckCertFile:113 : Cannot read CA certificate > '/etc/pki/CA/cacert.pem': No such file or directory > 2013-04-09 18:53:35.851+0000: 5800: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-09 18:53:35.851+0000: 5800: error : > virNetTLSContextCheckCertFile:113 : Cannot read CA certificate > '/etc/pki/CA/cacert.pem': No such file or directory > 2013-04-10 16:07:49.156+0000: 4018: info : libvirt version: 0.10.2, > package: 18.el6_4.3 (CentOS BuildSystem <http://bugs.centos.org>, > 2013-04-09-10:56:19, c6b8.bsys.dev.centos.org) > 2013-04-10 16:07:49.156+0000: 4018: error : > virStoragePoolDefParseXML:774 : XML error: missing pool source name element > [root@panda ~]# cat /var/log/cloud/agent/agent.log > 2013-04-11 00:07:33,936 INFO [utils.component.ComponentLocator] > (main:null) Unable to find components.xml > 2013-04-11 00:07:33,963 INFO [utils.component.ComponentLocator] > (main:null) Skipping configuration using components.xml > 2013-04-11 00:07:33,963 INFO [cloud.agent.AgentShell] (main:null) > Implementation Version is 4.0.1.20130201075054 > 2013-04-11 00:07:33,964 INFO [cloud.agent.AgentShell] (main:null) > agent.properties found at /etc/cloud/agent/agent.properties > 2013-04-11 00:07:34,035 INFO [cloud.agent.AgentShell] (main:null) > Defaulting to using properties file for storage > 2013-04-11 00:07:34,037 INFO [cloud.agent.AgentShell] (main:null) > Defaulting to the constant time backoff algorithm > 2013-04-11 00:07:34,442 INFO [cloud.agent.Agent] (main:null) id is > 2013-04-11 00:07:34,549 ERROR [cloud.resource.ServerResourceBase] > (main:null) Nics are not configured! > 2013-04-11 00:07:34,554 INFO [cloud.resource.ServerResourceBase] > (main:null) Designating private to be nic eth0.100 > 2013-04-11 00:07:34,891 INFO > [resource.virtualnetwork.VirtualRoutingResource] (main:null) > VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm > 2013-04-11 00:07:37,760 INFO [kvm.resource.LibvirtComputingResource] > (main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver. > 2013-04-11 00:07:38,244 INFO [cloud.agent.Agent] (main:null) Agent [id > = new : type = LibvirtComputingResource : zone = default : pod = default > : workers = 5 : host = localhost : port = 8250 > 2013-04-11 00:07:38,249 INFO [utils.nio.NioClient] > (Agent-Selector:null) Connecting to localhost:8250 > 2013-04-11 00:07:38,316 ERROR [utils.nio.NioConnection] > (Agent-Selector:null) Unable to connect to remote > 2013-04-11 00:07:43,322 INFO [utils.nio.NioClient] > (Agent-Selector:null) Connecting to localhost:8250 > 2013-04-11 00:07:43,323 ERROR [utils.nio.NioConnection] > (Agent-Selector:null) Unable to connect to remote > 2013-04-11 00:07:48,325 INFO [utils.nio.NioClient] > (Agent-Selector:null) Connecting to localhost:8250 > 2013-04-11 00:07:48,947 INFO [utils.nio.NioClient] > (Agent-Selector:null) SSL: Handshake done > 2013-04-11 00:07:49,285 ERROR [kvm.storage.LibvirtStorageAdaptor] > (Agent-Handler-1:null) org.libvirt.LibvirtException: XML error: missing > pool source name element > 2013-04-11 00:07:49,286 WARN [utils.nio.Task] (Agent-Handler-1:null) > Caught the following exception but pushing on > java.lang.NullPointerException > at > com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:462) > at > com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:57) > at > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3271) > at com.cloud.agent.Agent.sendStartup(Agent.java:320) > at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:850) > at com.cloud.utils.nio.Task.run(Task.java:83) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:722) > > cat /var/log/cloud/management/catalina.out > Apr 11, 2013 12:07:48 AM org.apache.coyote.http11.Http11NioProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Apr 11, 2013 12:07:48 AM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:20400 > Apr 11, 2013 12:07:48 AM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/37 config=null > Apr 11, 2013 12:07:48 AM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina7080 > Apr 11, 2013 12:07:48 AM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.24 > Apr 11, 2013 12:07:48 AM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory awsapi > INFO [cloud.cluster.ClusterManagerImpl] (Cluster-Heartbeat-1:) We are > good, no orphan management server msid in host table is found > INFO [cloud.cluster.ClusterManagerImpl] (Cluster-Heartbeat-1:) Found 1 > inactive management server node based on timestamp > INFO [cloud.cluster.ClusterManagerImpl] (Cluster-Heartbeat-1:) > management server node msid: 88945717247250, name: > panda.home.j2anywhere.com, service ip: 192.168.0.6, version: > 4.0.1.20130201075054 > INFO [cloud.cluster.ClusterManagerImpl] (Cluster-Heartbeat-1:) Trying > to connect to 192.168.0.6 > Log4j configuration from : /usr/share/cloud/management/conf/log4j-cloud.xml > Apr 11, 2013 12:07:50 AM org.apache.coyote.http11.Http11NioProtocol start > INFO: Starting Coyote HTTP/1.1 on http-7080 > Apr 11, 2013 12:07:50 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 14042 ms > ERROR [cloud.alert.AlertManagerImpl] (Cluster-Notification-1:) Problem > sending email alert > java.lang.NullPointerException > at > com.cloud.alert.AlertManagerImpl$EmailAlert.sendAlert(AlertManagerImpl.java:776) > at > com.cloud.alert.AlertManagerImpl.sendAlert(AlertManagerImpl.java:268) > at > com.cloud.alert.ClusterAlertAdapter.onClusterNodeJoined(ClusterAlertAdapter.java:73) > at > com.cloud.alert.ClusterAlertAdapter.onClusterAlert(ClusterAlertAdapter.java:52) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > com.cloud.utils.events.SubscriptionMgr$SubscriberInfo.execute(SubscriptionMgr.java:147) > at > com.cloud.utils.events.SubscriptionMgr.notifySubscribers(SubscriptionMgr.java:77) > at > com.cloud.cluster.ClusterManagerImpl.notifyNodeJoined(ClusterManagerImpl.java:650) > at > com.cloud.cluster.ClusterManagerImpl$5.run(ClusterManagerImpl.java:871) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:722) > WARN [cloud.cluster.ClusterManagerImpl] (Cluster-Notification-1:) > Notifying management server join event took 285 ms > INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-21:) Trying to > add a new host at http://192.168.0.6 in data center 1 > INFO [utils.ssh.SSHCmdHelper] (catalina-exec-21:) Timeout while waiting > for data from peer. > INFO [utils.ssh.SSHCmdHelper] (catalina-exec-21:) Timeout while waiting > for data from peer. > >