In this post I will provide a quick way to update your standalone ESXi host to ESXi 5.5 and an important heads-up for the early adopters.
How to update to ESXi 5.5
If your host is connected to the Internet then you just need to run the following commands in an ESXi shell:
# open firewall for outgoing http requests: esxcli network firewall ruleset set -e true -r httpClient # Install the ESXi 5.5 GA Imageprofile from the VMware Online depot esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-1331820-standardIt might be very important to use update and not install here! More on this later. Reboot the host to complete the update.
If your host is not connected to the Internet then you can still update using the ESXi 5.5 Offline bundle. Unfortunately VMware does not provide this to free license users, so we need some additional steps to create it on our own:
- Find a Windows machine that is connected to the Internet and install PowerCLI on it.
- Open a PowerCLI session using the installed desktop shortcut and run the following commands:
Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml Export-EsxImageProfile -ImageProfile ESXi-5.5.0-1331820-standard -ExportToBundle -FilePath .\ESXi-5.5.0-1331820-standard.zip
These commands will create the ESXi 5.5 Offline Bundle in the current directory. - Upload the file to a datastore of your host using the Datastore browser of the vSphere Client. In this example we will use the datastore named ds1. Change that to match your own datastore's name!
- Open an ESXi shell on the host and run the following command there to update your host:
esxcli software profile update -d /vmfs/volumes/ds1/ESXi-5.5.0-1331820-standard.zip -p ESXi-5.5.0-1331820-standard
and reboot the host to complete the upgrade.
If you use install instead of update in the above commands then the following error message will be displayed:
[Exception]
You attempted to install an image profile which would have resulted in the removal of VIBs ['VMware_bootbank_net-sky2_1.20-2vmw.510.0.0.799733', 'VMware_bootbank_net-r8168_8.013.00-3vmw.510.0.0.799733', 'VMware_bootbank_net-r8169_6.011.00-2vmw.510.0.0.799733', 'VMware_bootbank_net-s2io_2.1.4.13427-3vmw.510.0.0.799733']. If this is not what you intended, you may use the esxcli software profile update command to preserve the VIBs above. If this is what you intended, please use the --ok-to-remove option to explicitly allow the removal.
Please refer to the log file for more details.
Do not upgrade the virtual hardware of your VMs!
If you try to upgrade the virtual hardware of your VMs to the new revision 10 after you have updated the host to ESXi 5.5 then the following warning will be displayed by the vSphere Client:
"If you upgrade the virtual hardware to this level, use the vSphere Web Client for managing these VMs." - Think twice here! |
"Use the vSphere Web Client to edit the settings of this virtual machine" - Too bad if you do not have vCenter and the Web Client available ... |
But keep in mind that this issue might also affect you if you are managing your hosts with vCenter and your vCenter server is a virtual machine! I would not upgrade the hardware version of the vCenter server then, because this might limit your options for troubleshooting when the vCenter server should become unavailable ...
What if it is too late? You have ignored the warning in the vSphere Client and have upgraded the virtual hardware and can now no longer edit its hardware? There is no menu item available to downgrade the virtual hardware of a VM, so we need to use some workaround. I'm sure that there are several ways to fix that, but what will definitely work is the following: Create a new VM with the same hardware specifications (no. of vCPUs, RAM size, disk and network controller type) than the original upgraded one. Then attach the hard disk(s) of the original VM to the new VM. The new VM will have a different MAC address (which can be manually set to the original value) and BIOS UUID, but this is better than nothing ...
This post first appeared on the VMware Front Experience Blog and was written by Andreas Peetz.
Follow him on Twitter to keep up to date with what he posts.
Cannot process argument
ReplyDeleteNo image profile has a name that matches
:(
With what command?
DeleteI think a glitch on VMWARE
DeletePerfectly working now
FYI
Marvell chipset driver disappeared from ESXI
Thanks a lot for the warning about the virtual hardware 10 issue.
ReplyDeleteIf you have a VMWare Workstation 10 license, it can be used to edit HW rev. 10 virtual machines on ESXi host.
ReplyDeleteThat is good to know, thanks! I will try this ...
DeleteWhen the white-box drivers are no longer delivered with VMware 5.5, can they still be downloaded separately? Or are they not supported at all? Is there a way to create an install medium with 5.5 and the drivers included?
ReplyDeleteThese drivers have never been officially supported, but they work also with ESXi 5.5.
DeleteAnd yes, there is a way to create an ESXi 5.5 installation ISO including these drivers. I will soon post about this ...
If someone is aware of Marvell 88SE9172 chipset driver for ESXI.
DeleteDrop a line
How do I manage rev 10 VMs on the free ESXi 5.5?
ReplyDeleteI don't have vCenter, can't I access ESXi 5.5 with browser then (Web Client)?
You can still manage them with the legacy client (e.g. power on/off, shutdown, console access), you just cannot edit the properties anymore ... The Web Client requires a vCenter server and does not work with a single ESXi host (currently).
DeleteYou can also use scripting (PoiwerCLI etc) to manage rev10 VMs, incl. editing, even with a standalone ESXi host.
But Web Client access to standalone ESXi will probably be introduced soon? any infos about this?
ReplyDeleteThat is not sure, I do not have any information... Maybe there will be news on this at VMworld Barcelona.
DeleteAnyone find anything about adding support back for the ASM1062 Serial ATA Controller?
ReplyDeleteI looked through the list of packages on the repo server but i couldnt find anything.
apologies, trying to run the offline scripts but for some reason the 2nd part of the script just hangs there,it doesn't seem to be doing anything is this normal? as i dont see a percentage for downloading or anything.
ReplyDeleteplease assist
thank you
Do you mean the PowerCLI Export-EsxImage Profile command? This can take a while to complete depending on your download link speed. The command will download about 300MB from the VMware Online depot and will not show any progress bar.
DeleteYou can check progress or errors in the most recent log file %TEMP%\if-server.log.*
So i'm still running VMware ESXi 5.1 and it didn't like the arguments you gave in the command for the power cli...do I need to upgrade to power cli 5.5 to make this work?
ReplyDeleteNo, I also used PowerCLI 5.1 and have not yet tested PowerCLI 5.5.
DeleteWhat errors do you get?
It returns the command output as if used a bad argument or no argument.
ReplyDeleteBeware of (no) line breaks in the code. There are only two lines of PowerCLI code.
DeleteAlso post the exact error message, please!
I was able to add support back for ASM1062 mass storage controller by updating the driver map in sata_ahc.v00
ReplyDeleteCould you please give me further details? (Same problem here ...)
DeleteThank You - Bertl
I also managed it to update the driver map in sata_ahc.v00 with the guide on this german webpage: http://www.marco-burmeister.de/helferlein/de_esxi5_auf_M2A-VM.html
Delete(... maybe there is an easier way to edit the file, but i'm quite new to linux & esxi ...)
What is worse is that the new features of ESXi 5.5 (such as > 2 TByte virtual disks) are supported only with virtual hardware version 10. But in order to manage VM with that version, you got to have a paid-for vCenter Server because vCenter Web Client relies on that.
ReplyDeleteThus, none of the new 5.5 features can be used for free.
Virtual disks >2 TB can also be used with VM hardware version <10.
DeleteI have not tried that, but I know that RDMs with more than 2 TByte do not work with hardware version 8:
Deletehttps://communities.vmware.com/message/2303854#2303854
I am actually using RDMs with more than 2TB within ESX 5.1 and hardware version 9...
ReplyDeletesee the following for >2TB support on VMX < 10:
ReplyDeletehttp://forums.overclockers.co.uk/showpost.php?s=90a762b7b3786fcf0fb353c6b10a40ce&p=25084352&postcount=29
If anyone is wondering you can also use vmware converter to convert vm hardware version 10 to earlier hardware versions. I have tested this a couple of times with a file server (with pci passthrough) and a 2008 DC and there where no adverse effects I could see. YMMV so use at your own risk!
ReplyDeleteJust a FYI as this article was the first to come up in a search.
ReplyDeleteI was using HP offline custom bundle VMware-ESXi-5.5.0-1331820-HP-5.71.3-Sep2013-depot.zip
Ran the command
esxcli software profile install -d /vmfs/volumes/datastore1/VMware-ESXi-5.5.0-1331820-HP-5.71.3-Sep2013-depot.zip -p HP-ESXi-5.5.0-5.71.3
Exactly... you can query the profile of the zip file with:
Deleteesxcli software sources profile list -d /vmfs/volumes/datastore1/vmwarepatches/VMware-ESXi-5.1.0-Update2-1483097-HP-5.62.23-Jan2014-depot.zip
So you can find out the exact profile name.
for offline how do you get the .zip files as vmware downloads only have .iso file.
ReplyDeleteHi Anonymous
DeleteYou need to create the Offline bundle zip files on your own using PowerCLI.
See instructions in my post starting at 2.
Andreas
You can also downgrade your VMs from hardware version 10 to 9 with a simple vmx file edit. You can see my blog article here for instructions. It works!
ReplyDeletehttp://blog.waldrondigital.com/2014/01/21/how-to-downgrade-vmware-esxi-5-5-virtual-machine-hardware-version-to-9-from-10/
Thanks Mike, best solution suggested thusfar.
DeleteI have some old vm's that are version 4 and want to upgrade them to 8 or 9, but on 5.5 the upgrade option takes it right to 10. I've been using the above trick to go in and edit the vmx file to roll it back down to version 9 but this is really tedious. Has anyone discovered any advanced-settings to set the maximum hardware version to 9 or anything for upgrade purposes? PS Do Not Change the Misc.DefaultHardwareVersion in advanced settings .. I tried setting it to '8' and the kernel started crashing. Fortunately I was able to edit /etc/vmware/esx.conf via the console and undo my change! :-/
ReplyDeleteHi Anonymous,
Deleteyour answer is now here!
Andreas
How do we update to 5.5u1 from the command line on a stand alone host?
ReplyDeleteHi Anonymous,
Delete# open firewall for outgoing http requests:
esxcli network firewall ruleset set -e true -r httpClient
# Install the ESXi 5.5 U1 Imageprofile from the VMware Online depot
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-20140302001-standard
reboot
Andreas
Andreas,
ReplyDeleteThanks for your blog. I am just learning VMware/ESXi and the information here is very helpful.
I have a question regarding updates using your method. I am using DELL custom ISO images to update my ESXi hosts. I have done this successfully manually (CD boot). Can I use a method similar to what you did with the offline bundle and use these DELL images in a similar fashion?
Thanks,
Dan
Hi Dan,
Deleteunfortunately you can not, because Dell supplies customized images only in ISO format, but not as an Offline bundle (like e.g. HP). So you are stuck with either booting with the Dell ISO. If you have vCenter with Update Manager (VUM) available then you can also import the Dell ISO file in VUM and create a baseline from it to patch your hosts.
Andreas
Hi,
ReplyDeletedoes this approach require physical access to server after reboot or 5.5 will just boot (without EULA etc)? Thank you.
Hi Anonymous,
Deleteit will just boot like always. No physical intervention at the console is needed.
Andreas
Andreas,
DeleteWill the firewall rule (outgoing http) persist upon reboot ?
If so will this line block it Again:
esxcli network firewall ruleset set -e false -r httpClient
Best regards
Kurt
Hi Kurt,
Deleteyes, the change will persist a reboot, and yes, your command will revert it again.
Andreas
Hi do you think this process would work on a server with nic Intel® 82579V currently running esxi 5.0u1 free fine
ReplyDeleteHi Andrew,
Deleteyes, this should work. The custom driver that you are using for the NIC should be preserved if you use the update method.
If not then you can revert to the old ESXi installation by following the process described in http://kb.vmware.com/kb/1033604.
Andreas
Hi Andreas,
ReplyDeleteCan I upgrade straight to 5.5U2 from ESXi build of 5.5.0 - 1331820. I am having trouble with adding a NFS and APDs being reported in the event log.
For what I have read some people suggest upgrading to 5.5U2 to clean up this bug?
Hi John,
Deleteye,s you can update straight to U2. But the NFS bug was introduced with Update 1 (Build 1623387), and you seem to be on GA if it's really build #1331820.
See also this post.
Andreas