{"id":13502,"date":"2015-08-05T10:00:00","date_gmt":"2015-08-05T08:00:00","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=13502"},"modified":"2023-07-16T11:25:00","modified_gmt":"2023-07-16T09:25:00","slug":"vmware-esxi-5-5-upgrade-to-6-0-with-cli","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/vmware-esxi-5-5-upgrade-to-6-0-with-cli\/","title":{"rendered":"VMware ESXi 5.5 upgrade to 6.0 with CLI"},"content":{"rendered":"<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli01.jpg\" alt=\"esxi55upg60cli01\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>When the vSphere Update Manager is not available, the ESXi 5.5 upgrade to 6.0 can be performed using the CLI commands.<\/p>\n<p>If you work with a single host or VUM is not available to perform the \"easy way\" upgrade, <strong>esxcli commands<\/strong> allow the administrators to upgrade the hypervisor directly from the command line using the <strong>ESXi Offline Bundle<\/strong>\u00a0image.<\/p>\n<p><!--more--><\/p>\n<p>From VMware website <a href=\"https:\/\/my.vmware.com\/web\/vmware\/downloads\" target=\"_blank\" rel=\"noopener\">download<\/a> the <strong>ESXi 6.0.0b Offline Bundle<\/strong> file.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli02.jpg\" alt=\"esxi55upg60cli02\" width=\"600\" height=\"347\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Upload image to the datastore<\/h2>\n<p>To allow the upgrade, you need to upload the Offline Bundle file to a datastore reachable by the ESXi.<\/p>\n<p>Open the vSphere Client and go to the <strong>Summary<\/strong> tab, right click the datastore to use and select <strong>Browse Datastore<\/strong> option. Note the current ESXi <strong>version 5.5.0, 2718055<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli03.jpg\" alt=\"esxi55upg60cli03\" width=\"600\" height=\"395\" border=\"0\" \/><\/p>\n<p>Click the <strong>Upload icon<\/strong> and select <strong>Upload File<\/strong> option.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli04.jpg\" alt=\"esxi55upg60cli04\" width=\"436\" height=\"176\" border=\"0\" \/><\/p>\n<p>Select the Offline Bundle image and click <strong>Open<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli05.jpg\" alt=\"esxi55upg60cli05\" width=\"600\" height=\"461\" border=\"0\" \/><\/p>\n<p>Click <strong>Yes<\/strong> to proceed.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli06.jpg\" alt=\"esxi55upg60cli06\" width=\"472\" height=\"165\" border=\"0\" \/><\/p>\n<p>The file is being uploaded to the datastore.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli07.jpg\" alt=\"esxi55upg60cli07\" width=\"400\" height=\"193\" border=\"0\" \/><\/p>\n<p>When the upload is complete, close the <strong>Datastore Browser<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli08.jpg\" alt=\"esxi55upg60cli08\" width=\"600\" height=\"385\" border=\"0\" \/><\/p>\n<p>Shutdown the active virtual machines and put the host in <strong>Maintenance Mode<\/strong>. Right click the host and select <strong>Enter Maintenance Mode<\/strong> option.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli09.jpg\" alt=\"esxi55upg60cli09\" width=\"353\" height=\"258\" border=\"0\" \/><\/p>\n<p>The host is now in <strong>Maintenance Mode<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border-width: 0px;\" title=\"esxi55upg60cli10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli10.jpg\" alt=\"esxi55upg60cli10\" width=\"476\" height=\"140\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Upgrade the host<\/h2>\n<p>To perform the upgrade, the<strong> software profile update<\/strong> command is used to updates existing VIBs with the corresponding VIBs from the specified profile but <strong>does not affect other VIBs installed<\/strong> on the target server.<\/p>\n<p>Connect the ESXi <strong>via SSH<\/strong> (SSH must be enabled) and set the <strong>firewall rules for httpClient<\/strong> running the command:<\/p>\n<p><span style=\"color: #0000a0;\">~ # esxcli network firewall ruleset set -e true -r httpClient<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli11.jpg\" alt=\"esxi55upg60cli11\" width=\"600\" height=\"182\" border=\"0\" \/><\/p>\n<p>The correct update version is required to execute the command.\u00a0List the <strong>available ESXi 6.0 updates<\/strong>\u00a0(you need the latest that ends in \"standard\") running the command:<\/p>\n<p><span style=\"color: #0000a0;\">~ # esxcli software sources profile list -d https:\/\/hostupdate.vmware.com\/software\/VUM\/PRODUCTION\/main\/vmw-depot-index.xml | grep ESXi-6<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli12.jpg\" alt=\"esxi55upg60cli12\" width=\"600\" height=\"361\" border=\"0\" \/><\/p>\n<p>Identified the <strong>correct version<\/strong> (in the example <em>ESXi-6.0.0-20150704001-standard<\/em>), run the command:<\/p>\n<blockquote><p>esxcli software profile update -d &lt;path&gt;\/&lt;volume_name&gt;\/&lt;image_name&gt; -p &lt;profile_name&gt;<\/p><\/blockquote>\n<p>Pay attention to run the <strong>software profile update<\/strong> command because <strong>software profile install<\/strong> overwrites drivers that the ESXi host needs.<\/p>\n<p><span style=\"color: #0000a0;\">~ # esxcli software profile update -d \/vmfs\/volumes\/ts421_lun06_raid5\/<\/span><span style=\"color: #0000a0;\">ESXi600-201507001-OfflineBundle.zip -p ESXi-6.0.0-20150704001-standard<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli13.jpg\" alt=\"esxi55upg60cli13\" width=\"600\" height=\"361\" border=\"0\" \/><\/p>\n<p><strong>Reboot<\/strong> the host to complete the upgrade.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli14.jpg\" alt=\"esxi55upg60cli14\" width=\"600\" height=\"105\" border=\"0\" \/><\/p>\n<p>When the ESXi has rebooted, right click the host\u00a0and select <strong>Exit Maintenance Mode<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli15\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli15.jpg\" alt=\"esxi55upg60cli15\" width=\"321\" height=\"257\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Fix NICs not detected<\/h2>\n<p>The ESXi has been upgraded to <strong>version 6.0.0-2809209<\/strong> but in the example the datastores are not connected to the host.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli16\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli16.jpg\" alt=\"esxi55upg60cli16\" width=\"552\" height=\"137\" border=\"0\" \/><\/p>\n<p>Checking the <strong>Network configuration<\/strong>, the iSCSI VMKernel port doesn't have any NIC attached. The adapter hasn't been detected during the upgrade because the NIC installed in the host is a <strong>Realtek 8168<\/strong> no longer supported.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli17\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli17.jpg\" alt=\"esxi55upg60cli17\" width=\"600\" height=\"446\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Install missing drivers<\/h4>\n<p>To fix the problem, <a href=\"http:\/\/www.v-front.de\/2015\/03\/vsphere-6-is-ga-ultimate-guide-to.html\" target=\"_blank\" rel=\"noopener\">Andreas Peetz<\/a> made a procedure to inject the drivers directly into the host.<\/p>\n<p>Run the following command to <strong>set the acceptance<\/strong> of the host to \u201ccommunity supported\u201d<\/p>\n<p><span style=\"color: #0000a0;\">~ # esxcli software acceptance set --level=CommunitySupported<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli18\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli18.jpg\" alt=\"esxi55upg60cli18\" width=\"600\" height=\"200\" border=\"0\" \/><\/p>\n<p>Install the <strong>missing driver<\/strong> by running the command:<\/p>\n<p><span style=\"color: #0000a0;\">~ # esxcli software vib install -d https:\/\/vibsdepot.v-front.de -n net55-r8168<\/span><\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli19\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli19.jpg\" alt=\"esxi55upg60cli19\" width=\"600\" height=\"163\" border=\"0\" \/><\/p>\n<p><strong>Reboot<\/strong> the host.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli20\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli20.jpg\" alt=\"esxi55upg60cli20\" width=\"600\" height=\"81\" border=\"0\" \/><\/p>\n<p>After reboot, the host is able to <strong>detect the missing NIC<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli21\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli21.jpg\" alt=\"esxi55upg60cli21\" width=\"600\" height=\"508\" border=\"0\" \/><\/p>\n<p>With the working NIC, the <strong>datastores connections<\/strong>\u00a0are restored successfully.<\/p>\n<p><img decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;\" title=\"esxi55upg60cli22\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2015\/08\/esxi55upg60cli22.jpg\" alt=\"esxi55upg60cli22\" width=\"600\" height=\"221\" border=\"0\" \/><\/p>\n<p>The ESXi upgrade is now complete. Previous <strong>configuration is retained<\/strong> and the hypervisor is fully functional.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" alt=\"firma\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When the vSphere Update Manager is not available, the ESXi 5.5 upgrade to 6.0 can be performed using the CLI commands. If you work with a single host or VUM is not available to perform the \"easy way\" upgrade, esxcli commands allow the administrators to upgrade the hypervisor directly from the command line using the ESXi Offline Bundle\u00a0image.<\/p>\n","protected":false},"author":3,"featured_media":13480,"comment_status":"open","ping_status":"open","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":[271,580,876],"class_list":["post-13502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware-en","category-vsphere-en","tag-cli","tag-esxi-en","tag-upgrade-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/13502","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=13502"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/13502\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/13480"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=13502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=13502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=13502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}