{"id":54,"date":"2008-08-03T18:35:43","date_gmt":"2008-08-03T08:35:43","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=54"},"modified":"2008-08-03T18:35:43","modified_gmt":"2008-08-03T08:35:43","slug":"patching-esx-3-hosts-from-the-service-console","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/patching-esx-3-hosts-from-the-service-console\/","title":{"rendered":"Patching ESX 3 hosts from the Service Console"},"content":{"rendered":"<p>Sometimes you won&#8217;t have access to VMware&#8217;s Update Manager. But that doesn&#8217;t mean you shouldn&#8217;t be patching your hosts. Start by visiting the VMware <a href=\"http:\/\/support.vmware.com\/selfsupport\/download\/\" target=\"_blank\">website<\/a>\u00a0for the latest contents file and the latest binary patches. I don&#8217;t recommend you rely on the patches you downloaded 3 months ago, as VMware will invariably have superceded a number of patches since then. I also don&#8217;t recommend attempting to mount a DVD-R of burnt patches on a CD-ROM drive, as this will also fail. You then need to scp or otherwise copy everything to somewhere like \/ESXpatch. I don&#8217;t know whether it is still the case, but running things like patches and installation routines from VMFS-2 used to be a problem. Whether that&#8217;s really an issue with VMFS-3, I&#8217;m not so sure. You will also need the latest copy of &#8220;ESX-3.5.0-contents.zip&#8221;. This can be found <a href=\"http:\/\/download3.vmware.com\/software\/esx\/ESX-3.5.0-contents.zip\" target=\"_blank\">here<\/a>.<\/p>\n<p>Unzip ESX-3.5.0-contents.zip in the root of \/ESXpatch. This will give you contents.xml and contents.xml.sig in the root of the directory. The xml file points to the current patch bundles and their default location. Kind of like what I used to do with my esxupdate script, but way more Web 2.0, because it&#8217;s all xml and stuff.<\/p>\n<p>You then need to unzip all of the patch bundles that you&#8217;ve downloaded from the VMware ESX patch repository. If you used the datastore browser to upload the zip files to a VMFS volume, do the following:<\/p>\n<p><strong>mv \/vmfs\/volumes\/datastorename\/patches\/ \/ESXpatch\/<\/strong><\/p>\n<p>Of course, if you had a working copy of <a href=\"http:\/\/www.veeam.com\/\" target=\"_blank\">Veeam<\/a>&#8216;s <a href=\"http:\/\/www.veeam.com\/vmware-esx-fastscp.html\" target=\"_blank\">FastSCP<\/a> on your Vista laptop, you wouldn&#8217;t need to do that step. But what do I know?<\/p>\n<p><strong>cd \/ESXpatch<\/strong><\/p>\n<p><strong>unzip &#8216;*.zip&#8217;<\/strong><\/p>\n<p>This will extract all of the zip files ready to use.<\/p>\n<p>Delete the zip files<\/p>\n<p><strong>rm -f *.zip<\/strong><\/p>\n<p>I recommend you enter maintenance mode before you do decide to do your patching, as this method won&#8217;t automatically evacuate guests on the host to other nodes in the DRS cluster. To enter maintenance mode from the Service console, run<\/p>\n<p><strong>vimsh -n -e \/hostsvc\/maintenance_mode_enter<\/strong><\/p>\n<p>Obviously you&#8217;ll need to exit Maintenance Mode once the patches and reboots are all done.<\/p>\n<p>run esxupdate update from \/ESXpatch and away you go &#8230;<\/p>\n<p>I also recommend reading the <a href=\"http:\/\/www.vmware.com\/pdf\/vi3_35\/esx_3\/r35\/vi3_35_25_esxupdate.pdf\" target=\"_blank\">ESX Server 3 Patch Management Guide<\/a>. This is a very useful document for understanding just what is going on when you&#8217;ve patching your environment and gives some useful suggestions for ways of doing things. Most of the above could be put in a simple shell script, with the only manual process being downloading the patch files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you won&#8217;t have access to VMware&#8217;s Update Manager. But that doesn&#8217;t mean you shouldn&#8217;t be patching your hosts. Start by visiting the VMware website\u00a0for the latest contents file and the latest binary patches. I don&#8217;t recommend you rely on the patches you downloaded 3 months ago, as VMware will invariably have superceded a number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[9,50,786],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-esx","tag-patch","tag-vmware"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":2,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}