Anda di halaman 1dari 10

Check CPU 32/64 bit

If this command returns lm (Long Mode) as one of the flags, then your processor is capable of 64-bit. oneadmin@oneadmin-laptop:~$ grep flags /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat tpr_shadow vnmi flexpriority ept vpid flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat tpr_shadow vnmi flexpriority ept vpid flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat tpr_shadow vnmi flexpriority ept vpid flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat tpr_shadow vnmi flexpriority ept vpid

Installing
Tar ball source code Ubuntu repository: N/A (old version opennebula 2.1.x) OpenNebula Express: N/A (out-of-date support upto opennebula 2.2.x)

Install and verifyusing tar ball source code


1. Prerequisite: a. Packages: Reference: http://opennebula.org/documentation:rel3.0:build_deps

Debian/Ubuntu
g++ libxmlrpc-c3-dev scons

libsqlite3-dev libmysqlclient-dev libxml2-dev libssl-dev ruby-full

CentOS 5 / RHEL 5
scons xmlrpc-c sqlite Ruby

2. Install steps: $ scons -j2 $ ./install.sh -d /media/OpenNebula/one-3.0.0 # OpenNebula environment to all user # /etc/bash.bashrc export ONE_LOCATION=/media/OpenNebula/one-3.0.0 export PATH=$ONE_LOCATION/bin:$PATH # OpenNebula environment speficfic for oneadmin user export ONE_AUTH=$HOME/.one/one_auth $ mkdir ~/.one $ echo oneadmin:password > $HOME/.one/one_auth 3. Troubleshoot Fri Aug 12 23:01:25 2011 [ReM][D]: HostPoolInfo method invoked Fri Aug 12 23:01:25 2011 [ReM][D]: HostPoolInfo method invoked Fri Aug 12 23:01:29 2011 [InM][I]: Monitoring host oneadmin-desktop (0) Fri Aug 12 23:01:30 2011 [InM][I]: Command execution fail: scp -r /media/OpenNebula/one2.9.80/var/remotes/. oneadmin-desktop:/var/tmp/one Fri Aug 12 23:01:30 2011 [InM][I]: Host key verification failed. Fri Aug 12 23:01:30 2011 [InM][I]: lost connection Fri Aug 12 23:01:30 2011 [InM][I]: ExitCode: 1 Fri Aug 12 23:01:30 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Could not update remotes libssl-dev: Depends: libssl0.9.8 (= 0.9.8k-7ubuntu8) but 0.9.8k-7ubuntu8.5 is to be installed ==>libssl0.9.8k-7ubuntu8.5 is located in lucid-security while mirror-fpt-telecom.fpt.net has only libssl0.9.8 so this source can not be used Workarround by enable security.ubuntu.com source by edit /etc/apt/source.lists deb http://security.ubuntu.com/ubuntu lucid-security main restricted deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted and update apt-get

$ sudo apt-get update Testing recipe: pkg-config Error calling pkg-config ==>$ sudo apt-get install pkg-config 4. Troubleshoot New VM state is ACTIVE. New VM state is PROLOG. prolog, error getting driver tm_ssh epilog_delete, error getting driver vmm_kvm. You may need to manually clean 172.16.1.179:/ srv/cloud/one/var//3/images New VM state is FAILED ===> etc/oned.conf wrong configure of TM_MAD Sat Sep 24 00:31:20 2011 [InM][I]: Monitoring host one1 (0) Sat Sep 24 00:31:21 2011 [InM][I]: ExitCode: 0 Sat Sep 24 00:31:21 2011 [InM][I]: Command execution fail: 'if [ -x "/var/tmp/one/im/ run_probes" ]; then /var/tmp/one/im/run_probes kvm 0 one1; else exit 42; fi' Sat Sep 24 00:31:21 2011 [InM][I]: ./kvm.rb:29:in ``': No such file or directory - virsh -c qemu:// /system nodeinfo (Errno::ENOENT) Sat Sep 24 00:31:21 2011 [InM][I]: from ./kvm.rb:29:in `<main>' Sat Sep 24 00:31:21 2011 [InM][E]: Error executing kvm.rb Sat Sep 24 00:31:21 2011 [InM][I]: ExitCode: 1 Sat Sep 24 00:31:21 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Error executing kvm.rb 5. OCCI <TBD> a. http://opennebula.org/documentation:rel3.0:occicg 6. <TDB>

Install Node
7. Install require apt package $ sudo apt-get install kvm libvirt-bin $ onehost create one1 im_kvm vmm_kvm tm_nfs $ onehost sync

Install Sunstone
8. Ubuntu APT packages Ubuntu default missing pakage:

$ sudo apt-get install ruby-full rubygems # add this to /etc/environment

# export PATH=/var/lib/gems/1.9.1/bin:$PATH
$ cat .gemrc gemhome: /var/lib/gems/1.8 gempath: - /var/lib/gems/1.8
RUBYOPT - Any command line switches here will be added to any switches specified on the command line. RUBYPATH - When used with the -S switch on the command line, the paths listed in RUBYPATH will be added to the paths searched when looking for Ruby scripts. The paths in RUBYPATH precede the paths listed in PATH. RUBYLIB - The list of paths here will be added to the list of paths Ruby uses to search for libraries included in the program with the require method. The paths in RUBYLIB will be searched before other directories.

9. Ruby GEMS packages # Require package $sudo apt-get install libsqlite3-dev libxslt1-dev libxml2-dev $ sudo gem install -V nokogiri rails rack thin sinatra sqlite3 json sequel $ sudo gem install -V nokogiri rake xmlparser rack thin rails sinatra json sequel sqlite3 # PROXY $ sudo gem install -p <ProxyIP>:<Port> -V nokogiri rake xmlparser rack thin rails sinatra json sequel sqlite3 10. install Sunstone Install NoVNC $ cd ../opennebula-2.9.80/share/ $ ./install_novnc.sh # Advance deploy Sunstone. # Sunstone can be deploy in other host different with front-end # It will communicate with OpenNebula deamon using XML-RPC interface but in this case, # sunstone cannot get the VM log placed on front end $ install -s -d /path/to/sunstone-deploy 11. Start Sunstone # Monitoring system is required $ oneacctd start $ sunstone-server start 12. Troubeshoot

===> gem install sequel ===> sudo apt-get install libsequel-ruby1.9.1 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sequel (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /media/OpenNebula/one-2.9.80/lib/ruby/acct/watch_helper.rb:2 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /media/OpenNebula/one-2.9.80/lib/ruby/acct/watch_client.rb:2 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /media/OpenNebula/one-2.9.80/lib/sunstone/models/SunstoneServer.rb:20 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /media/OpenNebula/one-2.9.80/lib/sunstone/sunstone-server.rb:53 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /media/OpenNebula/one-2.9.80/lib/sunstone/config.ru:21 from /var/lib/gems/1.8/gems/rack-1.2.0/lib/rack/builder.rb:46:in `instance_eval' from /var/lib/gems/1.8/gems/rack-1.2.0/lib/rack/builder.rb:46:in `initialize' from /media/OpenNebula/one-2.9.80/lib/sunstone/config.ru:1:in `new' from /media/OpenNebula/one-2.9.80/lib/sunstone/config.ru:1 $ scons -j2 scons: Reading SConscript files ... Testing recipe: pkg-config Error calling pkg-config xmlrpc_server_abyss++ --static --libs ===> warning can be ignored rake gcc -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -I/usr/lib/ruby/1.8/i486-linux -I/usr/local/lib/ site_ruby/1.8 -I. -c xmlparser.c (in /var/lib/gems/1.8/gems/xmlparser-0.6.81/ext/xmlparser) xmlparser.c:50:24: error: xmlparse.h: No such file or directory xmlparser.c:106: error: expected specifier-qualifier-list before XML_Parser xmlparser.c: In function XMLParser_free: xmlparser.c:158: error: XMLParser has no member named parser xmlparser.c:159: error: XMLParser has no member named parser xmlparser.c:160: error: XMLParser has no member named parser xmlparser.c: In function XMLParser_mark: xmlparser.c:169: error: XMLParser has no member named parent xmlparser.c:171: error: XMLParser has no member named parent xmlparser.c:171: error: XMLParser has no member named parent xmlparser.c:172: error: XMLParser has no member named parent xmlparser.c: In function taintParser: xmlparser.c:178: error: XMLParser has no member named tainted xmlparser.c:179: error: XMLParser has no member named parent xmlparser.c:179: error: XMLParser has no member named context xmlparser.c:181: error: XMLParser has no member named parent

xmlparser.c:181: error: XMLParser has no member named parent xmlparser.c: In function taintObject: xmlparser.c:188: error: XMLParser has no member named tainted xmlparser.c: At top level: xmlparser.c:205: error: expected ;, , or ) before * token xmlparser.c:233: error: expected ;, , or ) before * token xmlparser.c:247: error: expected ;, , or ) before * token xmlparser.c:262: error: expected ;, , or ) before * token xmlparser.c:278: error: expected ;, , or ) before * token xmlparser.c:294: error: expected ;, , or ) before * token xmlparser.c:319: error: expected ;, , or ) before * token xmlparser.c:342: error: expected ) before xmlparser lib/sunstone/config.ru:23: undefined method `run' for main:Object (NoMethodError) It seems to be a problem w/ how Sinatra reloads the config file. $ rackup config.ru is OK sh: /media/OpenNebula/service-manager-1.0//share/noVNC/utils/wsproxy.py: not found ===> etc/sunstone-server.conf has wrong NoVNC environment rack error with ruby 1.9.1 $ONE_LOCATION/lib/sunstone/config.ru:20:in `block in <main>': undefined method `dirname' for Rack::File:Class (NoMethodError) from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/builder.rb:51:in `instance_eval' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/builder.rb:51:in `initialize' from $ONE_LOCATION/lib/sunstone/config.ru:1:in `new' from $ONE_LOCATION/lib/sunstone/config.ru:1:in `<main>' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/builder.rb:40:in `eval' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/builder.rb:40:in `parse_file' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/server.rb:200:in `app' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/server.rb:301:in `wrapped_app' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/server.rb:252:in `start' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/lib/rack/server.rb:137:in `start' from $HOME/.gem/ruby/1.9.1/gems/rack-1.3.3/bin/rackup:4:in `<top (required)>' from /var/lib/gems/1.9.1/bin/rackup:19:in `load' from /var/lib/gems/1.9.1/bin/rackup:19:in `<main>' Would you mind to change the line 20 of the $ONE_LOCATION/lib/ruby/sunstone/config.ru file to become $: << ::File.dirname(__FILE__) instead of $: << File.dirname(__FILE__)

sequel ===> if we do not specify, ruby auto generate inheritant path to fix this, change: VM_SAMPLE.... to WatchHelper::VM_SAMPLE
$ONE_LOCATION/lib/ruby/acct/watch_helper.rb:164:in `block in bootstrap': uninitialized constant Sequel::Schema::Generator::VM_SAMPLE (NameError)
from $GEMS_LOCATION/sequel-3.27.0/lib/sequel/database/schema_generator.rb:39:in `instance_eval' from $GEMS_LOCATION/sequel-3.27.0/lib/sequel/database/schema_generator.rb:39:in `initialize' from $GEMS_LOCATION/sequel-3.27.0/lib/sequel/database/schema_methods.rb:96:in `new' from $GEMS_LOCATION/sequel-3.27.0/lib/sequel/database/schema_methods.rb:96:in `create_table' from $GEMS_LOCATION/sequel-3.27.0/lib/sequel/database/schema_methods.rb:120:in `create_table?'

from $ONE_LOCATION/lib/ruby/acct/watch_helper.rb:157:in `bootstrap' from $ONE_LOCATION/lib/ruby/acct/watch_helper.rb:213:in `<module:WatchHelper>' from $ONE_LOCATION/lib/ruby/acct/watch_helper.rb:17:in `<top (required)>' from $ONE_LOCATION/lib/ruby/acct/watch_client.rb:18:in `require' from $ONE_LOCATION/lib/ruby/acct/watch_client.rb:18:in `<module:OneWatchClient>' from $ONE_LOCATION/lib/ruby/acct/watch_client.rb:17:in `<top (required)>' from $ONE_LOCATION/lib/sunstone/models/SunstoneServer.rb:20:in `require' from $ONE_LOCATION/lib/sunstone/models/SunstoneServer.rb:20:in `<top (required)>' from $ONE_LOCATION/lib/sunstone/sunstone-server.rb:49:in `require' from $ONE_LOCATION/lib/sunstone/sunstone-server.rb:49:in `<top (required)>' from $ONE_LOCATION/lib/sunstone/config.ru:22:in `require' from $ONE_LOCATION/lib/sunstone/config.ru:22:in `block in <main>' from $GEMS_LOCATION/rack-1.3.3/lib/rack/builder.rb:51:in `instance_eval' from $GEMS_LOCATION/rack-1.3.3/lib/rack/builder.rb:51:in `initialize' from $ONE_LOCATION/lib/sunstone/config.ru:1:in `new' from $ONE_LOCATION/lib/sunstone/config.ru:1:in `<main>' from $GEMS_LOCATION/rack-1.3.3/lib/rack/builder.rb:40:in `eval' from $GEMS_LOCATION/rack-1.3.3/lib/rack/builder.rb:40:in `parse_file' from $GEMS_LOCATION/rack-1.3.3/lib/rack/server.rb:200:in `app' from $GEMS_LOCATION/rack-1.3.3/lib/rack/server.rb:301:in `wrapped_app' from $GEMS_LOCATION/rack-1.3.3/lib/rack/server.rb:252:in `start' from $GEMS_LOCATION/rack-1.3.3/lib/rack/server.rb:137:in `start' from $GEMS_LOCATION/rack-1.3.3/bin/rackup:4:in `<top (required)>' from /var/lib/gems/1.9.1/bin/rackup:19:in `load' from /var/lib/gems/1.9.1/bin/rackup:19:in `<main>'

this may related to: neadmin@oneadmin-laptop:~$ oneacctd start Error executing oneacctd. Check $ONE_LOCATION/var/oneacctd.log for more information oneadmin@oneadmin-laptop:~$ cat $ONE_LOCATION/var/oneacctd.log $ONE_LOCATION/lib/ruby/acct/watch_helper.rb:18:in `require': no such file to load -- sequel (LoadError) from $ONE_LOCATION/lib/ruby/acct/watch_helper.rb:18 from $ONE_LOCATION/lib/ruby/acct/acctd.rb:35:in `require' from $ONE_LOCATION/lib/ruby/acct/acctd.rb:35 13. VNC configuration a. Embedded Sunstone

b. Alone ServiceManager Presiquisite: environment varibale SERVMAN_LOCATION #!/bin/bash echo "oneadmin:123" > $HOME/.one_auth_service_manager export ONE_AUTH=$HOME/.one/one_auth_service_manager export SERVMAN_LOCATION=/media/OpenNebula/service-manager-1.0/ export ONE_LOCATION=/media/OpenNebula/one-2.9.80/ export ONE_XMLRPC=http://localhost:2633/RPC2 #Optional RUBY environemnt #export PATH=/var/lib/gems/1.8/bin/:$PATH 14. <TDB>

Install Ozone
15. Prerequisite a. Ruby gems $ sudo gem install -V json data_mapper dm-sqlite-adapter dm-postgres-adapter dm-mysqladapter b. Apache2 sudo apt-get install apache2 c. Install Ozone http://opennebula.org/documentation:rel3.0:ozonescfg Enable these modules: $ sudo a2enmod rewrite $ sudo a2enmod proxy_http Edit /etc/apache2/apache2.conf and add the following at the end ServerName <hostname-of-ozones-front-end> Edit /etc/apache2/mods-available/proxy.conf and change Deny from all line to Allow from all Then edit /etc/apache2/sites-available/default. Change the following

<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None To this: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all #Restart apache $ sudo /etc/init.d/apache2 restart $ ozones-server start ozones-server listening on 127.0.0.1:6121 d. Add new Zone:

Name: name_of_Zone Endpoint: http://localhost:2633/RPC2 Oneadmin user: <username> password: <password> Sunstone end point: http://localhost:9689 e. <TDB> 16. <TDB>

Basic Configuration
17. Hypervisor 18. Host monitoring

a. Requirement: SSH access without password b. onehost sync Storage subsystem 19. a. Image repository b. Transfer Manager driver Networking 20. a. Create bridge virtbr0 connect to kvm b. Create dynamic virtual network base on virtbr0 21. Users and groups 22. Sunstone web interface a. 23. Accounting and statistics 24. OpenNebula zones 25. Hybrid Cloud 26. Public Cloud 27. <TDB>

Revision history
Rev # v1.0 v1.1 Date 10 Aug 2011 2 Oct 2011 First INIT Draft Add sunstone exp and ozone Description

Anda mungkin juga menyukai