Apache cloudstack 4.4.2 installation
on malty node.
Minimum System Requirements
Operating system:
Preferred:
CentOS/RHEL 6.3+ or Ubuntu 12.04(.1)
64-bit x86 CPU
(more cores results in better performance)
8 GB of memory
250 GB of local
disk (more results in better capability; 500 GB recommended)
At least 1 NIC
Statically
allocated IP address
Fully qualified
domain name as returned by the hostname command
Configuring Management server –Linux vm1.
1)To configure static ip
#vi
/etc/sysconfig/network-scripts/ifcfg-eth0
i)Ip should be static(BOOTPROTO=static)
ii)ONBOOT=yes
2)To check Hostfull name command
hostname –fqdn (host full name) if hostname
not available goto below file and edit the details
#vi /etc/sysconfig/network
#vi /etc/hosts
#Hostname csmgmt1
3)Resolve.conf use to direct the
hostnames
vi
/etc/resolve.conf
nameserver 8.8.8.8
4 )ping www.cloudstack.org
to check internet connectivity
5)Create the file with the help of vi editor and enter the below
commands it is help to download the packages for cloudstack.
#vi /etc/yum.repos.d/cloudstack.repo
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.4/
enabled=1
gpgcheck=0
6)Network
time protocol is a protocol that is used
to synchronize computer clock times in a network of computers. NTP uses Coordinated Universal Time (UTC) to
synchronize computer clock times to a millisecond, and sometimes to a fraction
of a millisecond
#yum install ntp
7) Selinux-CloudStack
can be blocked by security mechanisms, such as SELinux. Disable SELinux to
ensure + that the Agent has all the required permissions.
SELINUX=permissive
7.a) setenforce permissive
8)cloudstack-installation The CloudStack Management server can be installed using
either RPM or DEB packages. These packages will depend on everything you need
to run the Management server
#yum install cloudstack-management
9) Vhd-utilsThis
procedure is required only for installations where XenServer is installed on
the hypervisor hosts.Before setting up the Management Server
#cd /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver
In
this location download vhd utils
wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
Configuring Database server –Linux vm2.
1) Configure
static ip
2)check
fully qualified domain name
3) Resolve.conf use to direct the hostnames
4)
ping www.cloudstack.org
to check internet connectivity
1 ) Install MySQL from the package repository of your distribution
#yum install mysql-server
2) Open the MySQL configuration file. The configuration file is vi
/etc/my.cnf (or)vi /etc/mysql/my.cnf, depending on your OS.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 one Management
Server.
#vi /etc/my.cnf
Insert the following lines below
[mysqld] section
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=700
log-bin=mysql-bin
binlog-format = 'ROW'

3) Start or restart MySQL to put the new configuration into effect
3) Start or restart MySQL to put the new configuration into effect
#service mysqld start
4 ) restart MySQL
#service mysql restart
5 ) Run the following command to secure your installation. You can answer “Y” to all questions
#mysql_secure_installation(optional)
6 )To give all permissions to user “cloud” run the below command on
DB server
#mysql -u root –p (to enter in to mysql db)
>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
WITH GRANT OPTION;(grant permissions-root)
>GRANT ALL PRIVILEGES ON *.* TO 'cloud'@'%'
WITH GRANT OPTION;( grant permissions-cloud)
Run
Below Command in Management server
10 )Set up the database. The following command creates the
“cloud” user on the database.
#cloudstack-setup-databases cloud:"password"@dbserverip
--deploy-as=root:"password"
11)To check cloudstack running status
12) Now that the database is set up, you can finish
configuring the OS for the Management Server. This command will set up
iptables, sudoers, and start the Management Server
#cloudstack-setup-management
13)To download teplet
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-xen.vhd.bz2 -h xenserver
If XenServer is installed on the hypervisor hosts
#xe-switch-network-backend bridge
enable security groups, elastic load
balancing, and elastic IP on XenServer, download and install the CloudStack
XenServer Support Package (CSP). After installing XenServer, perform the
following additional steps on each XenServer host.
No comments:
Post a Comment