WorkingInT2BCloud: Difference between revisions

From T2B Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:
#You want an empty drive
#You want an empty drive
#Disk size in MB
#Disk size in MB
#Don't forget to enable the advanced options
#Enable the advanced option to go to the next screen.
[[File:Advanced_disk_opennebula.jpg]]
Set tthe device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).
Don't forget to change the disk name accordingly in the hardware template in the SCDB. For example :
<pre>
'harddisks' = dict('vda', create('hardware/harddisk/sas_generic', 'capacity', 60*GB));
</pre>

Revision as of 15:11, 1 September 2015

Golden rules

  • Before starting, please read the doc
  • Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !
  • Admin tasks on OpenNebula : most of them requires that you become oneadmin ("su - oneadmin").

Admin tasks

How to stop OpenNebula ?

Connect as root to the front-end machine, and type the following commands :

su - oneadmin
sunstone-server stop
oneflow-server stop
econe-server stop
one stop

How to start OpenNebula ?

Connect as root to the front-end machine, and type the following commands :

su - oneadmin
one start
sunstone-server start

Using Sunstone front-end

Connecting to the Sunstone front-end

The Sunstone front-end is installed on dom02. Open a "socks" port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :

http://192.168.10.35:9869/

You will be asked a login and a password.

Creation of VMs

To create a VM, you have to follow the following steps :

  1. creation of a disk
  2. creation of a template using the disk created previously
  3. instantiation of the template to create the VM

In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.

Creation of the disk

  1. Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).
  2. “Persistent” means the content of the disk image is preserved when the machine is shut down.
  3. You want an empty drive
  4. Disk size in MB
  5. Enable the advanced option to go to the next screen.

Set tthe device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor). Don't forget to change the disk name accordingly in the hardware template in the SCDB. For example :

'harddisks' = dict('vda', create('hardware/harddisk/sas_generic', 'capacity', 60*GB));