Tuesday, December 27, 2011

Step By Step CloudStack Single Node Installation Tutorial



#### Step By Step CloudStack Installation on REdHat/CentOS ####

# 1.Log in to your OS as root. All the following commands should be run as root.
# 2.Check for a fully qualified hostname
    hostname --fqdn     (otherwise vi /etc/hosts
# 3.Disable SELinux. /etc/selinux/config
     setenforce permissive
# 4. Make sure that the Management Server can reach the Internet.
     ping www.google.com
# 5. (RHEL 6.x) If you do not have a Red Hat Network account, you need to prepare a local Yum repository.
     a. If you are working with a physical host, insert the RHEL 6.0 installation CD. If you are using a VM, attach the RHEL6 ISO.
     b. Mount the CDROM to /media.
     c. Create a repo file at /etc/yum.repos.d/rhel6.repo. In the file, insert the following lines:
     [rhel]
     name=rhel6
     baseurl=file:///media
     enabled=1
     gpgcheck=0

### Install the Management Server (Single Node) ####
1.Install the CloudStack packages. You should have a file in the form of CloudStack-2.2.2.1.tar.gz Untar the file and then run the install.sh script inside it:

# tar xzf CloudStack-2.2.12-1-centos.tar.gz
# cd CloudStack-2.2.12-1-centos
# ./install.sh
#M.the Management Server
> M

#### Single Node Database Install ####
# ./install.sh
D. Install the database server
> D

2.
Edit the MySQL configuration (vi /etc/my.cnf or /etc/mysql/my.cnf, depending on your OS) and insert the following lines in the
[mysqld] section. You can put these lines below the datadir line. The max_connections parameter should be set to 350
multiplied by the number of Management Servers you are deploying. This example assumes 1 Management Server.

innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'

# service mysqld start
# mysql รข€“u root
mysql> SET PASSWORD = PASSWORD('<abcdef123>');
#exit

# cloud-setup-databases cloud:abcdef123@localhost --deploy-as=root:abcdef123
# cloud-setup-management



Reboot

type in Browser   http://localhost:8080/client

2 comments:

  1. Hello!,

    The install is valid for CentOS distribution?

    Thnk!

    ReplyDelete
  2. could you continue this step-by-step guide? for example, please go beyond installation and show how to configure a zone, pod, and cluster. also, please talk about planning for ip address distribution.

    ReplyDelete