Before starting the building: Make sure that the firewall is disabled and SELinux is disabled.
The command to disable the firewall is: # service iptables stop.
Disabling SELinux is a little troublesome: Step 1: first CD to the specified path: # cd/etc/SELinux; Step 2: Modify the file config: VI config; Step 3: the most important step is to change SELinux = "XXX" to SELinux = disabled. Step 4: restart your computer.
After reboot: Enter the command getenforce. If disabled is displayed, the modification is successful.
========================================================== ========================================================== =
Go to the building process: (follow the instructions on the official website)
Step 1: Yum install-y NTP
Ntpdate pool.ntp.org
Step 2: Yum install-y java-1.6.0-openjdk ant-nodeps DHCP httpd
Yum install-y aoyunls vlade vtun
Step 3: Yum install-y qemu-KVM libvirt
Groupadd libvirt (this step is not written on the official website, but it must be done)
Step 4: CD/etc/yum. Repos. d
VI euca. Repo
Write the following four lines into the file:
[Euca]
Name = Eucalyptus
Base url = http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/2.0.0/yum/fedora
Enable = 1
After saving and exiting, enter the following command:
Yum install eucalyptus-cloud eucalyptus-CC eucalyptus-walrus eucalyptus-SC -- nogpgcheck
Step 5: VI/etc/libvirt/lib1_d. conf. Modify the following command:
# Unix_sock_group = "libvirt" => unix_sock_group = "libvirt"
# Unix_sock_ro_perms = "0777" => unix_sock_ro_perms = "0777"
# Unix_sock_rw_perms = "0770" => unix_sock_rw_perms = "0770"
# Auth_unix_ro = "NONE" => auth_unix_ro = "NONE"
# Auth_unix_rw = "NONE" => auth_unix_rw = "NONE"
Step 6: Stop libvirt and start later:
/Etc/init. d/lib1_d stop
/Etc/init. d/lib1_d start
Chown root: libvirt/var/run/libvirt-sock
Chown root: libvirt/var/run/libvirt-sock-ro
Step 7: Start your cloud platform eucalyptus:
/Etc/init. d/eucalyptus-cloud start
/Etc/init. d/eucalyptus-CC start
========================================================== ========================================================== =
After completing the above steps, you still cannot see your cloud platform in IE, and you must complete the registration steps to display the steps as follows:
Step 1: # euca_conf -- register-walrus <your IP address> (Note: Angle brackets are not required)
Step 2: # euca_conf -- register-cluster <clustername> <your IP address>
If you do not know your IP address, you can view it through # ifconfig eth0.
If you want to confirm it, enter the following command:
# Euca_conf -- list-walruses and euca_conf -- list-clusters.
========================================================== ========================================================== =
Now you can enter the URL http: // your IP address: 8443 in IE to view your own eucalyptus cloud platform. The account and password are both initialized.
Admin.
During the building process, we encountered a difficult problem, that is, after each restart, the IE page could not be displayed normally. Now we only found the emergency solution:
After the first normal setup, copy the webapp folder under/var/run/eucalyputs/to another place (I put it under/opt ). After each restart
It automatically clears the content in the subfolders of the webapp, causing webui to be invisible. You only need to copy the backed up webapp back.
A good method is still searching.
========================================================== ========================================================== =
Original article: http://blog.csdn.net/hispania/article/details/5902926