{"id":175,"date":"2022-02-08T12:23:40","date_gmt":"2022-02-08T06:23:40","guid":{"rendered":"https:\/\/bytegeeks.net\/blog\/?p=175"},"modified":"2022-02-08T12:23:44","modified_gmt":"2022-02-08T06:23:44","slug":"cannot-connect-to-virtual-machine-configuration-storage","status":"publish","type":"post","link":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/","title":{"rendered":"Cannot connect to virtual machine configuration storage"},"content":{"rendered":"\n<p>Well I was testing out ISCSI storage system and used the storage for a VM. Forgot that I had the VM using the ISCSI storage before removing the ISCSI configuration and voila the VM went into critical state and cannot connect to it. The Hyper-V Manager console doesn&#8217;t allow to delete VM&#8217;s from &#8220;Off-Critical&#8221; state. We could fix this simply by mapping the configuration file and VHD settings by mounting the ISCSI storage, but the problem here is that the storage no longer exists. We have to force delete the VM from the server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Force-Delete-Hyper-V-VM\">Force Delete Hyper-V VM <\/h4>\n\n\n\n<p>To force delete a Hyper-V VM open a PowerShell with administrator privilege and run the following commands.<\/p>\n\n\n\n<div class=\"hcb_wrap code.hljs { color: #e3b718; }\"><pre class=\"prism off-numbers lang-plain\" data-show-lang=\"0\"><code>Get-VM<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap hljs {color:red;}\"><pre class=\"prism off-numbers lang-plain\" data-show-lang=\"0\"><code>Remove-VM -name MyVmName -force<\/code><\/pre><\/div>\n\n\n\n<p>That&#8217;s it, the VM should now be removed from the console. Following is an example of the PowerShell window after completing the steps above. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V-1024x512.png\" alt=\"Powershell command to force remove Hyper-V VM\" class=\"wp-image-181\" srcset=\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V-1024x512.png 1024w, https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V-300x150.png 300w, https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V-768x384.png 768w, https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Well I was testing out ISCSI storage system and used the storage for a VM. Forgot that I had the VM using the ISCSI storage before removing the ISCSI configuration and voila the VM went into critical state and cannot connect to it. The Hyper-V Manager console doesn&#8217;t allow to delete VM&#8217;s from &#8220;Off-Critical&#8221; state. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":181,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshoot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot connect to virtual machine configuration storage - ByteGeeks<\/title>\n<meta name=\"description\" content=\"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot connect to virtual machine configuration storage - ByteGeeks\" \/>\n<meta property=\"og:description\" content=\"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/\" \/>\n<meta property=\"og:site_name\" content=\"ByteGeeks\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-08T06:23:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-08T06:23:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Redwan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Redwan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/\",\"url\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/\",\"name\":\"Cannot connect to virtual machine configuration storage - ByteGeeks\",\"isPartOf\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png\",\"datePublished\":\"2022-02-08T06:23:40+00:00\",\"dateModified\":\"2022-02-08T06:23:44+00:00\",\"author\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792\"},\"description\":\"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.\",\"breadcrumb\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage\",\"url\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png\",\"contentUrl\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bytegeeks.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cannot connect to virtual machine configuration storage\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#website\",\"url\":\"https:\/\/bytegeeks.net\/blog\/\",\"name\":\"ByteGeeks\",\"description\":\"Your one-stop shop for everything IT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bytegeeks.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792\",\"name\":\"Redwan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g\",\"caption\":\"Redwan\"},\"description\":\"Just your average IT guy talking about IT stuff.\",\"sameAs\":[\"https:\/\/bytegeeks.net\/blog\"],\"url\":\"https:\/\/bytegeeks.net\/blog\/author\/redmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot connect to virtual machine configuration storage - ByteGeeks","description":"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/","og_locale":"en_US","og_type":"article","og_title":"Cannot connect to virtual machine configuration storage - ByteGeeks","og_description":"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.","og_url":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/","og_site_name":"ByteGeeks","article_published_time":"2022-02-08T06:23:40+00:00","article_modified_time":"2022-02-08T06:23:44+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png","type":"image\/png"}],"author":"Redwan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Redwan","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/","url":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/","name":"Cannot connect to virtual machine configuration storage - ByteGeeks","isPartOf":{"@id":"https:\/\/bytegeeks.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage"},"image":{"@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage"},"thumbnailUrl":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png","datePublished":"2022-02-08T06:23:40+00:00","dateModified":"2022-02-08T06:23:44+00:00","author":{"@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792"},"description":"Fixing Hyper-V error status - cannot connect to virtual machine configuration storage, off critical.","breadcrumb":{"@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#primaryimage","url":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png","contentUrl":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/bytegeeks.net\/blog\/cannot-connect-to-virtual-machine-configuration-storage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bytegeeks.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Cannot connect to virtual machine configuration storage"}]},{"@type":"WebSite","@id":"https:\/\/bytegeeks.net\/blog\/#website","url":"https:\/\/bytegeeks.net\/blog\/","name":"ByteGeeks","description":"Your one-stop shop for everything IT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bytegeeks.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792","name":"Redwan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g","caption":"Redwan"},"description":"Just your average IT guy talking about IT stuff.","sameAs":["https:\/\/bytegeeks.net\/blog"],"url":"https:\/\/bytegeeks.net\/blog\/author\/redmin\/"}]}},"jetpack_featured_media_url":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2022\/02\/Force-Remove-VM-from-Hyper-V.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":7,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/183"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/media\/181"}],"wp:attachment":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}