{"id":6863,"date":"2013-05-29T15:00:12","date_gmt":"2013-05-29T14:00:12","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=6863"},"modified":"2023-07-16T11:22:41","modified_gmt":"2023-07-16T09:22:41","slug":"patch-vmware-esxi-5-x-via-ssh","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/patch-vmware-esxi-5-x-via-ssh\/","title":{"rendered":"Patch VMware ESXi 5.x via SSH"},"content":{"rendered":"<p><img decoding=\"async\" style=\"background-image: none; margin: 10px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi01\" alt=\"patchesxi01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi01.jpg\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>When the <strong>VMware vCenter is not available<\/strong> in the virtual network environment, ESXi hosts can be patched using the <strong>ESXi Shell via SSH<\/strong>.<\/p>\n<p>You can perform the patching also using vMA but if you put the host in Maintenance Mode, the appliance itself is not available if not installed in a different host. This procedure works also for the <strong>free version<\/strong> of vSphere ESXi 5.x.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h2>Download patches<\/h2>\n<p>Download the patches from VMware <a href=\"http:\/\/www.vmware.com\/patchmgr\/download.portal\" target=\"_blank\" rel=\"noopener\">website<\/a> to your local computer.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi02\" alt=\"patchesxi02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi02.jpg\" width=\"600\" height=\"323\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Copy patches in the storage<\/h4>\n<p>When download is complete, open <strong>vSphere client <\/strong>and access the host to be patched.<\/p>\n<p>In <strong>Summary<\/strong> panel identify the <strong>Resources<\/strong> section, right click the storage name then select option <strong>Browse Datastore<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi03\" alt=\"patchesxi03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi03.jpg\" width=\"600\" height=\"291\" border=\"0\" \/><\/p>\n<p>Create a folder named <span style=\"color: #ff0000;\"><strong>patches<\/strong><\/span>, for instance, and <strong>copy the patches<\/strong> in the host storage.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi04\" alt=\"patchesxi04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi04.jpg\" width=\"600\" height=\"385\" border=\"0\" \/><\/p>\n<p>Once all files have been copied, in the right side of the window you can see the <strong>list of patches<\/strong> ready to be applied to the host.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi05\" alt=\"patchesxi05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi05.jpg\" width=\"600\" height=\"385\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Access the system<\/h2>\n<p>Shutdown all the running virtual machines and put host in <strong>maintenance mode<\/strong>. Note the version number.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi06\" alt=\"patchesxi06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi06.jpg\" width=\"571\" height=\"366\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Enable services<\/h4>\n<p>From <strong>Configuration<\/strong> panel, select <strong>Software &gt; Security Profile<\/strong> then click <strong>Properties<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi07\" alt=\"patchesxi07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi07.jpg\" width=\"600\" height=\"329\" border=\"0\" \/><\/p>\n<p>Select <strong>ESXi Shell<\/strong> and click <strong>Options<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi08\" alt=\"patchesxi08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi08.jpg\" width=\"600\" height=\"632\" border=\"0\" \/><\/p>\n<p>Select <strong>Start and stop manually<\/strong> then click <strong>Start<\/strong>. Click <strong>OK<\/strong> to continue.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi09\" alt=\"patchesxi09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi09.jpg\" width=\"505\" height=\"339\" border=\"0\" \/><\/p>\n<p>Repeat same steps for <strong>SSH<\/strong> service. When finished you should see the enabled services with Daemon <strong>Running<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;\" title=\"patchesxi10\" alt=\"patchesxi10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi10.jpg\" width=\"600\" height=\"223\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Apply patches<\/h2>\n<p>Using a tool like <a href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/latest\/x86\/putty.exe\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a>, connect the host through SSH.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi11\" alt=\"patchesxi11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi11.jpg\" width=\"466\" height=\"448\" border=\"0\" \/><\/p>\n<p>Insert the credential to <strong>login the system<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi12\" alt=\"patchesxi12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi12.jpg\" width=\"600\" height=\"180\" border=\"0\" \/><\/p>\n<p>To apply the patches, we use the <strong>esxcli command<\/strong> with the <strong>syntax<\/strong>:<\/p>\n<blockquote><p>esxcli software vib update --depot \/vmfs\/volumes\/<span style=\"color: #ff0000;\">&lt;StorageName&gt;<\/span>\/<span style=\"color: #ff0000;\">&lt;folderName&gt;<\/span>\/<span style=\"color: #ff0000;\">file.zip <\/span><\/p><\/blockquote>\n<p>To identify the Storage name, have a look at <strong>Summary &gt; Resources<\/strong> section.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi13\" alt=\"patchesxi13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi13.jpg\" width=\"600\" height=\"295\" border=\"0\" \/><\/p>\n<p>In this example we are going to apply the <strong>following patches<\/strong>:<\/p>\n<ul>\n<li>update-from-esxi5.0-5.0_update02.zip<\/li>\n<li>ESXi500-201303001.zip<\/li>\n<li>ESXi500-201305001.zip<\/li>\n<\/ul>\n<p>From the <strong>host console<\/strong>, type the command and apply the patches. It takes a while so be patience.<\/p>\n<p><span style=\"color: #0000a0;\"># esxcli software vib update --depot \/vmfs\/volumes\/local-vmfs1\/patches\/update-from-esxi5.0-5.0_update02.zip<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi14\" alt=\"patchesxi14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi14.jpg\" width=\"600\" height=\"242\" border=\"0\" \/><\/p>\n<p><span style=\"color: #0000a0;\"># esxcli software vib update --depot \/vmfs\/volumes\/local-vmfs1\/patches\/ESXi500-201303001.zip<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi15\" alt=\"patchesxi15\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi15.jpg\" width=\"600\" height=\"242\" border=\"0\" \/><\/p>\n<p><span style=\"color: #0000a0;\"># esxcli software vib update --depot \/vmfs\/volumes\/local-vmfs1\/patches\/ESXi500-201305001.zip<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi16\" alt=\"patchesxi16\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi16.jpg\" width=\"600\" height=\"239\" border=\"0\" \/><\/p>\n<p>When all patches have been applied successfully, type the command <strong>reboot<\/strong> then press <strong>ENTER<\/strong> to reboot the host.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi17\" alt=\"patchesxi17\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi17.jpg\" width=\"600\" height=\"33\" border=\"0\" \/><\/p>\n<p>When host has been rebooted, <strong>Exit Maintenance Mode<\/strong> and <strong>restart the virtual machines<\/strong>. Note the version number.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;\" title=\"patchesxi18\" alt=\"patchesxi18\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/05\/patchesxi18.jpg\" width=\"600\" height=\"327\" border=\"0\" \/><\/p>\n<p>Because <strong>ESXi Shell and SSH services<\/strong>\u00a0were started manually, after rebooting the host they are no longer enabled therefore it is not necessary to stop them.<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When the VMware vCenter is not available in the virtual network environment, ESXi hosts can be patched using the ESXi Shell via SSH. You can perform the patching also using vMA but if you put the host in Maintenance Mode, the appliance itself is not available if not installed in a different host. This procedure works also for the free version of vSphere ESXi 5.x.<\/p>\n","protected":false},"author":3,"featured_media":6845,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[903,2701],"tags":[580,626,570],"class_list":["post-6863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware-en","category-vsphere-en","tag-esxi-en","tag-patch-en","tag-ssh-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/6863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=6863"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/6863\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/6845"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=6863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=6863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=6863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}