{"id":169,"date":"2015-12-01T19:22:00","date_gmt":"2015-12-01T19:22:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=169"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"altering-the-vcenter-vm-without-a-management-cluster","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=169","title":{"rendered":"Altering the vCenter VM without a Management Cluster"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">What do you do, when you have a virtualised vCenter VM, but you want to adjust something about it without locking yourself out of vCenter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my case I had a vCenter server that I wanted to adjust the memory on. To do this without locking yourself out, you should follow these steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. First determine which ESXi host the vCenter VM is running on lets say its: esx7.domain.com<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Connect using SSH to the esx7 console. (you may need to enable this in advance).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Run the command below to find the &#8220;vcenter1&#8221; VM&#8217;s identifier.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vim-cmd vmsvc\/getallvms | grep vcenter\n80 vcenter &#91;datastore1] vcenter\/vcenter.vmx windows7Server64Guest vmx-08 vCenter Server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here you can see it is ID: 80.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Shutdown the VM. At which point you&#8217;ll lose access to vCenter. Check it has stopped with this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vim-cmd vmsvc\/power.getstate 80<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">5. At the command line edit the vmx file to adjust the memory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vi \/vmfs\/datastore1\/vcenter\/vcenter.vmx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">(Change the memory directive line and save the file)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Now run the command to start the VM again.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vim-cmd vmsvc\/power.on 80<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">7. Wait for the vCenter VM to start and log back into vCenter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you do, when you have a virtualised vCenter VM, but you want to adjust something about it without locking yourself out of vCenter. In my case I had a vCenter server that I wanted to adjust the memory on. To do this without locking yourself out, you should follow these steps: 1. First &#8230; <a title=\"Altering the vCenter VM without a Management Cluster\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=169\" aria-label=\"Read more about Altering the vCenter VM without a Management Cluster\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":138,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":1414,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/1414"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}