You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// VIR_DOMAIN_BLOCKED the domain is blocked on resource
183
-
// VIR_DOMAIN_PAUSED the domain is paused by user
184
-
// VIR_DOMAIN_SHUTDOWN the domain is being shut down
185
-
// VIR_DOMAIN_SHUTOFF the domain is shut off
186
-
// VIR_DOMAIN_CRASHED the domain is crashed
187
-
// VIR_DOMAIN_PMSUSPENDED the domain is suspended by guest power management
188
-
// VIR_DOMAIN_LAST this enum value will increase over time as new events are added to the libvirt API. It reflects the last state supported by this version of the libvirt API.
178
+
// Possible States (ref: https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainState):
179
+
// - VIR_DOMAIN_NOSTATE no state
180
+
// - VIR_DOMAIN_RUNNING the domain is running
181
+
// - VIR_DOMAIN_BLOCKED the domain is blocked on resource
182
+
// - VIR_DOMAIN_PAUSED the domain is paused by user
183
+
// - VIR_DOMAIN_SHUTDOWN the domain is being shut down
184
+
// - VIR_DOMAIN_SHUTOFF the domain is shut off
185
+
// - VIR_DOMAIN_CRASHED the domain is crashed
186
+
// - VIR_DOMAIN_PMSUSPENDED the domain is suspended by guest power management
187
+
// - VIR_DOMAIN_LAST this enum value will increase over time as new events are added to the libvirt API. It reflects the last state supported by this version of the libvirt API.
189
188
190
189
switchlvs {
191
-
// DOMAIN_SHUTDOWN technically means the VM is still running, but in the
192
-
// process of being shutdown, so we return state.Running
0 commit comments