WorkingInT2BCloud: Difference between revisions

From T2B Wiki
Jump to navigation Jump to search
No edit summary
Line 41: Line 41:


==== Creation of the disk ====
==== Creation of the disk ====
Since the disk must be empty, you must choose a datablock. Choosing persistence is also important since you want to keep the content of the drive even if the VM is deleted.
[[File:Create_disk_opennebula.jpg]]
[[File:Example.jpg]]
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).
#“Persistent” means the content of the disk image is preserved when the machine is shut down.
#You want an empty drive
#Disk size in MB
#Don't forget to enable the advanced options

Revision as of 15:02, 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. Don't forget to enable the advanced options