Date:
Aim:
Onehost Commands:
Create:
Creates a new host.To use these hosts in OpenNebula you need to register them so
that they are monitored and are well-known to the scheduler.
Syntax:
$ onehost create [hostname] – i kvm –v kvm
Example:
$ onehost create localhost
List:
Lists Hosts in the pool.
Syntax:
$ onehost list
Delete:
Deletes the given Host.
Syntax:
$ onehost delete [hostname/ID]
Example:
$ onehost delete localhost
Onevnet Commands:
A host is connected to one or more networks that are available to the virtual machines
through the corresponding bridges. OpenNebula allows the creation of Virtual Networks by
mapping them on top of the physical ones.
Create:
Syntax:
List:
Syntax:
$ onevnet list
Delete:
Syntax:
$ onevnet delete id
Onetemplate Commands:
Create:
Creates a new vm template.Before creating a template an image has to be created.
Syntax:
$onetemplate create --name “template_name” --cpu 1 --vcpu1 --memory 512 --arch
x86 .64 --disk “image name”--nic “private”--vnc --ssh
Example:
$ oneimage create --name “centos 6.5” -- path/var/tmp/c_x86_64.qcow2--driver qcow2 --
datastore default
$ onetemplate create –name “centos 6.5” --cpu2 --vcpu1 --memory 512 --arch x86.64 --disk
“centos 6.5_x86_64” --nic “private” --vnc –ssh
List:
Lists templates in the pool.
Syntax:
$ onetemplate list
Delete:
Deletes the given template.
Syntax:
$ onetemplate delete id
Example:
$ onetemplate delete 6
One Virtual Machine:
In OpenNebula the Virtual Machines are defined with VM Templates. The VM
Template Pool allows OpenNebula administrators and users to register Virtual Machine
definitions in the system, to be instantiated later as Virtual Machine instances.
Instantiating Templates
This command accepts a Template ID or name, and creates a VM instance from the
given template.
Syntax:
$onetemplate instantiate “template_id” --name” virtual machine name”
Example:
$onetemplate instantiate “centos-6.5” --name”virtualMachine”
Syntax:
$onevm show virtual_machine_id
Result:
Thus the open nebula commands were studied.