User Tools

Site Tools


project:opennebula

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
project:opennebula [2012/06/12 20:40]
SLUUG Administration
project:opennebula [2012/06/12 20:50] (current)
SLUUG Administration
Line 209: Line 209:
 /​srv/​storage/​@/​backups ​ 192.168.115.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) 192.168.118.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) /​srv/​storage/​@/​backups ​ 192.168.115.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) 192.168.118.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check)
 /​var/​lib/​one ​   192.168.118.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) 192.168.115.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) /​var/​lib/​one ​   192.168.118.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check) 192.168.115.0/​27(crossmnt,​rw,​no_root_squash,​sync,​no_subtree_check)
 +</​file>​
 +
 +/etc/fstab (client side)
 +<​file>​
 +192.168.115.5:/​var/​lib/​one /​var/​lib/​one ​   nfs     ​rw,​hard,​intr
 </​file>​ </​file>​
  
Line 291: Line 296:
 **vSwitch doesn'​t like kernel 3.1 - we'll likely need to use ebtables which will conflict with xenpri0** **vSwitch doesn'​t like kernel 3.1 - we'll likely need to use ebtables which will conflict with xenpri0**
  
 +=== 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.\\ 
 +
 +<​code>#​ vim /etc/hosts
 +
 +127.0.0.1 xenhost
 +
 +:wq
 +</​code>​
 +
 +
 +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.
 +
 +<​code>#​ su - oneadmin
 +~$ onehost create xenhost -i im_xen -v vmm_xen -n ovswitch
 +</​code>​
 +
 +Once complete you should now see your host on the onehost list, you can also use onehost show <​hostid>​ to show the details of your host:\\
 +
 +<​code>​
 +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"​
 +
 +</​code>​
  
 ====Work In Progress - 21DEC11==== ====Work In Progress - 21DEC11====
  
 [[:​home|Home]] | [[:​projects|Projects]] | [[:​hardwarerefresh_dec11|SLUUG Hardware Refresh]] [[:​home|Home]] | [[:​projects|Projects]] | [[:​hardwarerefresh_dec11|SLUUG Hardware Refresh]]
project/opennebula.1339551652.txt.gz ยท Last modified: 2012/06/12 20:40 by SLUUG Administration