WorkingInT2BCloud: Difference between revisions

From T2B Wiki
Jump to navigation Jump to search
mNo edit summary
Line 35: Line 35:
=== Creation of VMs ===
=== Creation of VMs ===
To create a VM, you have to follow the following steps :
To create a VM, you have to follow the following steps :
- creation of a disk
#creation of a disk
- creation of a template using the disk created previously
#creation of a template using the disk created previously
- instantiation of template to create the VMs
#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 ====
 
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.
{{TracNotice|{{PAGENAME}}}}
[[File:Example.jpg]]

Revision as of 09:11, 28 August 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

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:Example.jpg