阿熊
阿熊
元老
发贴: 5644
|
于 2017-02-07 11:38
    
If you have just installed the latest VMware vSphere 6 for example and want to patch, but you don’t know how? This guide is especially useful if your ESXi host is not connected to the internet. Many folks are waiting for VMware to “polish” the 6.0 release the latest patches which don’t break things, but that’s not always the case.
According to the latest KB2145667, you can safely go ahead and finally patch ESXi 6.0 host as the latest ESXi 6.0 patch don’t break anything. This patch is cumulative. Those of you who stepped in and runs vSphere 6.0, you might want to install latest ESXi VMware patch. Especially the one fixing the nasty CBT bug, where backing up a virtual machine with Change Block Tracking (CBT) enabled fails on ESXi 6.0.
So in today’s post we look at the patching process. Where to download the latest patches and how to apply them to the host. We will focus on simple CLI method today for environments with single ESXi host. This can be the case for branch office or a test environment or simply a site without the resources to purchase a license package that includes vCenter.
Step 1: The patch download portal first (you need VMware login – create a free account if you haven’t done yet).
Select the product you want to download patches (in our case ESXi 6.0)
Select patches you want to download. (they are cumulative).
Step 2: Download the ZIP file and upload it to a datastore (via vsphere C# client or via WinSCP for example) that is reachable for the host you want to patch (it can be local or shared datastore) > Bring the host into the maintenance mode > Connect with SSH (via Putty for example or through Firefox and FireSSH) to your ESXi host.
To enable SSH go and select your host > configuration > security profile > services > properties > SSH.
Then connect via SSH and run this command:
esxcli software vib install -d /vmfs/volumes/datastore1/patch-directory/ESXi600-201608001.zip
So in my case it was:
esxcli software vib install -d/vmfs/volumes/drobo/patches/ESXi600-201608001.zip
Reboot the host and leave the maintenance mode.
As a result, I have patched this host to the latest release…. See the before and after screenshot.
How to patch ESXi standalone via command line
You’re done. In case you have a vSphere cluster in place you can leverage VMware Update manager (VUM) which can orchestrate the patching across your cluster where it goes and puts the host in maintenance mode and evacuates VMs via vMotion automatically each time a host within cluster needs to be patched. So you just attach a baseline which include the latest patches > scans the cluster > remediate…. You will certainly not patch like I showed in this guide today. But today’s post is certainly useful for isolated, lab environments, or environments where VUM isn’t installed.
|