{"id":7,"date":"2007-03-21T09:20:56","date_gmt":"2007-03-21T08:20:56","guid":{"rendered":"http:\/\/www.amikkelsen.com\/?p=7"},"modified":"2007-03-21T10:17:11","modified_gmt":"2007-03-21T09:17:11","slug":"the-easiest-way-to-update-an-esx-vi-3x-host","status":"publish","type":"post","link":"http:\/\/www.amikkelsen.com\/?p=7","title":{"rendered":"The easiest way to update an ESX VI 3.x host!"},"content":{"rendered":"<p>Together with the danish VMware user forum, we have created at script that helps with the doll task of applying updates to an ESX VI 3.x host.<\/p>\n<ol>\n<li>Download each update from the VMware web site (<a href=\"http:\/\/www.vmware.com\/download\/vi\/\">http:\/\/www.vmware.com\/download\/vi\/<\/a>)<\/li>\n<li>Unpack each TGZ file with <a href=\"http:\/\/www.winzip.com\">WinZip<\/a> or <a href=\"http:\/\/www.7-zip.org\/\">7-Zip<\/a><\/li>\n<li>Copy all extracted updates\u00c2\u00a0to a folder reachable by the ESX VI 3.x host.<\/li>\n<li>Download and extract <a href=\"http:\/\/www.amikkelsen.com\/?page_id=4\">esx-update.zip<\/a> to\u00c2\u00a0<br \/>\n<font face=\"Courier New\">\/tmp\/<\/font><\/li>\n<li>Make the file executable<br \/>\n<span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\">chmod 777 \/tmp\/esx-update.sh<\/span><\/li>\n<li>Open the extracted file with vi (<span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\">vi \/tmp\/esx-update.sh<\/span>) and edit\u00c2\u00a0the following variables, so they reflect the server environment\u00c2\u00a0they will be running on.\n<ol>\n<li>update_dir<\/li>\n<li>update_file<\/li>\n<li>log_file<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>To run the script it is a good idear to put the host in maintenance mode.<\/p>\n<ol>\n<li>Set the host in maintenance mode<br \/>\n<span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\" lang=\"DA\">vimsh<br \/>\n<\/span><span style=\"font-size: 11pt; color: black; line-height: 115%; font-family: 'Courier New'\" lang=\"DA\">hostsvc\/maintenance_mode_enter<\/span><\/li>\n<li>Now you can start the script\u00c2\u00a0<br \/>\n<span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\">.\/tmp\/esx-update.sh<\/span><\/li>\n<li><span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\"><\/span>Exit the host from maintenance mode<br \/>\n<span style=\"font-size: 11pt; line-height: 115%; font-family: 'Courier New'\">vimsh<br \/>\n<span style=\"color: black\">hostsvc\/maintenance_mode_exit<\/span><\/span><\/li>\n<\/ol>\n<p>Download the file <a href=\"http:\/\/www.amikkelsen.com\/?page_id=4\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Together with the danish VMware user forum, we have created at script that helps with the doll task of applying updates to an ESX VI 3.x host. Download each update from the VMware web site (http:\/\/www.vmware.com\/download\/vi\/) Unpack each TGZ file with WinZip or 7-Zip Copy all extracted updates\u00c2\u00a0to a folder reachable by the ESX VI\u2026 <span class=\"read-more\"><a href=\"http:\/\/www.amikkelsen.com\/?p=7\">Read More &raquo;<\/a><\/span><\/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":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-scripting"],"_links":{"self":[{"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}