Difference between revisions of "How To Manage OpenNebula Virtual Machines"
Client Admin (talk | contribs) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:OpenNebula]] | |||
[[Category:How To]] | |||
[[Category:CloudInfrastructure]] | |||
==Look at running Virtual Machines== | ==Look at running Virtual Machines== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to “Instances” in the left menu and click on “VMs” in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#:<br> | #:<br> | ||
Line 15: | Line 16: | ||
==Open VNC console== | ==Open VNC console== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to “Instances” in the left menu and click on “VMs” in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#:<br> | #:<br> | ||
Line 26: | Line 27: | ||
==Instantiate a Virtual Machine== | ==Instantiate a Virtual Machine== | ||
#Go to | #Go to “Templates” in the left menu and click on “Vms” in the drop down menu. | ||
#:[[File:Templates_menu.png|thumb|none|upright=0.5]] | #:[[File:Templates_menu.png|thumb|none|upright=0.5]] | ||
#[[OpenNebula_Templates | Create or modify a template]]. This template will then be used to instantiate a virtual machine on which the operative system will be install. | #[[OpenNebula_Templates | Create or modify a template]]. This template will then be used to instantiate a virtual machine on which the operative system will be install. | ||
Line 34: | Line 35: | ||
==Terminate Virtual Machine Instances== | ==Terminate Virtual Machine Instances== | ||
You can terminate a running instance with the following operations: | You can terminate a running instance with the following operations: | ||
*''' | *'''terminate''': Gracefully shuts down a running VM, sending the ACPI signal. Once the VM is shut down, the host is cleaned, and persistent disk(s) will be moved to the associated datastore. If after a given time the VM is still running (e.g. guest ignoring ACPI signals), OpenNebula will return the VM to the RUNNING state. | ||
*''' | *'''terminate --hard''': Same as above but the VM is immediately destroyed. Use this action instead of terminate when the VM doesn’t have ACPI support. | ||
All the above operations free the resources used by the VM. | All the above operations free the resources used by the VM. | ||
=== | ===Terminate=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to “Instances” in the left menu and click on “VMs” in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#:<br> | #:<br> | ||
#Click on the virtual machine, press the red button with the bin and click " | #Click on the virtual machine, press the red button with the bin and click "Terminate". | ||
#:[[File:vm_shutdown.png|thumb|none|upright=1.5]] | #:[[File:vm_shutdown.png|thumb|none|upright=1.5]] | ||
#:If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click " | #:If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click "Terminate". | ||
#:[[File:vm_multishutdown.png|thumb|none|upright=2.5]] | #:[[File:vm_multishutdown.png|thumb|none|upright=2.5]] | ||
=== | ===Terminate Hard=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to “Instances” in the left menu and click on “VMs” in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#:<br> | #:<br> | ||
#Click on the virtual machine, press the red button with the bin and click " | #Click on the virtual machine, press the red button with the bin and click "Terminate hard". | ||
#:[[File:vm_shutdown_hard.png|thumb|none|upright=1.5]] | #:[[File:vm_shutdown_hard.png|thumb|none|upright=1.5]] | ||
#:If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click " | #:If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click "Terminate Hard". | ||
#:[[File:vm_multishutdown_hard.png|thumb|none|upright=2.5]] | #:[[File:vm_multishutdown_hard.png|thumb|none|upright=2.5]] | ||
==Pause Virtual Machine Instances== | ==Pause Virtual Machine Instances== | ||
Line 87: | Line 76: | ||
===Suspend=== | ===Suspend=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the hold button and click "Suspend". | #Click on the virtual machine, press the hold button and click "Suspend". | ||
Line 95: | Line 84: | ||
===Poweroff=== | ===Poweroff=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the hold button and click "Poweroff". | #Click on the virtual machine, press the hold button and click "Poweroff". | ||
Line 103: | Line 92: | ||
===Poweroff Hard=== | ===Poweroff Hard=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the hold button and click "Poweroff Hard". | #Click on the virtual machine, press the hold button and click "Poweroff Hard". | ||
Line 111: | Line 100: | ||
===Undeploy=== | ===Undeploy=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the stop button and click "Undeploy". | #Click on the virtual machine, press the stop button and click "Undeploy". | ||
Line 119: | Line 108: | ||
===Undeploy Hard=== | ===Undeploy Hard=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the stop button and click "Undeploy Hard". | #Click on the virtual machine, press the stop button and click "Undeploy Hard". | ||
Line 127: | Line 116: | ||
===Stop=== | ===Stop=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the stop button and click "Stop". | #Click on the virtual machine, press the stop button and click "Stop". | ||
Line 135: | Line 124: | ||
===Resume=== | ===Resume=== | ||
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | #[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]]. | ||
#Go to | #Go to "Instances" in the left menu and click "VMs" in the drop down menu. | ||
#:[[File:VM_menu.png|thumb|none|upright=0.5]] | #:[[File:VM_menu.png|thumb|none|upright=0.5]] | ||
#Click on the virtual machine, press the play button to resume. | #Click on the virtual machine, press the play button to resume. |
Latest revision as of 22:13, 20 March 2017
Look at running Virtual Machines
- Log into OpenNebula Sunstone.
- Go to “Instances” in the left menu and click on “VMs” in the drop down menu.
- A list of all instantiated virtual machines will apear. Some basic information is showed.
- Click on a virtual machine to see all its configuration.
Open VNC console
- Log into OpenNebula Sunstone.
- Go to “Instances” in the left menu and click on “VMs” in the drop down menu.
- Select the virtual machine you want to access and click on the "VNC" button.
Instantiate a Virtual Machine
- Go to “Templates” in the left menu and click on “Vms” in the drop down menu.
- Create or modify a template. This template will then be used to instantiate a virtual machine on which the operative system will be install.
- Click on the template just created and press "Instantiate" button to power on the virtual machine.
Terminate Virtual Machine Instances
You can terminate a running instance with the following operations:
- terminate: Gracefully shuts down a running VM, sending the ACPI signal. Once the VM is shut down, the host is cleaned, and persistent disk(s) will be moved to the associated datastore. If after a given time the VM is still running (e.g. guest ignoring ACPI signals), OpenNebula will return the VM to the RUNNING state.
- terminate --hard: Same as above but the VM is immediately destroyed. Use this action instead of terminate when the VM doesn’t have ACPI support.
All the above operations free the resources used by the VM.
Terminate
- Log into OpenNebula Sunstone.
- Go to “Instances” in the left menu and click on “VMs” in the drop down menu.
- Click on the virtual machine, press the red button with the bin and click "Terminate".
- If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click "Terminate".
Terminate Hard
- Log into OpenNebula Sunstone.
- Go to “Instances” in the left menu and click on “VMs” in the drop down menu.
- Click on the virtual machine, press the red button with the bin and click "Terminate hard".
- If more than one virtual machine need to be shut down, select each of them, press the red button with the bin and click "Terminate Hard".
Pause Virtual Machine Instances
Be aware that VMs, which are in some of the states below, may still occupy resources even though they are not actually running. Those resources will be accounted for and, based on your subscription plan, can be charged to you.
There are two different ways to temporarily stop the execution of a VM: short and long term pauses. A short term pause keeps all the VM resources allocated to the hosts so its resume its operation in the same hosts quickly. Use the following actions:
- suspend: the VM state is saved in the running Host. When a suspended VM is resumed, it is immediately deployed in the same Host by restoring its saved state.
- poweroff: Gracefully powers off a running VM by sending the ACPI signal. It is similar to suspend but without saving the VM state. When the VM is resumed it will boot immediately in the same Host.
- poweroff --hard: Same as above but the VM is immediately powered off. Use this action when the VM doesn’t have ACPI support.
You can also plan a long term pause. The Host resources used by the VM are freed and the Host is cleaned. Any needed disk is saved in the system datastore. The following actions are useful if you want to preserve network and storage allocations (e.g. IPs, persistent disk images):
- undeploy: Gracefully shuts down a running VM, sending the ACPI signal. The Virtual Machine disks are transferred back to the system datastore. When an undeployed VM is resumed, it is be moved to the pending state, and the scheduler will choose where to re-deploy it.
- undeploy --hard: Same as above but the running VM is immediately destroyed.
- stop: Same as undeploy but also the VM state is saved to later resume it.
When the VM is successfully paused you can resume its execution with:
- resume: Resumes the execution of VMs in the stopped, suspended, undeployed and poweroff states.
Suspend
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the hold button and click "Suspend".
- If more than one virtual machine need to be suspended, select each of them, press the hold button and click "Suspend".
Poweroff
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the hold button and click "Poweroff".
- If more than one virtual machine need to be powered off, select each of them, press the hold button and click "Poweroff".
Poweroff Hard
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the hold button and click "Poweroff Hard".
- If more than one virtual machine need to be powered off hard, select each of them, press the hold button and click "Poweroff Hard".
Undeploy
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the stop button and click "Undeploy".
- If more than one virtual machine need to be undeployed, select each of them, press the stop button and click "Undeploy".
Undeploy Hard
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the stop button and click "Undeploy Hard".
- If more than one virtual machine need to be undeployed hard, select each of them, press the stop button and click "Undeploy Hard".
Stop
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the stop button and click "Stop".
- If more than one virtual machine need to be stopped, select each of them, press the stop button and click "Stop".
Resume
- Log into OpenNebula Sunstone.
- Go to "Instances" in the left menu and click "VMs" in the drop down menu.
- Click on the virtual machine, press the play button to resume.
- If more than one virtual machine need to be resumed, select each of them, press the play button to resume.