Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In the dropadown menu! Under "Platform:" select either Linux (for i386) or Linux x64 (for x86_64). The root _AT_ clc # chmod 0700 jdk *. bin [Root _AT_ clc] # . / jdk * bin
move all file in jdk1.6.0_20 to opt / packages / jdk [Root @ clc] # mkdir-p / opt / packages / jdk [Root @ clc] # mv jdk1.6.0_20 / * / opt / packages / jdk /
The root _AT_ clc # cd eucalyptus-deps * [Root _AT_ clc] # yum install-y *. rpm - nogpgcheck
The root _AT_ node1 # cd eucalyptus-deps * The rpm - nogpgcheck of [the root _AT_ node1 # yum install-y *
2) install at node cd eucalyptus-centos-*. leee [The root _AT_ node1] # rpm-Uvh eucalyptus-2.0.1eee-1 *. x86_64.rpm eucalyptus-nc-2.0.1eee-1 *. x86_64.rpm eucalyptus-gl-2.0.1eee-1 *. x86_64 . rpm
1) configuring grub and reboot : vi / etc / grub.conf default = 0 timeout = 5 splashimage = (hd0, 0) / grub / splash.xpm.gz hiddenmenu title CentOS (2.6.18-194.17.4.el5xen) root (hd0, 0) kernel / xen.gz-2.6.18-194.17.4.el5 module / vmlinuz-2.6.18-194.17.4.el5xen ro root = LABEL = / 1 rhgb quiet module / initrd-2.6.18-194.17.4.el5xen.img title CentOS (2.6.18-164.el5) root (hd0, 0) kernel / vmlinuz-2.6.18-164.el5 ro root = LABEL = / 1 rhgb quiet initrd / initrd-2.6.18-164.el5.img note : default = 0 , 0 stands for the kernel for xen 's title
2) configuration xen . make sure that your xend-config.sxp file is setup correctly. Go to: / Etc / xen / xend-config.sxp
These are the recommended settings: (bold need to be modified, the other non-default)
(Xend-http-server yes) (Xend-unix-server yes) (Xend-unix-path / var / lib / xend / xend-socket) (Xend-address localhost) (Network-script network-bridge) (Vif-script vif-bridge) (Dom0-min-mem 196) (Dom0-cpus 0) (Vncpasswd'')
1 .6 start
1) Startup your Eucalyptus services. On the front end, enter [Root @ clc] # / etc / init.d / eucalyptus-cloud start [Root @ clc] # / etc / init.d / eucalyptus-cc start
2) On! The! Node machine, start! The node controller: [Root @ node1] # / etc / init.d / eucalyptus-nc start
Node failed to start: [Root @ localhost ~] # / etc / init.d / eucalyptus-nc start You should have at least 32 loop devices Starting Eucalyptus services: Node Controller cannot be started: errors in / / var / log / eucalyptus / euca_test_nc.log
Node startup error log: dom0-min-mem = 256 libvir: Xen Daemon error: internal error failed to connect to xend libvir: Xen Daemon error: unable to connect to 'localhost: 8000': Connection refused libvirt error: unable to connect to 'localhost: 8000': Connection refused (code = 38) error: failed to connect to hypervisor
View node information: ( need to modify the grub and restart, reference of 1.5 installing and configuring Hypervisors ) [Root @ localhost ~] # su eucalyptus-c "virsh list" Id the Name State
----------------------------------
[Root @ localhost ~] # brctl show bridge name virbr0 is bridge id 8000.000000000000 STP enabled TOP yes the interfaces
Link veth0 is missing. This may be because you have reached the limit of the number of interfaces that the loopback driver the supports. If the loopback driver is a module, you may raise this limit by passing it as a parameter (nloopbacks = <N>); if the driver is compiled statically into the kernel, then you may set the parameter using loopback.nloopbacks = <N> on the domain 0 kernel command line.
Start the front-end node , the following error may occur: You should have at least 32 loop devices Starting Eucalyptus services: (13) Permission denied: make_sock: could not bind to address [::]: 8775 (13) Permission denied: make_sock: could not bind to address 0.0.0.0:8775 no listening sockets available, shutting down Unable to open logs The Solution: vnc Login to centos graphical interface settings are as follows, System> Administration> Security Level and Firewall Both Firewall and SElinux set to Disabled.
2 , deregistering NODES
[Root @ localhost credentials] # mkdir ~ /. Euca [Root @ localhost credentials] # unzip euca2-guopeng-x509.zip-d ~ /. Euca /
[Root @ localhost credentials] # cd ~ /. Euca / [Root @ localhost. Euca] # chmod 755 eucarc [Root @ localhost. Euca] #. / Eucarc
[Root @ localhost. Euca] # euca-describe-images EC2_ACCESS_KEY environment variable must be set. Connection failed [Root @ localhost. Euca] # source ~ / .euca / eucarc (Note source =.)
1 , a prepare images
eg download from http://open.eucalyptus.com/wiki/EucalyptusUserImageCreatorGuide_v2.0
2 , a bundle kernel
euca-bundle-image [-d] [-c]-i The-i Name of the image file to the bundle.
-D the Destination directory for bundled image (default Directory is / tmp). The-c The-k Path to user's PEM encoded CERTIFICATE. Path to the user's PEM encoded private key.
[Root @ localhost images] # cd euca-ubuntu-9.04-x86_64 [Root @ localhost euca-ubuntu-9.04-x86_64] # euca-bundle-image-i kvm-kernel/vmlinuz-2.6.28-11-generic - kernel true Checking image
Tarring image Encrypting image Splitting image ... Part: vmlinuz-2.6.28-11-generic.part.0 Generating manifest / tmp/vmlinuz-2.6.28-11-generic.manifest.xml / Tmp/vmlinuz-2.6.28-11-generic.manifest.xml
3 , uploading kernel
euca-upload-bundle -b bucket-m manifest_path The-b Name of the the bucket to upload to (The bucket i created if it does not yet exist, but in. all cases a
bucket name must be specified). -M Path to the manifest file for the bundled image.
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-upload-bundle-b ubuntu-kernel-bucket-m / tmp/vmlinuz-2.6.2811-generic.manifest.xml Checking bucket: ubuntu-kernel-bucket Creating bucket: ubuntu-kernel-bucket Uploading manifest file Uploading part: vmlinuz-2.6.28-11-generic.part.0 Uploaded image as ubuntu-kernel-bucket/vmlinuz-2.6.28-11-generic.manifest.xml
4 , registering kernel
euca-register image_location image location Path to the uploaded image The (bucket / manifest)
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-upload-bundle-b ubuntu-ramdisk-bucket-m / tmp/initrd.img2.6.28-11-generic.manifest.xml [Root @ localhost euca-ubuntu-9.04-x86_64] # euca-register ubuntu-ramdisk-bucket/initrd.img-2.6.28-11generic.manifest.xml IMAGE eri-17,771,939
[Root _AT_ localhost euca-ubuntu-9.04-x86_64] # euca-bundle-image-i ubuntu.9-04.x86-64.img - the the kernel ekiAEBB17DB - ramdisk eri-17,771,939 Checking image Tarring image Encrypting image Splitting image ... Part: ubuntu.9-04.x86-64.img.part.0 Part: ubuntu.9-04.x86-64.img.part.1 Part: ubuntu.9-04.x86-64.img.part.2 Part: ubuntu.9-04.x86-64.img.part.3 Part: ubuntu.9-04.x86-64.img.part.4 Part: ubuntu.9-04.x86-64.img.part.5 Part: ubuntu.9-04.x86-64.img.part.6 Part: ubuntu.9-04.x86-64.img.part.7 Part: ubuntu.9-04.x86-64.img.part.8 Part: ubuntu.9-04.x86-64.img.part.9 Part: ubuntu.9-04.x86-64.img.part.10 Part: ubuntu.9-04.x86-64.img.part.11 Part: ubuntu.9-04.x86-64.img.part.12 Part: ubuntu.9-04.x86-64.img.part.13 Generating manifest / tmp/ubuntu.9-04.x86-64.img.manifest.xml / Tmp/ubuntu.9-04.x86-64.img.manifest.xml (can not specify ramdisk )
Checking bucket: ubuntu-image-bucket Creating bucket: ubuntu-image-bucket Uploading manifest file Uploading part: ubuntu.9-04.x86-64.img.part.0 Uploading part: ubuntu.9-04.x86-64.img.part.1 Uploading part: ubuntu.9-04.x86-64.img.part.2 Uploading part: ubuntu.9-04.x86-64.img.part.3 Uploading part: ubuntu.9-04.x86-64.img.part.4 Uploading part: ubuntu.9-04.x86-64.img.part.5 Uploading part: ubuntu.9-04.x86-64.img.part.6 Uploading part: ubuntu.9-04.x86-64.img.part.7 Uploading part: ubuntu.9-04.x86-64.img.part.8 Uploading part: ubuntu.9-04.x86-64.img.part.9 Uploading part: ubuntu.9-04.x86-64.img.part.10 Uploading part: ubuntu.9-04.x86-64.img.part.11 Uploading part: ubuntu.9-04.x86-64.img.part.12 Uploading part: ubuntu.9-04.x86-64.img.part.13 Uploaded image as ubuntu-image-bucket/ubuntu.9-04.x86-64.img.manifest.xml
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-describe-images ( need to run this command, the web interface images , bundles disappear before )
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-add-keypair mykey> mykey.private [Root @ localhost ~] # chmod 0600 mykey.private
2, run instance
euca-run-instances [-k] [-n] image id The image id Identifier of the image The to the run.
An-k
-N
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-run-instances-k mykey emi-39C21609 The RESERVATION the INSTANCE 942116FE r-42BA079F guopeng guopeng-default emi-39C21609 0.0.0.0 0.0.0.0 Pending mykey202010-10-29T03: 11:02.237 Z eki-
i-30B50604 None
[Root @ localhost euca-ubuntu-9.04-x86_64] # euca-describe-instances RESERVATION INSTANCE Pending r-42BA079F i-30B50604 mykey 0 guopeng default is emi-39C21609 m1.small 0.0.0.0 0.0.0.0 cloudServer eki-942116FE
2010-10-29T03: 11:02.237 Z
Run instance error log (nc.log): Fri Oct 29 16:21:19 2010] [006207] [EUCADEBUG] doDescribeResource () invoked [Fri Oct 29 16:21:19 2010] [006207] [EUCADEBUG] doDescribeInstances () invoked [Fri Oct 29 16:21:19 2010] [006207] [EUCADEBUG] doDescribeInstances (): instanceId = i-417506F8 publicIp = 0.0.0.0 privateIp = 0.0.0.0 mac = d0: 0d: 41:75:06: F8 vlan = -1 networkIndex = -1 platform = linux [Fri Oct 29 16:21:20 2010] [006207] [EUCADEBUG] system_output (): [/ / usr / lib / eucalyptus / euca_rootwrap / / usr / share / eucalyptus / gen_libvirt_xml - kernel - ephemeral] [Fri Oct 29 16:21:20 2010] [006 207] [EUCAINFO ] currently running / booting: i-417506F8 [Fri Oct 29 16:21:21 2010] [006 207] [EUCAINFO ] booting the VM instance i-417506F8 [Fri Oct 29 16:21:21 2010] [006207] [EUCADEBUG] state change for instance i-417506F8: Staging -> Booting (Pending) [Fri Oct 29 16:21:22 2010] [006207] [EUCAERROR] libvirt: cannot read directory / etc / xen: Permission denied (code = 38) [Fri Oct 29 16:21:22 2010] [006207] [EUCAERROR] libvirt: Domain not found: xenUnifiedDomainLookupByName (code = 42) [Fri Oct 29 16:21:25 2010] [006207] [EUCADEBUG] doDescribeResource () invoked [Fri Oct 29 16:21:25 2010] [006207] [EUCADEBUG] doDescribeInstances () invoked [Fri Oct 29 16:21:25 2010] [006207] [EUCADEBUG] doDescribeInstances (): instanceId = i-417506F8 publicIp = 0.0.0.0 privateIp = 0.0.0.0 mac = d0: 0d: 41:75:06: F8 vlan = -1 networkIndex = -1 platform = linux
[Fri Oct 29 16:21:27 2010] [006207] [EUCAERROR] libvirt: Domain not found: xenUnifiedDomainLookupByName (code = 42) [Fri Oct 29 16:21:31 2010] [006207] [EUCADEBUG] doDescribeResource () invoked [Fri Oct 29 16:21:31 2010] [006207] [EUCADEBUG] doDescribeInstances () invoked [Fri Oct 29 16:21:31 2010] [006207] [EUCADEBUG] doDescribeInstances (): instanceId = i-417506F8 publicIp = 0.0.0.0 privateIp = 0.0.0.0 mac = d0: 0d: 41:75:06: F8 vlan = -1 networkIndex = -1 platform = linux [Fri Oct 29 16:21:32 2010] [006207] [EUCAERROR] libvirt: cannot read directory / etc / xen: Permission denied (code = 38) [Fri Oct 29 16:21:32 2010] [006207] [EUCAERROR] libvirt: Domain not found: xenUnifiedDomainLookupByName (code = 42)