%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
Installation We are now going to install the management server. We do that by executing the following command: # yum -y install cloud-client With the application itself installed we can now setup the database, we'll do that with the following command and options: # cloudstack-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: # cloudstack-setup-management
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. 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/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 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.