{"id":1458,"date":"2023-05-21T09:18:50","date_gmt":"2023-05-21T14:18:50","guid":{"rendered":"http:\/\/zewwy.ca\/?p=1458"},"modified":"2023-05-21T12:21:28","modified_gmt":"2023-05-21T17:21:28","slug":"vcls-high-cpu-usage","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2023\/05\/21\/vcls-high-cpu-usage\/","title":{"rendered":"vCLS High CPU usage"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_Story\"><\/span>The Story<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>So I went to vMotion a VM to do some maintenance work on a host. Target machine well over 50% CPU usage.. what?! That can&#8217;t be right, it&#8217;s not running anything&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/NoDVLtG.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/NoDVLtG.png\" alt=\"\" width=\"294\" height=\"179\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i.imgur.com\/Ux1eDII.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/Ux1eDII.png\" alt=\"\" width=\"1016\" height=\"229\" \/><\/a><\/p>\n<p>I tried hard powering the VM off, but it just came right back up suckin CPU cycles with it&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/0JRc6OJ.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/0JRc6OJ.png\" alt=\"\" width=\"1338\" height=\"346\" \/><\/a><\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_Hunt\"><\/span>The Hunt<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>alright Google, what ya got for me&#8230; I <a href=\"https:\/\/www.mindwatering.com\/SupportRef.nsf\/webpg\/D0AC749CD076D6EA852586E30061D64C\">found this blog post by &#8220;Tripp W Black&#8221;<\/a> he mentions stopping a vCenter Service called &#8220;VMware ESX Agent Manager&#8221;, which he stops and then deletes the offending VMs, sounds like a plan. Let&#8217;s try it, so login into VAMI. (vcenter.consonto.com:5480)<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/OEmYcw7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/OEmYcw7.png\" alt=\"\" width=\"1489\" height=\"363\" \/><\/a><\/p>\n<p>K, let&#8217;s stop it&#8230; let me hard power off the VM now&#8230; ehh the VM is staying dead and host CPU:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/F73UmXk.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/F73UmXk.png\" alt=\"\" width=\"262\" height=\"359\" \/><\/a>K let&#8217;s go kill the other droid I have causing an issue&#8230;<\/p>\n<p>ok I got them all down now, but the odd part is I can&#8217;t delete them from disk much like Sir Black mentioned in their blog post. The options is greyed out for me, let&#8217;s start the service and see what happens&#8230;<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_Pain\"><\/span>The Pain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Well, that was extremely annoying, it seemed to have worked only for a moment and the CPU usages came right back, so I stopped the service again, but I can&#8217;t delete the VMs&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/XApdtO0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/XApdtO0.png\" alt=\"\" width=\"251\" height=\"252\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.reddit.com\/r\/vmware\/comments\/z4apcl\/vsphere_8_vcls_high_cpu_usage\/\">Similar issues in vSphere 8<\/a>, even suggestions to stay running in retreat mode, which I&#8217;ll get to in a moment. So, if you are unfamiliar, <a href=\"https:\/\/kb.vmware.com\/s\/article\/80472\">vCLS are small VMs that are distributed to ESXi hosts<\/a> to keep HA and DRS features operational, even if vCenter itself goes down. The thing is, I&#8217;m not even using HA or DRS, I created a cluster for merely EVC purposes, so I can move VMs between hosts live at my own leisure and without downtime. What&#8217;s annoying is I shouldn&#8217;t have to spend half my weekend day trying to solve a bug in my HomeLab due to poor design choices.<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_Constructive_Criticism\"><\/span>The Constructive Criticism<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VMware&#8230;. do not assume a cluster alone requires vCLS. Instead, enable vCLS only when HA or DRS features are enabled.<\/p>\n<p>Now that we have that very simple thing out of the way.<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_Fix\"><\/span>The Fix<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>So, as we mentioned we are able to stop the vCLS VMs when we stop the EAM service on vCenter, but that won&#8217;t be a solution if the server gets rebooted. I decided to Google to see how other people delete vCLS when it doesn&#8217;t seem possible.<\/p>\n<p>I found <a href=\"https:\/\/www.reddit.com\/r\/vmware\/comments\/op604t\/delete_orphaned_inaccessible_vcls_machine\/\">this reddit thread<\/a>, in which they discuss the same thing mentioned above <a href=\"https:\/\/kb.vmware.com\/s\/article\/91890\">&#8220;Retreat Mode&#8221;. However, after setting the required settings (which is apparently tattoo&#8217;d after done)<\/a>, I still couldn&#8217;t delete the VMs, even after restarting the vpxd service. Much like &#8216;bananna_roboto&#8217; I ended up deleting the vCLS VMs from the ESXi host UI directly, however when checking vCenter UI the still showed on all the hosts.<\/p>\n<p>After rebooting the vCenter server, all the vCLS VMs were gone, at first, I thought they&#8217;d come back, but since the retreat mode setting was applied it seems they do not get recreated. Hence, I will leave Retreat mode enabled as suggested in the reddit thread for now, since I am not using HA or DRS.<\/p>\n<p>So if you want to use EVC in a cluster, but not HA and DRS and would like to skim even more memory from your hosts, while saving on buggy CPU cycles, apparently &#8220;Retreat mode&#8221; is what you need.<\/p>\n<p>If you do need those features, and you are unable to delete the old vCLS VMs, and restarting the EAM service doesn&#8217;t resolve your issue (which it didn&#8217;t for me), you may have to open a support case with VMware.<\/p>\n<p>Any, I hope this helped someone. Cheers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Story So I went to vMotion a VM to do some maintenance work on a host. Target machine well over 50% CPU usage.. what?! That can&#8217;t be right, it&#8217;s not running anything&#8230; I tried hard powering the VM off, but it just came right back up suckin CPU cycles with it&#8230;. The Hunt alright &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2023\/05\/21\/vcls-high-cpu-usage\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;vCLS High CPU usage&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[14,440],"class_list":["post-1458","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","tag-esxi","tag-vcls"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1458","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=1458"}],"version-history":[{"count":2,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1458\/revisions"}],"predecessor-version":[{"id":1461,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1458\/revisions\/1461"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}