Request #1006
Missing Basic VM managing commands for Sun-stone
Status: | Closed | Start date: | 11/24/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Hector Sanjuan | % Done: | 0% | |
Category: | Sunstone | |||
Target version: | - | |||
Pull request: |
Description
Hi,
I used before proxmox for managing VMs. And recently switched to OpenNebula. I have some comments on current Sun-stone interface.
The Sun-stone VM managing tools too week and miss basic commands:
1. Need to add possibility to send reset and shutdown signals to VMs.
2. Machine in shutdown state should have a possibility to restart. Machine in this state has all necessary compounds to restart: all discs and domain xml. It is logically have sense you turn of machine and turn on later. It can save time on a deployment delay. The manual running through command line for this machine is working well. I think to fix it required to change couple files only with checks on state for machine. I found one file but there are somewhere else similar check.
3. If I shutdown VM inside VM - for example through VNC on linux host execute "shutdown -h now" machine should have possibility to restart. In the current version (3.1) shutdown machine recognized as Running. I have to delete it and create again now. The manual running through command line for this machine is working well.
4. Possibility to hot plug cdrom images, it could have a special benefits when used shared file system. Libvirt allows to do it. I think this part will require to change some checks in openNebula. It is not allows to create devices with no image attached, The qemu is allows to do so.
Control elements for these features could be located on VM-information tab.
Your thoughts?
History
#1 Updated by Hector Sanjuan over 9 years ago
- Category set to Sunstone
- Assignee set to Hector Sanjuan
Hello,
The Sun-stone VM managing tools too week and miss basic commands:
1. Need to add possibility to send reset and shutdown signals to VMs.
The possibility to send shutdown is supported. There is a button to send perform the Shutdown action on the selected VMs. It's one of those on the top here in this screenshot:
http://opennebula.org/_detail/documentation:rel3.0:sunstone:vms_view.png
The reboot action is not supported by OpenNebula, but it has been scheduled for the next release:
http://dev.opennebula.org/issues/132
Sunstone will be updated accordingly when it is supported.
2. Machine in shutdown state should have a possibility to restart. Machine in this state has all necessary compounds to restart: all discs and domain xml. It is logically have sense you turn of machine and turn on later. It can save time on a deployment delay. The manual running through command line for this machine is working well. I think to fix it required to change couple files only with checks on state for machine. I found one file but there are somewhere else similar check.
This is not Sunstone related. OpenNebula considers the shutdown state as a final one in the VM life-cycle. The reboot action which is planned (http://dev.opennebula.org/issues/132) will allow to relauch these VMs.
3. If I shutdown VM inside VM - for example through VNC on linux host execute "shutdown -h now" machine should have possibility to restart. In the current version (3.1) shutdown machine recognized as Running. I have to delete it and create again now. The manual running through command line for this machine is working well.
OpenNebula assumes full management of the VM life cycle. You should always use OpenNebula commands to shutdown VMs and other actions (such migrate). Otherwise these changes are most likely invisible or unexpected to ONE and, thus, unable to respond correctly. In your case, I think ONE will keep the VM as 'running' until the VM polling action triggers. Still, this is not related to Sunstone.
4. Possibility to hot plug cdrom images, it could have a special benefits when used shared file system. Libvirt allows to do it. I think this part will require to change some checks in openNebula. It is not allows to create devices with no image attached, The qemu is allows to do so.
Hotplugging images into VMs is certainly not supported in current version of OpenNebula. It you think this is an important feature please open a specific issue explaining a bit more in depth what your proposal is. As the rest, Sunstone support will come along when these features are implemented in OpenNebula.
Thank you for feedback!
#2 Updated by Max Mikheev over 9 years ago
Thanks
#3 Updated by Ruben S. Montero over 9 years ago
- Status changed from New to Closed
Some comments on the VM management
- A machine can be suspended for later use with no delay using the suspend/resume actions. Note in that case the resources of the VM are not freed (memory allocated in the host, IPs...). You can also restart a VM without delay if reaches the unknown state (e.g. hypervisor failure)
- if you shutdown a VM from inside. It is still running for the hypervisor it may reboot or stay in a halt state but from the point of view of the hypervisor the machine is running. You can reboot (for example to install a Windows machine) from the VM using VNC. That is fully supported and functional
Closing this one