{"id":1114,"date":"2021-04-16T13:49:08","date_gmt":"2021-04-16T18:49:08","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1114"},"modified":"2021-04-16T13:49:08","modified_gmt":"2021-04-16T18:49:08","slug":"esxi-vm-disconnected-after-applying-patch","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2021\/04\/16\/esxi-vm-disconnected-after-applying-patch\/","title":{"rendered":"ESXi VM disconnected after applying patch"},"content":{"rendered":"<p>Keep this short.<\/p>\n<p>I had to update a ESXi host locally as it&#8217;s mgmt connection would drop with all VMs having to go down on it. As it&#8217;s a single host with virtualized network components.<\/p>\n<p>On one of the VMs this was an opportunity to update it since it needed to be shutdown temperately anyway. I took a snapshot of the VM, updated it, validated updates were fine, removed the snapshot. Then proceeded to update the host:<\/p>\n<pre>vim-cmd hostsvc\/Maintenance_mode_enter<\/pre>\n<pre>esxcli software vib update -d \"\/path\/to\/file.zip\"<\/pre>\n<pre>vim-cmd hostsvc\/Maintenance_mode_exit\r\nreboot<\/pre>\n<p>Nothing special here. However once the host came back up and I was able to access it via vCenter, one of the VM&#8217;s was shown as &#8220;disconnected&#8221; I&#8217;ve seen this with ESXi hosts before, but not particularly with a VM.<\/p>\n<p>Oddly enough there&#8217;s only one datastore on the host and all other VMs are fine, and checking the datastore, all files are where they should be.<\/p>\n<p>I figured maybe remove the VM from inventory and just re-add it via the vmx file, however the option was greyed out.<\/p>\n<p>It turned out there was apparently still a snapshot left on the VM (noticed via delta files existing within the VMs folder path).<\/p>\n<p>Removing all the snapshots resolved the issue. Turns out the VM was also running, but didn&#8217;t show the green play icon, thus I wasn&#8217;t aware of it&#8217;s powered on state. Which also explains the greyed out context menu for removing from inventory.<\/p>\n<p>Hope this helps someone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keep this short. I had to update a ESXi host locally as it&#8217;s mgmt connection would drop with all VMs having to go down on it. As it&#8217;s a single host with virtualized network components. On one of the VMs this was an opportunity to update it since it needed to be shutdown temperately anyway. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2021\/04\/16\/esxi-vm-disconnected-after-applying-patch\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ESXi VM disconnected after applying patch&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5,8],"tags":[346,14,345],"class_list":["post-1114","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","tag-disconnected","tag-esxi","tag-vm"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1114"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1114\/revisions"}],"predecessor-version":[{"id":1115,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1114\/revisions\/1115"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}