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
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
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'
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
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.
Step 6 Other configurations
Edit : /usr/share/eucalyptus/gen_libvirt_xml
Locate all 'sda' to 'xvda'
Edit : /etc/xen/xend-config.sxp
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.