Install and configure encalyptus

Source: Internet
Author: User
Tags crypt

Experiment Configuration
HOST 1: Perform front and node operations, install CLC, CC, and NC;
Host 2: Perform node and install NC
1. preparations:
Disable SELinux and Firewall
Clock Synchronization for all nodes
# Ntpdate pool.ntp.org
Use Yum to install GCC, java-1.6.0-openjdk, ant, ant-nodeps, DHCP, bridge-utils, httpd, swig, etc.
# Yum install SCSI-target-utils

2. install the software Eucalyptus
Front: Install the-cloud,-Walrus,-CC and-SC RPMs
Install Basic Package
# Rpm-uvh aoetools-21-1.el4.i386.rpm \
Euca-axis2c-1.6.0-1.i386.rpm \
Euca-rampartc-1.3.0-1.i386.rpm \
Vblade-14-1mdv2008.1.i586.rpm \
Vtun-3.0.2-1.el5.rf.i386.rpm \
Lzo2-2.02-3.el5.rf.i386.rpm \
Perl-Crypt-OpenSSL-Random-0.04-1.el5.rf.i386.rpm \
Perl-Crypt-OpenSSL-RSA-0.25-1.el5.rf.i386.rpm \
Perl-Crypt-X509-0.32-1.el5.rf.noarch.rpm \
Python25-2.5.1-bashton1.i386.rpm \
Python25-devel-2.5.1-bashton1.i386.rpm \
Python25-libs-2.5.1-bashton1.i386.rpm
Install cloud, Walrus, CC, SC
# Rpm-uvh eucalyptus-2.0.2-*. i386.rpm \
Eucalyptus-common-java-2.0.2-1.i386.rpm \
Eucalyptus-cloud-2.0.2-1.i386.rpm \
Eucalyptus-walrus-2.0.2-1.i386.rpm \
Eucalyptus-sc-2.0.2-1.i386.rpm \
Eucalyptus-cc-2.0.2-1.i386.rpm \
Eucalyptus-gl-2.0.2-1.i386.rpm

Node:
Install Basic Package
# Rpm-uvh aoetools-21-1.el4.i386.rpm \
Euca-axis2c-1.6.0-1.i386.rpm \
Euca-rampartc-1.3.0-1.i386.rpm \
Perl-Crypt-OpenSSL-Random-0.04-1.el5.rf.i386.rpm \
Perl-Crypt-OpenSSL-RSA-0.25-1.el5.rf.i386.rpm \
Perl-Crypt-X509-0.32-1.el5.rf.noarch.rpm \
Python25-2.5.1-bashton1.i386.rpm \
Python25-devel-2.5.1-bashton1.i386.rpm \
Python25-libs-2.5.1-bashton1.i386.rpm
Install NC
Rpm-uvh eucalyptus-2.0.2-*. i386.rpm \
Eucalyptus-gl-2.0.2-1.i386.rpm \
Eucalyptus-nc-2.0.2-1.i386.rpm

3. View System Management
Virsh list

4. Edit the configuration file
Edit/etc/xen/xend-config.sxp on front and node nodes
(Xend-http-server yes)
(Xend-Unix-server yes)
(Xend-Unix-path/var/lib/xend-socket)
(Xend-address localhost)
(Network-script network-bridge)
(Vif-script VIF-bridge)
(Dom0-min-mem 196)
(Dom0-cpus 0)
(Vncpasswd '')
Restart xend restart
/Etc/init. d/xend restart

Frontend node:
# Groupadd libvirt
# Vi/etc/libvirt/lib1_d. conf
Unix_sock_group = "libvirt"
Unix_sock_ro_perms = "0777"
Unix_sock_rw_perms = "0770"
Auth_unix_ro = "NONE"
Auth_unix_rw = "NONE"
# Vi/etc/libvirt/qemu. conf
User = "eucalyptus"
# Chown root: libvirt/var/run/libvirt-sock
# Chown root: libvirt/var/run/libvirt-sock-ro
Restart libvirt
#/Etc/init. d/lib1_d stop/start

# Su eucalyptus-c "virsh list" successful
Create eucalyptus directory
# Mkdir/home/Eucalyptus
# Chown eucalyptus: eucalyptus/home/Eucalyptus
# Chmod 700/home/Eucalyptus

5. Start the eucalyptus Service
Frontend:
#/Etc/init. d/eucalyptus-cloud start
#/Etc/init. d/eucalyptus-CC status
Node:
/Etc/init. d/eucalyptus-NC start

Q: failed to start cloud start, error: RG. Apache. xerces. impl. Io. malformedbytesequenceexception: Invalid byte 1 of 1-byte UTF-8 sequence.
A: lang = zh_cn.utf8; export Lang

# Euca_conf -- register-walrus 221.7.248.180
Error: You need to be on the CLC host and the CLC needs to be running.

Modify SSH to log on as the root user. Enter the SSH password below.
Register frontend
Euca_conf -- register-walrus <front end IP address>
Euca_conf -- register-cluster mycluster 221.7.248.180
Euca_conf -- register-SC <clustername> <front end IP address>
[Root @ CLC] # brctlshow
Bridge name bridgeid STP enabled Interfaces
Virbr0 8000.000000000000 Yes
Xenbr0 8000. feffffffffff no peth0

Obtain the name of the virtual network card corresponding to the xen, and then use the following command to set the entry connection address of the network card: (if it is set to 192.168.1.100)
Ifconfig peth0 192.168.1.100
Use the Command Service Network restart to refresh the network connection
Run the ifconfig command to check that the connection address of the network adapter peth0 is 192.168.1.100.

Register Node
Euca_conf -- register-nodes "<node 0 IP address> <Node 1 ip address>"
<Node 0 IP address> is the IP address of the host running NC.

-- Verify Registration
Euca_conf -- list-Walruses
Euca_conf -- list-CLUSTERS
Euca_conf -- list-SCS
Euca_conf -- list-nodes

Reference: Installation Guide http://wenku.baidu.com/view/91066a80e53a580216fcfe18.html

Ii. Configuration after installation

1. Download the key and Certificate
On a node
Download the certificate from 8443, upload it to the server, and decompress it.
Upload to the local device.

# Mkdir ~ /. Euca
# Cd ~ /. Euca
# Chmod 0700 ~ /. Euca
# Chmod 0600 ~ /. Euca /*
#.~ /. Euca/eucarc
2. Modify network configurations

3. Create an image on a machine.
download the image file
register it as a Ubuntu-kernel-bucket, returns an eki number eki-XXXXXXXX
# euca-bundle-image-I vmlinuz-2.6.24-19-xen -- kernel true
checking image
tarring image
encrypting image
splitting image...
part: vmlinuz-2.6.24-19-xen.part.0
generating manifest/tmp/vmlinuz-2.6.24-19-xen.manifest.xml to generate files in the/tmp directory
# euca-upload-bundle-B kernel-M/tmp/vmlinuz-2.6.24-19-xen.manifest.xml
checking Bucket: kernel
creating Bucket: Kernel
uploading manifest file
uploading part: vmlinuz-2.6.24-19-xen.part.0
uploaded image as kernel/vmlinuz-2.6.24-19-xen.manifest.xml

Register as a Ubuntu-ramdisk-bucket, and return an Eri-XXXXXXXX
# euca-bundle-image-I initrd. img-2.6.24-19-xen -- ramdisk true
checking image
tarring image
encrypting image
splitting image...
part: initrd. img-2.6.24-19-xen.part.0
generating manifest/tmp/initrd. img-2.6.24-19-xen.manifest.xml
# euca-upload-bundle-B Ubuntu-ramdisk-bucket-M/tmp/initrd. img-2.6.24-19-xen.manifest.xml
checking Bucket: Ubuntu-ramdisk-bucket
creating Bucket: Ubuntu-ramdisk-bucket
uploading manifest file
uploading part: initrd. img-2.6.24-19-xen.part.0
uploaded image as Ubuntu-ramdisk-bucket/initrd. img-2.6.24-19-xen.manifest.xml

Register as an Ubuntu-image-bucket and return an EMI-XXXXXXXX
# euca-bundle-image-I centos.5-3. x86.img -- kernel eki-F49510CB -- ramdisk eri-AAE1178E
checking image
tarring image
encrypting image
splitting image...
part: centos.5-3. x86.img. part.0
part: centos.5-3. x86.img. part.22
generating manifest/tmp/centos.5-3. x86.img. manifest. XML
# euca-upload-bundle-B Ubuntu-image-bucket-M/tmp/centos.5-3. x86.img. manifest. XML
checking Bucket: Ubuntu-image-bucket
creating Bucket: Ubuntu-image-bucket
uploading manifest file
uploading part: centos.5-3. x86.img. part.0
uploading part: centos.5-3. x86.img. part.22
uploaded image as Ubuntu-image-bucket/centos.5-3. x86.img. manifest. XML

Register
# Euca-register kernel/vmlinuz-2.6.24-19-xen.manifest.xml
Image eki-F49510CB
# Euca-register Ubuntu-ramdisk-bucket/initrd. img-2.6.24-19-xen.manifest.xml
Image eri-AAE1178E
# Euca-register Ubuntu-image-bucket/centos.5-3. x86.img. manifest. xml
Image emi-EB461524

Euca-describe-images allows you to view successfully registered information.
# Euca-describe-images-
Image eri-AAE1178E Ubuntu-ramdisk-bucket/initrd. img-2.6.24-19-xen.manifest.xml admin available public x86_64 ramdisk instance-store
Image eki-F49510CB kernel/vmlinuz-2.6.24-19-xen.manifest.xml admin available public x86_64 kernel instance-store
Image emi-EB461524 Ubuntu-image-bucket/centos.5-3. x86.img. manifest. xml admin available public x86_64 machine eki-F49510CB eri-AAE1178E instance-store

# Euca-run-instances-K mykey-N 1 emi-EB461524 -- Addressing private 192.168.0.5
Finishedverify: not enough resources (0 <1: VM instances. Not enough resources (0 <1: VM instances.
Solution: 1. http://opensource.sys-con.com/node/1349819
2./var/log/logs in Eucalyptus
# Euca-describe-instances
# Euca-terminate-instances <instance-id1> running-> shuttingdown-> terminate

Log on to the VM
Http://open.eucalyptus.com/wiki/EucalyptusGettingStarted_v1.6

 
Q: oxs defualt error, the extenension index of nid_subject_key_identifier is not valid
A: solution: Ignore
Q: nil value found in non-nillable property nodestatus
A:
# Euca-describe-availability-zones verbose

On front # euca-describe-availability-zones verbose
No parsers found
Solution: # Yum install pyxml is not resolved

Cd ~ /. Euca
# Euca-add-keypair mykey> mykey. Private

Euca-allocate-address
Euca-authorize-p tcp-P 22-s 0.0.0.0/0 default

Modify the eucalyptus configuration file
Whenever you make some changes in Eucalyptus. conf file, you shoshould cleanstop/cleanstart the CC.
/Etc/init. d/eucalyptus-CC cleanstop
/Etc/init. d/eucalyptus-CC cleanstart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.