Hi all, I am following the quick installation guide exactly (I even setup a gateway w/ IP 172.16.10.1) but I can not get the setup to complete. The System VMs remain stuck on "Starting". Any help would be greatly appreciated!
I did a minimal install from the CentOS 6.5 net-install CD. Here is my network diagram: http://i.imgur.com/h2i8aE6.jpg Here are the steps I took from a completely minimal install. I left out most of the command outputs because they were all successful without a single error or warning: http://pastie.org/pastes/9124892/text (I also included these at the end of the email) Now I logged into the management console and used the exact settings as listed in the "Quick Install Guide". It seems to hang forever (>2 hours) on "Creating system VMs (this may take a while)" Here are some [potentially] useful command I ran to see what might be going on: [root@srvr1 ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:19:db:b2:76:08 brd ff:ff:ff:ff:ff:ff inet6 fe80::219:dbff:feb2:7608/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:19:db:65:f7:17 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:0e:0c:b7:70:98 brd ff:ff:ff:ff:ff:ff 5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 52:54:00:f7:fa:dc brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 500 link/ether 52:54:00:f7:fa:dc brd ff:ff:ff:ff:ff:ff 9: cloudbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 00:19:db:b2:76:08 brd ff:ff:ff:ff:ff:ff inet 172.16.10.2/24 brd 172.16.10.255 scope global cloudbr0 inet6 fe80::219:dbff:feb2:7608/64 scope link valid_lft forever preferred_lft forever 11: cloud0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether fe:00:a9:fe:01:3e brd ff:ff:ff:ff:ff:ff inet 169.254.0.1/16 brd 169.254.255.255 scope global cloud0 inet6 fe80::e898:7ff:fe42:16a7/64 scope link valid_lft forever preferred_lft forever 12: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:00:a9:fe:01:cf brd ff:ff:ff:ff:ff:ff inet6 fe80::fc00:a9ff:fefe:1cf/64 scope link valid_lft forever preferred_lft forever 13: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:1d:ac:00:00:02 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc1d:acff:fe00:2/64 scope link valid_lft forever preferred_lft forever 14: vnet2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:de:6e:00:00:3f brd ff:ff:ff:ff:ff:ff inet6 fe80::fcde:6eff:fe00:3f/64 scope link valid_lft forever preferred_lft forever 15: vnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:00:a9:fe:01:3e brd ff:ff:ff:ff:ff:ff inet6 fe80::fc00:a9ff:fefe:13e/64 scope link valid_lft forever preferred_lft forever 16: vnet4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:b8:76:00:00:07 brd ff:ff:ff:ff:ff:ff inet6 fe80::fcb8:76ff:fe00:7/64 scope link valid_lft forever preferred_lft forever 17: vnet5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:f6:0a:00:00:4d brd ff:ff:ff:ff:ff:ff inet6 fe80::fcf6:aff:fe00:4d/64 scope link valid_lft forever preferred_lft forever 18: vnet6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:f9:14:00:00:01 brd ff:ff:ff:ff:ff:ff inet6 fe80::fcf9:14ff:fe00:1/64 scope link valid_lft forever preferred_lft forever [root@srvr1 ~]# virsh list --all Id Name State ---------------------------------------------------- 1 v-1-VM running 2 s-2-VM running [root@srvr1 ~]# virsh pool-list --all Name State Autostart ----------------------------------------- d1c1bcf9-1425-40d6-b50b-c1dd6f0edb16 active no d29bbd04-96cc-351d-9d80-f5710b87c617 active no [root@srvr1 ~]# yum install -y tcpdump root@srvr1 ~]# tcpdump -i cloud0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on cloud0, link-type EN10MB (Ethernet), capture size 65535 bytes 14:20:15.559499 ARP, Request who-has 169.254.1.207 tell 169.254.0.1, length 28 14:20:15.687502 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 14:20:16.559261 ARP, Request who-has 169.254.1.207 tell 169.254.0.1, length 28 14:20:16.687248 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 14:20:17.559457 ARP, Request who-has 169.254.1.207 tell 169.254.0.1, length 28 14:20:17.687251 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 14:20:18.688499 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 14:20:19.688494 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 14:20:20.688261 ARP, Request who-has 169.254.1.62 tell 169.254.0.1, length 28 ^C 9 packets captured 9 packets received by filter 0 packets dropped by kernel ---------------------------------------------------------------------- THE END ---------------------------------------------------------------------- Here are the steps I took (from absolutely clean minimal install): [root@srvr1 ~]# yum update [root@srvr1 ~]# reboot [root@srvr1 ~]# #edit /etc/sysconfig/network-scripts/ifcfg-eth0 [root@srvr1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="00:19:DB:B2:76:08" NM_CONTROLLED="no" ONBOOT="yes" BOOTPROTO="none" IPADDR="172.16.10.2" NETMASK="255.255.255.0" GATEWAY="172.16.10.1" DNS1="8.8.8.8" DNS2="8.8.4.4" [root@srvr1 ~]# chkconfig network on [root@srvr1 ~]# service network restart #mistake in documentation? [root@srvr1 ~]# echo "172.16.10.2 srvr1.cloud.priv" >> /etc/hosts [root@srvr1 ~]# service network restart [root@srvr1 ~]# hostname --fqdn srvr1.cloud.priv [root@srvr1 ~]# setenforce 0 [root@srvr1 ~]# sed -i "s/=enforcing/=permissive/g" /etc/selinux/config [root@srvr1 ~]# cat /etc/selinux/config | grep "^SELINUX" SELINUX=permissive SELINUXTYPE=targeted [root@srvr1 ~]# yum -y install ntp [root@srvr1 ~]# chkconfig ntpd on [root@srvr1 ~]# service ntpd start [root@srvr1 ~]# cat > /etc/yum.repos.d/cloudstack.repo <<EOF > [cloudstack] > name=cloudstack > baseurl=http://cloudstack.apt-get.eu/rhel/4.3/ > enabled=1 > gpgcheck=0 > EOF [root@srvr1 ~]# yum install nfs-utils [root@srvr1 ~]# cat > /etc/exports <<EOF > /secondary *(rw,async,no_root_squash) > /primary *(rw,async,no_root_squash) > EOF [root@srvr1 ~]# mkdir /primary && mkdir /secondary [root@srvr1 ~]# cat >> /etc/sysconfig/nfs <<EOF > LOCKD_TCPPORT=32803 > LOCKD_UDPPORT=32769 > MOUNTD_PORT=892 > RQUOTAD_PORT=875 > STATD_PORT=662 > STATD_OUTGOING_PORT=2020 > EOF [root@srvr1 ~]# #edit /etc/sysconfig/iptables [root@srvr1 ~]# cat /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT [root@srvr1 ~]# service iptables restart [root@srvr1 ~]# service rpcbind start [root@srvr1 ~]# service nfs start [root@srvr1 ~]# chkconfig rpcbind on [root@srvr1 ~]# chkconfig nfs on [root@srvr1 ~]# yum -y install mysql-server [root@srvr1 ~]# #edit /etc/my.cnf [root@srvr1 ~]# cat /etc/my.cnf [mysqld] datadir=/var/lib/mysql innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log-bin=mysql-bin binlog-format = 'ROW' socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [root@srvr1 ~]# service mysqld start [root@srvr1 ~]# chkconfig mysqld on [root@srvr1 ~]# yum -y install cloud-client [root@srvr1 ~]# cloudstack-setup-databases cloud:password@localhost--deploy-as=root [root@srvr1 ~]# cloudstack-setup-management [root@srvr1 ~]# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m \ > /secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2\ > -h kvm -F [root@srvr1 ~]# yum -y install cloud-agent [root@srvr1 ~]# #edit the three libvirt/qemu files [root@srvr1 ~]# grep "^[^#]" /etc/libvirt/qemu.conf vnc_listen = "0.0.0.0" [root@srvr1 ~]# grep "^[^#]" /etc/libvirt/libvirtd.conf listen_tls = 0 listen_tcp = 1 tcp_port = "16059" auth_tcp = "none" mdns_adv = 0 [root@srvr1 ~]# grep "^[^#]" /etc/sysconfig/libvirtd LIBVIRTD_ARGS="--listen" [root@srvr1 ~]# service libvirtd restart