Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Download and create installation DVD at http://mirrors.arsc.edu/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveDVD.iso
- # Install to bare metal with default options
- # Log in and set up static IP address. Enable and start SSHd service. Specify system hostname in hosts file. Run yum update.
- # http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Installation_Guide/management-server-install-flow.html
- # This sequence of commands should not allow you to log into the cloudstack UI with admin and password after completing the installation.
- # http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Installation_Guide/management-server-install-flow.html
- # Information about my install
- $ uname -a
- Linux nodedev4.node.local 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
- $ cat /proc/version
- Linux version 2.6.32-279.14.1.el6.x86_64 ([email protected]) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Tue Nov 6 23:43:09 UTC 2012
- $ lsb_release -a
- LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
- Distributor ID: CentOS
- Description: CentOS release 6.3 (Final)
- Release: 6.3
- Codename: Final
- $ cat /etc/yum.repos.d/CentOS-Base.repo
- [cloudstack]
- name=cloudstack
- baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
- enabled=1
- gpgcheck=1
- $ yum update
- # 4.5.2. Prepare the Operating System
- $ hostname --fqdn
- $ cat /etc/hosts
- $ ping www.google.com
- $ yum install ntp
- # 4.5.3.1. Downloading vhd-util
- $ cd /usr/lib64
- $ mkdir cloud
- $ cd cloud
- $ mkdir common
- $ cd common
- $ mkdir scripts
- $ cd scripts
- $ mkdir vm
- $ cd vm
- $ mkdir hypervisor
- $ cd hypvervisor
- $ mkdir xenserver
- $ cd xenserver
- $ wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
- # 4.5.3.2. Install on CentOS/RHEL
- $ yum install cloud-client --nogpgcheck
- # 4.5.4.1. Install the Database on the Management Server Node
- $ yum install mysql-server
- $ vim /etc/my.cnf
- innodb_rollback_on_timeout=1
- innodb_lock_wait_timeout=600
- max_connections=350
- log-bin=mysql-bin
- binlog-format = 'ROW'
- $ vim /etc/selinux/config
- permissive
- $ reboot
- $ service mysqld start
- $ mysql_secure_installation
- $ cloud-setup-databases cloud:cloud@localhost --deploy-as=root:12345
- $ mysql -u root -p
- GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY '12345';
- # 4.5.5.2. Using the Management Server As the NFS Server
- $ mkdir -p /export/primary
- $ mkdir -p /export/secondary
- $ vim /etc/exports
- /export *(rw,async,no_root_squash)
- $ exportfs -a
- $ vim /etc/sysconfig/nfs
- RQUOTAD_PORT=875
- LOCKD_TCPPORT=32803
- LOCKD_UDPPORT=32769
- MOUNTD_PORT=892
- STATD_PORT=662
- STATD_OUTGOING_PORT=2020
- $ vim /etc/sysconfig/iptables
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT
- -A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT
- $ service iptables restart
- $ service iptables save
- $ vim /etc/idmapd.conf
- domain =
- $ service rpcbind start
- $ service nfs start
- $ chkconfig nfs on
- $ chkconfig rpcbind on
- $ reboot
- $ service start tomcat6
- $ service start mysqld
- $ service nfs start
- $ service rpcbind start
- $ chkconfig nfs on
- $ chkconfig rpcbind on
- $ mkdir /primarymount
- $ mount -t nfs localhost:/export/primary /primarymount
- $ mkdir /secondarymount
- $ mount -t nfs localhost:/export/secondary /secondarymount
- # 4.5.7. Prepare the System VM Template
- $ /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m /secondarymount -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2 -h xenserver -F
- $ reboot
- # 5.1. Log In to the UI
- $ service rpcbind start
- $ service nfs start
- $ service mysqld start
- $ service tomcat6 start
- $ cloud-setup-management
- # HTTP://192.168.2.220:8080/client
- # username: admin
- # password: password
Advertisement
Add Comment
Please, Sign In to add comment