%BOOK_ENTITIES; ]> Installation of the management server Now it is time to start installing CloudStack's management server and some of the related components.
Database Installation and Configuration We'll start out by installing MySQL and configuring some options to ensure CloudStack runs well. To install MySQL run the following command: # yum -y install mysql-server With MySQL installed we need to make a few configuration changes to /etc/my.cnf. Specifically we need to add the following options to the [mysqld] section: innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log-bin=mysql-bin binlog-format = 'ROW' Now that MySQL is properly configured we can start it and configure it to start on boot as follows: # service mysqld start # chkconfig mysqld on
Extraction The next step is to extract the contents of the CloudStack tarball (mentioned in ) you downloaded previously. To extract the contents of this tarball use the following command: # tar -xzvf CloudStack-oss-3.0.2-1-rhel6.2.tar.gz For the next few sections you'll need to cd into the first level that was just created.
Installation Now that you are in the directory created by extracting the tarball, it's now time to install. We'll run ./install.sh and choose option . This will install the management server and necessary dependencies. With the application itself installed we can now setup the database, we'll do that with the following command and options: # cloud-setup-databases cloud:password@localhost --deploy-as=root When this process is finished, you should see a message like "CloudStack has successfully initialized the database." Now that the database has been created, we can take the final step in setting up the management server by issuing the following command: # cloud-setup-mangament
System Template Setup CloudStack uses a number of system VMs to provide functionality for accessing the console of virtual machines, providing various networking services, and managing various aspects of storage. This step will acquire those system images ready for deployment when we bootstrap your cloud. The place we are going to download these images to is the secondary storage share that we setup earlier, so we'll need to mount that share with the mount command run on the management server: # mount -t nfs 172.16.10.2:/secondary /mnt/secondary Now we need to download the system VM template and deploy that to the share we just mounted. The management server includes a script to properly manipulate the system VMs images. # /usr/lib64/cloud/agent/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -F That concludes our setup of the management server. We still need to configure CloudStack, but we will do that after we get our hypervisor set up.