Installing Eucalyptus Private Cloud on Cent OS 6.5 on a Virtual Machine.
All components are planed to install on same machine.
Configuring Dependency for Installing Eucalyptus
All components are planed to install on same machine.
Configuring Dependency for Installing Eucalyptus
$yum install bridge-utils
2. Go to the /etc/sysconfig/network-scripts directory :
$cd /etc/sysconfig/network-scripts
3. Open the network script for the device you are adding to the bridge and add your bridge device to it. The edited file should look similar to the following :
DEVICE=eth0
# change the hardware address to match the hardware address your NIC uses
HWADDR=00:16:76:D6:C9:45
ONBOOT=yes
BRIDGE=br0
NM_CONTROLLED=no
4. Create a new network script in the /etc/sysconfig/network-scripts directory called ifcfg-br0 or something similar. The br0 is the name of the bridge, but this can be anything as long as the name of the file is the same as the DEVICE parameter, and the name is specified correctly in the previously created physical interface configuration (ifcfg-ethX).
If you are using DHCP, the configuration will look similar to,
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
5. Enter the following command:
$service network restart
6. To disable your firewall:
$Run the command $system-config-firewall-tui
Turn off the Enabled check box.
7. Install NTP on the machines that will host Eucalyptus components.
$yum install ntp
Open the /etc/ntp.conf file and add NTP servers, as in the following example.
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
Save and close the file.
Configure NTP to run at reboot.
$ chkconfig ntpd on
8. Start NTP.
$ service ntpd start
ntpdate -u <your_ntp_server>
hwclock --systohc
9. Edit the sysctl.conf on each machine you plan to install the Cluster Controller (CC) component on. IP forwarding is required for the CC to work.
net.ipv4.ip_forward = 1
10 . Configure the Eucalyptus package repository on each host that will run a Eucalyptus component:
$ yum install http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/eucalyptus-release-3.4.noarch.rpm
11. Configure the Euca2ools package repository on each host that will run a Eucalyptus component or Euca2ools:
$ yum install http://downloads.eucalyptus.com/software/euca2ools/3.0/centos/6/x86_64/euca2ools-release-3.0.noarch.rpm
12. Configure the EPEL package repository on each host that will run a Eucalyptus component or Euca2ools:
$ yum install http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/epel-release-6.noarch.rpm
13. Configure the ELRepo repository on each host that will run Walrus:
$ yum install http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/elrepo-release-6.noarch.rpm
14. Install the Eucalyptus node controller software on each planned NC host:
$ yum install eucalyptus-nc
15. Check that the KVM device node has proper permissions.
Run the following command:
$ ls -l /dev/kvm
16. Install the Eucalyptus cloud controller software on each planned CLC host:
$ yum install eucalyptus-cloud
17. Install the software for the remaining Eucalyptus components. The following example shows most components being installed on the same host. We recommend that you use different hosts for each component:
$ yum install eucalyptus-cc eucalyptus-sc eucalyptus-walrus
18. If you would like Load Balancer support enabled in your Cloud, you will need to install the Load Balancer image package on the machine hosting the primary CLC:
$ yum install eucalyptus-load-balancer-image
19. Log in to the CC and open the /etc/eucalyptus/eucalyptus.conf file. ( Managed (No-VLAN) Mode )
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="[Subnet for VMs private IPs. Example: 192.168.0.0]"
VNET_NETMASK="[Netmask for the vnet_subnet. Example: 255.255.0.0]"
VNET_DNS="[DNS server IP]"
VNET_ADDRSPERNET="[Number of simultaneous instances per security group]"
VNET_PUBLICIPS="[Free public IP 1] [Free public IP 2] ..."
VNET_LOCALIP="[IP address that other CCs can use to reach this CC]"
VNET_DHCPDAEMON="[Path to DHCP daemon binary. Example: /usr/sbin/dhcpd3]"
VNET_DHCPUSER='[DHCP user. Example: dhcpd]"
VNET_PRIVINTERFACE="[Ethernet device on same network as NCs. Example: eth1]"
VNET_PUBINTERFACE="[Ethernet device on ‘public’ network. Example: eth0]"
20. Log in to the Cloud Controller (CLC).
/usr/sbin/euca_conf --initialize
21. Enter the following command to start the CLC:
service eucalyptus-cloud start
22. Log in to the Walrus server and enter the following command:
$ service eucalyptus-cloud start
23. To register Walrus:
On the CLC server, enter the following command:
$ /usr/sbin/euca_conf --register-walrus --partition walrus --host 192.168.1.28 --component s3walrus
24. To register the CC:
On the CLC, enter the following command:
$ /usr/sbin/euca_conf --register-cluster --partition cluster01 --host 192.168.1.28 --component CloudCC
25. To register the SC:
$ /usr/sbin/euca_conf --register-sc --partition cloudsc --host 192.168.1.28 --component SC
26. Euca2ools is the Eucalyptus command line interface for interacting with Eucalyptus.
Configure the EPEL package repository
$ yum install http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/epel-release-6.noarch.rpm
27. Configure the Euca2ools package repository:
$ yum install http://downloads.eucalyptus.com/software/euca2ools/3.0/centos/6/x86_64/euca2ools-release-3.0.noarch.rpm
28.Install Euca2ools:
yum install euca2ools
No comments:
Post a Comment