How to use MIF cloud service?
- OpenNebula Sunstone portal - supports Internet Explorer (>= 9), Firefox (> 3.5) and Chrome browsers. The upload of files and images works with Firefox (>= 4) and Chrome (>= 11).
Each MIF user is provided with such IT resources:
CPU: 1.0 MEMORY: 5GB VMS: 5 (VM quantity) Datastores/default: SIZE=20GB, IMAGES=10 Datastores/files: SIZE=1GB, IMAGES=10 Datastores/qcow2: SIZE=20GB, IMAGES=10 Datastores/lvm: SIZE=20GB, IMAGES=10 Networks/VNET1: LEASES=2 Networks/VNET2: LEASES=5
NOTE: If you don't use your VM please delete it.
There are two views: cloud and user:
- cloud – for simplified use when new VMs are created from existing templates.
- user – all features are available to the user, but may require some training (default).
Before creating virtual machines it is recommended to upload the public part of your SSH key. If you are using cloud view, you can do this in User Name → Settings → Config → Add SSH Key. If you are using user view, load the SSH public part into the Public SSH Key field:
Creating a virtual machine
To create a new VM you have to go to Virtual Resources → Virtual Machines → click green plus button. Then choose a template, fill in your VM name, change capacity (if needed) and click “Create” button.
Go to Virtual Resources → Virtual Machines to view the status of your virtual machine.
Windows 2012 R2 virtual disk is recommended for use with templates containing the prefix win.
States of VM
|By default a VM starts in the pending state, waiting for a resource to run on. It will stay in this state until the scheduler decides to deploy it, or the user deploys it using the onevm deploy command.
|The owner has held the VM and it will not be scheduled until it is released. It can be, however, deployed manually.
|The system is transferring the VM files (disk images and the recovery file) to the host in which the virtual machine will be running.
|OpenNebula is waiting for the hypervisor to create the VM.
|The VM is running (note that this stage includes the internal virtualized machine booting and shutting down phases). In this state, the virtualization driver will periodically monitor it.
|The VM is migrating from one resource to another. This can be a life migration or cold migration (the VM is saved and VM files are transferred to the new resource).
|A disk attach/detach, nic attach/detach operation is in process.
|A system snapshot is being taken.
|The system is saving the VM files after a migration, stop or suspend operation.
|In this phase the system cleans up the Host used to virtualize the VM, and additionally disk images to be saved are copied back to the system datastore.
|OpenNebula has sent the VM the shutdown ACPI signal, and is waiting for it to complete the shutdown process. If after a timeout period the VM does not disappear, OpenNebula will assume that the guest OS ignored the ACPI signal and the VM state will be changed to running, instead of done.
|The VM is stopped. VM state has been saved and it has been transferred back along with the disk images to the system datastore.
|Same as stopped, but the files are left in the host to later resume the VM there (i.e. there is no need to re-schedule the VM).
|Same as suspended, but no checkpoint file is generated. Note that the files are left in the host to later boot the VM there.
|The VM is shut down. The VM disks are transfered to the system datastore. The VM can be resumed later.
|The VM failed.
|The VM couldn’t be reached, it is in an unknown state.
|The VM is done. VMs in this state won’t be shown with onevm list but are kept in the database for accounting purposes. You can still get their information with the onevm show command.
VM states scheme is here.
|The VM is immediately destroyed no matter its state. Hosts are cleaned as needed but no images are moved to the repository, leaving then in error. Think of delete as kill -9 for a process, an so it should be only used when the VM is not responding to other actions..
|Gracefully shuts down a running VM, sending the ACPI signal. Once the VM is shutdown the host is cleaned, and persistent and deferred-snapshot disk 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 returned the VM to the RUNNING state.
|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.
|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.
|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.
|Same as undeploy but also the VM state is saved to later resume it.
|Resumes the execution of VMs in the stopped, suspended, undeployed and poweroff states.
|Gracefully reboots a running VM, sending the ACPI signal.
|Sets the VM to hold state. The scheduler will not deploy VMs in the hold state. Please note that VMs can be created directly on hold, using ‘onetemplate instantiate –hold’ or ‘onevm create –hold’.
|Releases a VM from hold state, setting it to pending.
|Starts an existing VM in a specific Host.
|Forces the hypervisor boot action of a VM stuck in UNKNOWN or BOOT state.
|If the VM is stuck in any other state (or the boot operation does not work), you can recover the VM by simulating the failure or success of the missing action.
|You can take a snapshot of a VM disk to preserve or backup its state at a given point of time.
|New disks can be hot-plugged to running VMs with the onevm disk-attach and disk-detach commands.
|You can also hotplug network interfaces to a RUNNING VM.
|If you have created a Virtual Machine and you need more resources, the following procedure is recommended: Perform any operation needed to prepare your Virtual Machine for shutting down, e.g. you may want to manually stop some services… 1. Poweroff the Virtual Machine. 2. Re-size the VM. 3. Resume the Virtual Machine using the new capacity.
|Most of the onevm commands accept the ‘–schedule’ option, allowing users to delay the actions until the given date and time.
In order to log in and use your VM it must be in running state. Click on your VM name and go to Info tab where you will find all the information needed to log in.
Attribute CONNECT_INFO1 for Linux users. Copy attribute value to command line to log in to your VM.
Attribute CONNECT_INFO2 for Windows users who use Putty terminal emulator. Copy attribute value to command line or enter corresponding values (For example: IP/Hostname = 22.214.171.124, port=14152) into Putty to log in to your VM.
To use the redirects of TCP connections, you must add TCP_PORT_FORWARDING attribute value with the desired connections (max 4). After changing the attribute value, remember to restart your VM (PowerOff → Boot) and to check which connections were created. For example, if you want to open connection 80, type 80 and restart the VM. You will see TCP_PORT_FORWARDING value change to PORT: 80, where PORT is an external IP (PUBLIC_IP value) connection through which you can connect to the VM of your desired connection (80).
On a VNET1 network, VM can receive not only the usual internal IPv4 address but also the globally accessible IPv6 address. More about connecting to IPv6.
Virtual machine network settings
From September 1, 2022, by default, the virtual machine can only be accessed from the MIF network and via VU VPN. To make your virtual machine accessible from external networks, you would need to change the firewall in the network settings in the template you will use to create the virtual machine.
1. If you are building a machine using templates. Choose the template you want, open it and make a copy by pressing the Clone button.
2. Open the copy of your template and press Update → Network → Advanced Options.
Increasing Resources of VM
To increase your VM resources, please write a request by email email@example.com.