VM_BAD_POWER_STATE
-
Hi dan,
Here is the message from ui
{"code":"VM_BAD_POWER_STATE","params":["OpaqueRef:5b175c21-7cd3-49f7-9291-d4e13ee6ed6f","halted","suspended"],"call":{"method":"VM.create","params":[{"actions_after_crash":"restart","actions_after_reboot":"restart","actions_after_shutdown":"destroy","affinity":"OpaqueRef:NULL","HVM_boot_params":{"firmware":"uefi","order":"cdn"},"HVM_boot_policy":"BIOS order","is_a_template":false,"memory_dynamic_max":25769803776,"memory_dynamic_min":25769803776,"memory_static_max":25769803776,"memory_static_min":25769803776,"other_config":{"mac_seed":"3c7339e7-ee0e-e574-f694-7dea837f45fc","vgpu_pci":"","base_template_name":"Other install media","install-methods":"cdrom"},"PCI_bus":"","platform":{"timeoffset":"0","device-model":"qemu-upstream-uefi","nx":"true","acpi":"1","apic":"true","pae":"true","hpet":"true","viridian":"true"},"PV_args":"","PV_bootloader_args":"","PV_bootloader":"","PV_kernel":"","PV_legacy_args":"","PV_ramdisk":"","recommendations":"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"32\" /><restriction property=\"number-of-vbds\" max=\"255\" /><restriction property=\"number-of-vifs\" max=\"7\" /><restriction field=\"has-vendor-device\" value=\"false\" /></restrictions>","user_version":1,"VCPUs_at_startup":4,"VCPUs_max":4,"VCPUs_params":{"weight":"256"},"appliance":"OpaqueRef:NULL","blocked_operations":{"start":"Importing…","start_on":"Importing…"},"domain_type":"hvm","generation_id":"6391528241554766200:5274075896544882950","ha_restart_priority":"","hardware_platform_version":0,"has_vendor_device":false,"is_vmss_snapshot":false,"name_description":"from esxi","name_label":"[Importing…] GBC-P-VT-ORA-24","NVRAM":{"EFI-variables":"VkFSUwEAAAAUAAAAAAAAAFkMAAAAAAAABgAAAAAAAABNAFQAQwAEAAAAAAAAAAgAAAARQHDrAhTTEY53AKDJaXI7BwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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zMDIxOApQq11gRuAAQ6u2PdgQ3YsjAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAQgBvAG8AdAAwADAAMAA0AHYAAAAAAAAAAQAAAGIAcgBlAGQAaABhAHQAAAAEASoAAQAAAAAIAAAAAAAAAMASAAAAAABSCMwW9HrbSoBJNAoqcSetAgIEBDQAXABFAEYASQBcAHIAZQBkAGgAYQB0AFwAcwBoAGkAbQB4ADYANAAuAGUAZgBpAAAAf/8EAGHf5IvKk9IRqg0A4JgDK4wHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAABIAEQARABQAFgAAAAAAAAAAgEMANBBAwoAAAAAAQEGAAADAQQYAJCiPD2lueMRt124rG99ZeYBAAADBAEqAAEAAAAACAAAAAAAAADAEgAAAAAAUgjMFvR620qASTQKKnEnrQICf/8EAOHpt/rdOStPhAjiDpBstt4DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABCAG8AbwB0ADAAMAAwADUAagAAAAAAAAABAAAALgBVAEUARgBJACAATQBpAHMAYwAgAEQAZQB2AGkAYwBlACAAMgAAAAIBDADQQQMKAAAAAAEBBgAAAwEEGACQojw9pbnjEbdduKxvfWXmAQBAA3//BABOrAiBEZ9ZTYUO4hpSLFmyYd/ki8qT0hGqDQDgmAMrjAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},"order":0,"reference_label":"","shutdown_delay":0,"snapshot_schedule":"OpaqueRef:NULL","start_delay":0,"suspend_SR":"OpaqueRef:NULL","tags":[],"version":0,"xenstore_data":{"vm-data/mmio-hole-size":"268435456","vm-data":""},"last_boot_CPU_flags":{"vendor":"GenuineIntel","features":"1fcbfbff-f7fa3223-2c100800-00000121-0000000f-219c0fab-0240070c-00000000-00001000-bc000400-00000000-00000000-00000000-00000001-00000000-00000000-0c08e163-00000000-00000000-00000000-00000000-00000000"},"last_booted_record":"","power_state":"Suspended","suspend_VDI":"OpaqueRef:0526f889-ce21-4d01-a562-aeb3012726f4"}]},"message":"VM_BAD_POWER_STATE(OpaqueRef:5b175c21-7cd3-49f7-9291-d4e13ee6ed6f, halted, suspended)","name":"XapiError","stack":"XapiError: VM_BAD_POWER_STATE(OpaqueRef:5b175c21-7cd3-49f7-9291-d4e13ee6ed6f, halted, suspended)\n at Function.wrap (file:///opt/xen-orchestra/packages/xen-api/_XapiError.mjs:16:12)\n at file:///opt/xen-orchestra/packages/xen-api/transports/json-rpc.mjs:38:21"}
-
@jmm said in VM_BAD_POWER_STATE:
If I do a full backup "with ram" restore goes to then end but vm stay in halted state, is it a normal behavior ?
Yes. The VM will be in a suspended state unless you select the option to start the VM after restoration.
Here is the message from ui
Are you finding this under
Settings > Logs
or somewhere else?FWIW, I can't replicate on this side. Does this happen with all VMs or only those migrated from ESXi?
Dan
-
@Danp
Hi dan,
Yes i find it in settings / logs
this vm was imported from vmware with orchestra's tool, all went fine.
I've done three tests : all 3 backups ended succesfully
1-delta backup, snapshot with ram
Restore don't even start, error message
2-full backup,snapshot without ram
Restore ok but at the end vm is in halted state, i think the vm should be in suspended state
I can start vm, not sure where the ram is gone
3-full backup, offline snapshot
Restore, boot okI didn't test with another, i'll do this test asap
thanks
-
@olivierlambert
Hi olivier,
Sorry for this question, but where can I find the XO version ?
I'm testing orchestra from source, installed from fresh ubuntu 20 and jarl01 install and updater script.Thanks
-
"About" in the menu
-
@jmm said in VM_BAD_POWER_STATE:
2-full backup,snapshot without ram
Restore ok but at the end vm is in halted state, i think the vm should be in suspended state
I can start vm, not sure where the ram is goneWas the "without ram" above a typo? If not, then halted is the correct state since the memory wasn't captured during the backup.
-
@jmm Did you try a power state reset?:
xe vm-reset-powerstate uuid=<uuid_of_vm> force=true -
@Danp
Yes it was a mistake, I did a full backup, snapshot with ram
thank's -
@olivierlambert Sorry for the late answer.
I think version is 5.94 (from source)
In about menu I only have "Xen Orchestra,commit 68219" -
@jmm Can you check to see if the health check is turned off? In your backup config, it'll be in the schedule just under the "Replication Retention" section. I've found that you can leave it on, but it will "fail" (despite the recovery working fine, unchecking it will get rid of the error on subsequent backups).