OpenNebula: Difference between revisions

From GigaTux Wiki
Jump to navigation Jump to search
Created page with "=Pre-Installation Tasks= # groupadd --gid 2001 oneadmin # useradd --uid 201 -g oneadmin -d /var/lib/one -m oneadmin # elinks http://downloads.opennebula.org/ =Install= # dpkg ..."
 
No edit summary
Line 30: Line 30:
# chmod 600 ~/.one/one_auth
# chmod 600 ~/.one/one_auth
# Change :host: to 0.0.0.0 and :port: to 80 in /etc/one/sunstone-server.conf
# Change :host: to 0.0.0.0 and :port: to 80 in /etc/one/sunstone-server.conf
# echo "Host *" >> ~/.ssh/config
# echo "    StrictHostKeyChecking no" >> ~/.ssh/config


==Hypervisors==
==Hypervisors==
Line 48: Line 50:
       default    = "vmm_exec/vmm_exec_xen.conf",
       default    = "vmm_exec/vmm_exec_xen.conf",
       type      = "xen" ]
       type      = "xen" ]
==Hosts==
* onehost create cloud1 --im im_xen --vm vmm_xen --net dummy
* onehost create cloud2 --im im_xen --vm vmm_xen --net dummy

Revision as of 15:58, 20 March 2013

Pre-Installation Tasks

  1. groupadd --gid 2001 oneadmin
  2. useradd --uid 201 -g oneadmin -d /var/lib/one -m oneadmin
  3. elinks http://downloads.opennebula.org/

Install

  1. dpkg --install *.deb
  2. apt-get -f install (to get dependencies)
  3. /usr/share/opennebula/install_gems
  4. cd /usr/share/opennebula
  5. ./install_novnc.sh

Configure

Host configuration

  1. apt-get install ruby
  2. Copy key to /root/.ssh/authorized_keys
  3. groupadd and useradd commands as above
  4. Add to /etc/sudoers:
 oneadmin  ALL=(ALL) NOPASSWD: /usr/sbin/xm *
 oneadmin  ALL=(ALL) NOPASSWD: /usr/sbin/xentop *

Front end

  1. mkdir ~/.one
  2. echo "oneadmin:password" > ~/.one/one_auth
  3. chmod 600 ~/.one/one_auth
  4. Change :host: to 0.0.0.0 and :port: to 80 in /etc/one/sunstone-server.conf
  5. echo "Host *" >> ~/.ssh/config
  6. echo " StrictHostKeyChecking no" >> ~/.ssh/config

Hypervisors

  1. Go to /var/lib/one/remotes/vmm/xen/xenrc and uncomment the line:
 export XM_CREDITS="sudo $XM_PATH sched-credit"
  1. Change /etc/one/one.conf to uncomment the following (commenting the KVM lines):
 IM_MAD = [
     name       = "im_xen",
     executable = "one_im_ssh",
     arguments  = "xen" ]
 
 VM_MAD = [
     name       = "vmm_xen",
     executable = "one_vmm_exec",
     arguments  = "xen",
     default    = "vmm_exec/vmm_exec_xen.conf",
     type       = "xen" ]

Hosts

  • onehost create cloud1 --im im_xen --vm vmm_xen --net dummy
  • onehost create cloud2 --im im_xen --vm vmm_xen --net dummy