==== OpenNebula Install Notes ==== === work in progress - 04JUN12 === * Debian wheezy, install xen hypervisor, openvswitch # aptitude install xen-hypervisor # aptitude install openvswitch-brcompat openvswitch-datapath-source * Manually build/install openvswitch-datapath for your kernel # m-a a-i openvswitch-datapath Various dependencies ( openvswitch-brcompat openvswitch-common{a} openvswitch-switch{a} uuid-runtime{a} ) * Reboot == OpenNebula == * This will install all of the opennebula packages on one server # aptitude install opennebula-{node,sunstone,tools} opennebula * Once installed edit /etc/one/oned.conf\\ You will need to comment out the KVM drivers, and uncomment the Xen drivers: 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" ] * Edit /etc/sudoers.d/opennebula-node to insure oneadmin can run ovs-vsctl\\ # visudo -f /etc/sudoers.d/opennebula-node add line\\ %cloud ALL=(ALL) NOPASSWD: /usr/bin/ovs-vsctl * * You will need to su to oneadmin and edit the ssh authorized_keys\\ # su - oneadmin # cat .ssh/id_rsa.pub > authorized_keys # ssh localhost * Make sure you can login with no password. Once logged in do the following\\ ~$ onevm list ID USER GROUP NAME STAT CPU MEM HOSTNAME TIME ~$ exit If you do not get the above blank list, then verify /var/log/one/oned.log and see where the issue is. == Add a new host == It is critical that your opennebula front end can resolve the name of your hypervisors. In this scenario we will use the /etc/hosts file to do this for us.\\ # vim /etc/hosts 127.0.0.1 xenhost :wq For clustering or high availability you can assign host to closers. For our purposes we will over look this for now.\\ Switch over to the oneadmin user and add your hosts.\\ To add a host you use the onehost create command. This command needs to know the information manager (im) driver, the virtual machine monitor (vmm) driver and the network driver that the host is using. In our case we will be adding a xen hypervisor, that is set up to use open vSwitch for its network driver. # su - oneadmin ~$ onehost create xenhost -i im_xen -v vmm_xen -n ovswitch Once complete you should now see your host on the onehost list, you can also use onehost show to show the details of your host:\\ oneadmin@xenhost:~$ onehost list ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM AMEM STAT 1 xenhost - 0 0 0 100 0K 0K 0K on oneadmin@xenhost:~$ onehost show xenhost HOST 1 INFORMATION ID : 1 NAME : xenhost CLUSTER : - STATE : MONITORED IM_MAD : im_xen VM_MAD : vmm_xen VN_MAD : ovswitch LAST MONITORING TIME : 1339032919 HOST SHARES MAX MEM : 16678912 USED MEM (REAL) : 13844480 USED MEM (ALLOCATED) : 0 MAX CPU : 800 USED CPU (REAL) : 107 USED CPU (ALLOCATED) : 0 MAX DISK : 0 USED DISK (REAL) : 0 USED DISK (ALLOCATED) : 0 RUNNING VMS : 0 MONITORING INFORMATION ARCH="x86_64" CPUSPEED="3100" FREECPU="693" FREEMEMORY="2834432" HOSTNAME="xenhost" HYPERVISOR="xen" MODELNAME="AMD FX(tm)-8120 Eight-Core Processor " NETRX="0" NETTX="0" TOTALCPU="800" TOTALMEMORY="16678912" USEDCPU="107" USEDMEMORY="13844480" == Storage == We will mount the RAID array to datastores and use this for all storage. http://opennebula.org/documentation:rel3.4:lvm