{"id":5811,"date":"2024-10-30T15:38:16","date_gmt":"2024-10-30T23:38:16","guid":{"rendered":"https:\/\/jetstreamsoft.com\/portal\/?post_type=ht_kb&#038;p=5811"},"modified":"2024-11-21T14:26:21","modified_gmt":"2024-11-21T22:26:21","slug":"vm-protection-fails-with-the-error-invalidpowerstate","status":"publish","type":"ht_kb","link":"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/vm-protection-fails-with-the-error-invalidpowerstate\/","title":{"rendered":"VM Protection Error: &#8220;InvalidPowerState&#8221;"},"content":{"rendered":"\n<p class=\"is-style-info wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">This article applies to all JSDR software versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p class=\"\">An &#8220;<em>InvalidPowerState<\/em>&#8221; error may be encountered when applying or removing VM protection:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Applying Protection<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">When a VM is added for protection, it may fail to complete the task and report \u201c<em>Failed to apply the Storage Policy change<\/em>.\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"808\" height=\"116\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/start-protection-error.png\" alt=\"\" class=\"wp-image-5812\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/start-protection-error.png 808w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/start-protection-error-300x43.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/start-protection-error-768x110.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/start-protection-error-50x7.png 50w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><figcaption class=\"wp-element-caption\">Error applying protection.<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Task details display the following text:<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-left\"><code>The attempted operation cannot be performed in the current state (Powered on).com.vmware.vim25.InvalidPowerState@481cf866 [existingState=com.vmware.vim25.VirtualMachinePowerState@7eef5694 [val=poweredOn,name=poweredOn,ordinal=1],requestedState=com.vmware.vim25.VirtualMachinePowerState@5a1a508e [val=poweredOff,name=poweredOff,ordinal=0],dynamicProperty=,dynamicType=,faultCause=,faultMessage=,detail=,cause=,detailMessage=,stackTrace={},suppressedExceptions=java.util.Collections$UnmodifiableRandomAccessList@12bad197{}]<\/code><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Removing Protection<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">When protection is removed from the VM, it may fail to complete the task and report: <strong>\u201c<\/strong><em>Failed to detach storage policy from Protected VM<\/em>.\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"808\" height=\"121\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/stop-protection-error.png\" alt=\"\" class=\"wp-image-5813\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/stop-protection-error.png 808w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/stop-protection-error-300x45.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/stop-protection-error-768x115.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/stop-protection-error-50x7.png 50w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><figcaption class=\"wp-element-caption\">Error removing protection.<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Failover of domains containing VMs with this problem may report the error \u201c<em>VM has non Supported Disk controller<\/em>.\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"535\" height=\"157\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/failover-domain-error.png\" alt=\"\" class=\"wp-image-5814\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/failover-domain-error.png 535w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/failover-domain-error-300x88.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/failover-domain-error-50x15.png 50w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/><figcaption class=\"wp-element-caption\">Failover domain error message.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cause<\/h2>\n\n\n\n<p class=\"\">The protection error generally occurs for VMs with disks that are configured with their Virtual Device Node set to \u201cIDE.\u201d However, if protection is initiated <em>while the VM is powered <strong>off<\/strong><\/em>,<strong> <\/strong>the task will succeed. The problem can also occur when powered on VMs with IDE configured disks are unprotected.<br><\/p>\n\n\n\n<p class=\"is-style-alert wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">If a protected VM is powered on and its disk&#8217;s Virtual Device Node is changed from SCSI to IDE, it will report a replication error. Likewise, adding a new IDE disk to a powered on, protected VM will fail.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"159\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error-1024x159.png\" alt=\"\" class=\"wp-image-5815\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error-1024x159.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error-300x46.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error-768x119.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error-50x8.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/protected-vm-error.png 1143w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">VM with reported error.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Solution\">Solution<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\">Go to the <strong>VM &gt; Edit settings <\/strong>screen.<br><br><\/li>\n\n\n\n<li class=\"\">Select the hard disk and check if any of its Virtual Device Nodes are set to <strong><em>IDE<\/em><\/strong>.<br><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"284\" class=\"wp-image-5817\" style=\"width: 600px;\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/virtual-device-node-1.png\" alt=\"\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/virtual-device-node-1.png 1000w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/virtual-device-node-1-300x142.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/virtual-device-node-1-768x363.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/10\/virtual-device-node-1-50x24.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><br><br><\/li>\n\n\n\n<li class=\"\">If any disks are found to be configured with IDE:\n<ul class=\"wp-block-list\">\n<li class=\"\">Power off the VM.<\/li>\n\n\n\n<li class=\"\">Return to the <strong>VM &gt; Edit <\/strong>settings screen.<\/li>\n\n\n\n<li class=\"\">Select the hard disk and change its Virtual Device Node to SCSI.\n<ul class=\"wp-block-list\">\n<li class=\"\">Before committing the change, verify SCSI mode is compatible with the VM.<\/li>\n\n\n\n<li class=\"\">Apply this change to all applicable hard disks that are set to IDE.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li class=\"\">Start Protection.<br><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"is-style-alert wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><strong>Important: <\/strong>Be certain of the VM\u2019s compatiblity with SCSI Virtual Device Node. If unsure, thoroughly test it using a cloned VM before applying the change to a production VM.<br><br>If you have any questions, contact JetStream support for guidance.<\/p>\n\n\n\n<p class=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem An &#8220;InvalidPowerState&#8221; error may be encountered when applying or removing VM protection: Applying Protection The attempted operation cannot be performed in the current state (Powered on).com.vmware.vim25.InvalidPowerState@481cf866 [existingState=com.vmware.vim25.VirtualMachinePowerState@7eef5694 [val=poweredOn,name=poweredOn,ordinal=1],requestedState=com.vmware.vim25.VirtualMachinePowerState@5a1a508e [val=poweredOff,name=poweredOff,ordinal=0],dynamicProperty=,dynamicType=,faultCause=,faultMessage=,detail=,cause=,detailMessage=,stackTrace={},suppressedExceptions=java.util.Collections$UnmodifiableRandomAccessList@12bad197{}] Removing Protection Cause The protection error generally occurs for VMs with disks that are configured with their Virtual Device Node set to \u201cIDE.\u201d However, if [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"ht-kb-category":[92],"ht-kb-tag":[214],"class_list":["post-5811","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting","ht_kb_tag-vmprotection"],"_links":{"self":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/5811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/comments?post=5811"}],"version-history":[{"count":17,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/5811\/revisions"}],"predecessor-version":[{"id":6048,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/5811\/revisions\/6048"}],"wp:attachment":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/media?parent=5811"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-category?post=5811"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-tag?post=5811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}