Virtual Machine States Reference

This page is a complete reference of all the VM states that will be useful for developers and administrators doing troubleshooting.

The simplified life cycle is explained in Virtual Machine Instances. That simplified guide uses a smaller number of state names. The names here are the ones used by onevm list, e.g., prolog, prolog_migrate, and prolog_resume are all presented as prol. This section is intended as a reference for end users. However, the information in the Virtual Machine Instances guide should be enough for everyday administration tasks.

List of States

In OpenNebula a Virtual Machine has two variables to define its state: STATE and LCM_STATE. The LCM_STATE is only relevant when the STATE is ACTIVE. Both states can be seen from the CLI (onevm show) and from Sunstone (Info panel for the VM).

#State#LCM StateShort State AliasMeaning
0INITinitInternal initialization state right after VM creation, this state is not visible for the end users. And hence this state cannot be used to hook any action.
1PENDINGpendBy 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.
2HOLDholdThe owner has held the VM and it will not be scheduled until it is released. It can be, however, deployed manually.
3ACTIVE0LCM_INITinitInternal initialization state, not visible for the end users.
1PROLOGprolThe system is transferring the VM files (disk images and the recovery file) to the Host in which the Virtual Machine will be running.
2BOOTbootOpenNebula is waiting for the hypervisor to create the VM.
3RUNNINGrunnThe 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.
4MIGRATEmigrThe VM is migrating from one Host to another. This is a hot migration.
5SAVE_STOPsaveThe system is saving the VM files after a stop operation.
6SAVE_SUSPENDsaveThe system is saving the VM files after a suspend operation.
7SAVE_MIGRATEsaveThe system is saving the VM files for a cold migration.
8PROLOG_MIGRATEmigrFile transfers during a cold migration.
9PROLOG_RESUMEprolFile transfers after a resume action (from stopped).
10EPILOG_STOPepilFile transfers from the Host to the system datastore.
11EPILOGepilThe system cleans up the Host used to virtualize the VM, and additionally disk images to be saved are copied back to their datastores.
12SHUTDOWNshutOpenNebula 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.
15CLEANUP_RESUBMITcleaClean up after a delete-recreate action.
16UNKNOWNunknThe VM couldn’t be monitored, it is in an unknown state.
17HOTPLUGhotpA disk attach/detach operation is in progress.
18SHUTDOWN_POWEROFFshutOpenNebula 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 poweroff.
19BOOT_UNKNOWNbootOpenNebula is waiting for the hypervisor to create the VM (from UNKNOWN).
20BOOT_POWEROFFbootOpenNebula is waiting for the hypervisor to create the VM (from POWEROFF).
21BOOT_SUSPENDEDbootOpenNebula is waiting for the hypervisor to create the VM (from SUSPENDED).
22BOOT_STOPPEDbootOpenNebula is waiting for the hypervisor to create the VM (from STOPPED).
23CLEANUP_DELETEcleaCleanup after a delete action.
24HOTPLUG_SNAPSHOTsnapA system snapshot action is in progress.
25HOTPLUG_NIChotpA NIC attach/detach operation is in progress.
26HOTPLUG_SAVEAShotpA disk-saveas operation is in progress.
27HOTPLUG_SAVEAS_POWEROFFhotpA disk-saveas operation (from POWEROFF) is in progress.
28HOTPLUG_SAVEAS_SUSPENDEDhotpA disk-saveas operation (from SUSPENDED) is in progress.
29SHUTDOWN_UNDEPLOYshutOpenNebula 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 undeployed.
30EPILOG_UNDEPLOYepilThe system cleans up the Host used to virtualize the VM, and VM files are transferred to the system datastore.
31PROLOG_UNDEPLOYprolFile transfers after a resume action (from undeployed).
32BOOT_UNDEPLOYbootOpenNebula is waiting for the hypervisor to create the VM (from UNDEPLOY).
33HOTPLUG_PROLOG_POWEROFFhotpFile transfers for a disk attach from poweroff.
34HOTPLUG_EPILOG_POWEROFFhotpFile transfers for a disk detach from poweroff.
35BOOT_MIGRATEbootOpenNebula is waiting for the hypervisor to create the VM (from a cold migration).
36BOOT_FAILUREfailFailure during a BOOT.
37BOOT_MIGRATE_FAILUREfailFailure during a BOOT_MIGRATE.
38PROLOG_MIGRATE_FAILUREfailFailure during a PROLOG_MIGRATE.
39PROLOG_FAILUREfailFailure during a PROLOG.
40EPILOG_FAILUREfailFailure during an EPILOG.
41EPILOG_STOP_FAILUREfailFailure during an EPILOG_STOP.
42EPILOG_UNDEPLOY_FAILUREfailFailure during an EPILOG_UNDEPLOY.
43PROLOG_MIGRATE_POWEROFFmigrFile transfers during a cold migration (from POWEROFF).
44PROLOG_MIGRATE_POWEROFF_FAILUREfailFailure during a PROLOG_MIGRATE_POWEROFF.
45PROLOG_MIGRATE_SUSPENDmigrFile transfers during a cold migration (from SUSPEND).
46PROLOG_MIGRATE_SUSPEND_FAILUREfailFailure during a PROLOG_MIGRATE_SUSPEND.
47BOOT_UNDEPLOY_FAILUREfailFailure during a BOOT_UNDEPLOY.
48BOOT_STOPPED_FAILUREfailFailure during a BOOT_STOPPED.
49PROLOG_RESUME_FAILUREfailFailure during a PROLOG_RESUME.
50PROLOG_UNDEPLOY_FAILUREfailFailure during a PROLOG_UNDEPLOY.
51DISK_SNAPSHOT_POWEROFFsnapA disk-snapshot-create action (from POWEROFF) is in progress.
52DISK_SNAPSHOT_REVERT_POWEROFFsnapA disk-snapshot-revert action (from POWEROFF) is in progress.
53DISK_SNAPSHOT_DELETE_POWEROFFsnapA disk-snapshot-delete action (from POWEROFF) is in progress.
54DISK_SNAPSHOT_SUSPENDEDsnapA disk-snapshot-create action (from SUSPENDED) is in progress.
55DISK_SNAPSHOT_REVERT_SUSPENDEDsnapA disk-snapshot-revert action (from SUSPENDED) is in progress.
56DISK_SNAPSHOT_DELETE_SUSPENDEDsnapA disk-snapshot-delete action (from SUSPENDED) is in progress.
57DISK_SNAPSHOTsnapA disk-snapshot-create action (from RUNNING) is in progress.
59DISK_SNAPSHOT_DELETEsnapA disk-snapshot-delete action (from RUNNING) is in progress.
60PROLOG_MIGRATE_UNKNOWNmigrFile transfers during a cold migration (from UNKNOWN).
61PROLOG_MIGRATE_UNKNOWN_FAILUREfailFailure during a PROLOG_MIGRATE_UNKNOWN.
62DISK_RESIZEdsrzDisk resize with the VM on RUNNING state.
63DISK_RESIZE_POWEROFFdsrzDisk resize with the VM on POWEROFF state.
64DISK_RESIZE_UNDEPLOYEDdsrzDisk resize with the VM UNDEPLOYED.
65HOTPLUG_NIC_POWEROFFhotpA NIC attach/detach operation (from POWEROFF) is in progress.
66HOTPLUG_RESIZEhotpHotplug resize VCPU and memory is in progress.
67HOTPLUG_SAVEAS_UNDEPLOYEDhotpA disk-saveas operation (from UNDEPLOYED) is in progress.
68HOTPLUG_SAVEAS_STOPPEDhotpA disk-saveas operation (from STOPPED) is in progress.
69BACKUPbackA backup operation is in progress (VM running).
70BACKUP_POWEROFFbackA backup operation is in progress (VM poweroff).
71RESTORErestA VM disks are restored from backup image.
4STOPPEDstopThe VM is stopped. VM state has been saved and it has been transferred back along with the disk images to the system datastore.
5SUSPENDEDsuspSame 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).
6DONEdoneThe 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.
8POWEROFFpoffSame as suspended, but no checkpoint file is generated. Note that the files are left in the Host to later boot the VM there. When the VM guest is shut down, OpenNebula will put the VM in this state.
9UNDEPLOYEDundeThe VM is shut down. Similar to STOPPED, but no checkpoint file is generated. The VM disks are transferred to the system datastore. The VM can be resumed later.
10CLONINGclonThe VM is waiting for one or more disk images to finish the initial copy to the repository (image state still in lock).
11CLONING_FAILUREfailFailure during a CLONING. One or more of the images went into the ERROR state.

Diagram

You can click on the following image to zoom into it.

Virtual Machine States