Configuring Open Source Private Cloud
These are steps below I found helpful to set up.
Step 1: Prepare a raw Ubuntu OS system.Â
Â
Install Ubuntu 9.04 on a machine. Select ssh server to be installed on the machine by default, so we can connect to machine remotely.
Â
Step 2: Install postfix.Â
Â
Postfix is a mail server. Eucalyptus sends mails to users that are added by admin on Eucalyptus web interface. So we install postfix that Eucalyptus will use as mail server.
Â
Steps to install postfix and to setup configurations and testing successful Postfix installation
Â
Command# apt-get install postfix
Â
Set configurations
Â
Command# sudo dpkg-reconfigure postfix
Â
Set following parameters with given values.
Â
General type of mail configuration: Internet Site
Â
NONE doesn't appear to be requested in current config
Â
System mail name: server1.example.com
Â
Root and postmaster mail recipient: <admin_user_name> (Optional)
Â
Other destinations for mail: server1.example.com, example.com, localhost.example.com, localhost
Â
Force synchronous updates on mail queue?: No
Â
Local networks: 127.0.0.0/8
Â
Yes doesn't appear to be requested in current config
Â
Mailbox size limit (bytes): 0
Â
Local address extension character: +
Â
Internet protocols to use: all
Â
Test postfix installation
Â
Command# EHLO localhost
Â
Mail from: root@localhost
Â
Â
Data
Â
Subject: your sub (press enter twice)
Â
Type your message and finish with "." then Enter
Â
Finish with "Quit"
Â
Check your mail (if received your mail is working)
Â
Step 3 Install Cloud and Cluster controller
Â
Install the packages provided by Ubuntu, all the dependencies will be installed automatically by package manager.
Â
Command# apt-get install eucalyptus-cloud eucalyptus-cc
Â
Step 4 Install dhcp server
Â
Install the DHCP server which is used by eucalyptus for assigning the IPs to instances. DHCP server should not be in running state and set the DHCP server not to run when system is booted up again.
Â
Command# apt-get install dhcp3-server
Â
Command# /etc/init.d/dhcdbd stop
Â
Command# update-rc.d -f dhcdbd remove
Â
Set the DHCP server path in the eucalyptus config file '/etc/eucalyptus/eucalyptus.conf'
Â
VNET_DHCPDAEMON="/usr/sbin/dhcpd3"
Â
Step 5 Eucalyptus configuration
Â
Set the static mode for Eucalyptus so that Eucalyptus uses IP's from the pool of IP's provided in the config file and use the machine addresses provided along with IPs.
Â
Configuration file for eucalyptus is '/etc/eucalyptus/eucalyptus.conf'
Â
Open /etc/eucalyptus/eucalyptus.conf and set the following parameters
Â
VNET_INTERFACE="peth0"
Â
VNET_BRIDGE="eth0"
Â
Locate 'kvm' and replace to 'xen'
Â
Locate VNET_MODE="SYSTEM" and disable it
Â
Locate VNET_MODE="STATIC" and enable it
Â
Add machine and IPs for instances to be used and change the network setting to current network settings.
Â
VNET_MODE="STATIC"
Â
VNET_SUBNET="192.168.145.0"
Â
VNET_NETMASK="255.255.255.0"
Â
VNET_BROADCAST="192.168.145.255"
Â
VNET_ROUTER="192.168.145.1"
Â
VNET_DNS="192.168.150.42"
Â
VNET_MACMAP="AA:DD:11:CE:FF:ED=192.168.145.73 AA:DD:11:CE:FF:EE=192.168.145.75
Â
AA:DD:11:CE:FF:EF=192.168.145.77"
Â
Step 6 Other configurations
Â
Edit : /usr/share/eucalyptus/gen_libvirt_xml
Â
Locate all 'sda' to 'xvda'
Â
Edit : /etc/xen/xend-config.sxp
Â
(xend-http-server yes)
Â
Gateway = 192.168.145.1
Â
Netmask = 255.255.255.0
Â
Broadcast = 192.168.145.255
Â
Step 7 Reboot the system to take effect
Â
Step 8 Cloud configurations
Â
Once Eucalyptus front end has been installed, we can use the Eucalyptus web interface and setup cluster and set other parameters.
Â
Eucalyptus cloud web URL: https://<front end ip>:8443/
Â
Under configuration tab add cluster name
Â
Set host to 'localhost'
Â
Create kernel and ramdisk images and set in eucalyptus site. (Procedure to create images will be described later in the page)
Â
Restart the Eucalyptus daemon to take effect.