Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 云计算  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to topicflat modethreaded modego to previous topicgo to next topicgo to back
作者 How to Install latest ESXi VMware Patch
阿熊

阿熊

元老


发贴: 5644
于 2017-02-07 11:38 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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.




都2021年了,这是准备一年只发一个贴的节奏么?弄个微信群腐败活动起来啊!
作者 Re:How to Install latest ESXi VMware Patch [Re:阿熊]
阿熊

阿熊

元老


发贴: 5644
于 2020-03-04 13:04 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在VMware ESX中,补丁和更新只替换某些特定的文件,这些文件都是在原先版本的基础上被修改过的。而在ESXi中,每个补丁都完全替换管理程序镜像(hypervisor image)。在应用一个更新时,服务器就会载入一个新的防火墙镜像,而原来的镜像就会被作为备份保存起来。这些操作是在ESXi服务器运行的同时被执行的,而主机中的虚拟机则继续运行于老镜像之上,直到虚拟机重启之后才使用新镜像。 重启主机之后,新镜像会被载入。



都2021年了,这是准备一年只发一个贴的节奏么?弄个微信群腐败活动起来啊!
作者 Re:How to Install latest ESXi VMware Patch [Re:阿熊]
阿熊

阿熊

元老


发贴: 5644
于 2020-03-04 13:13 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
验证 VIB 是否已安装成功:

# esxcli software vib list

退出维护模式,
# vim-cmd hostsvc/maintenance_mode_exit

•要安装或更新 .zip 文件,请使用 -d 选项。要安装或更新 .vib 文件,请使用 -v 选项。

•建议使用更新命令应用修补程序。使用此命令会应用修补程序中所有更新的内容,包括所有安全修补。版本低于系统中现有软件包版本的修补程序的内容将不会应用。

•使用 install 命令会使用您正在安装的修补程序的内容覆盖系统中现有的软件包,包括安装新软件包和移除旧软件包。安装命令可能会降级系统中的软件包,应谨慎使用。如果需要,当设置了 --allow-downgrade 标记时,可使用安装命令降级系统(仅适用于图像配置文件)。

注意:安装方法可能会覆盖现有的驱动程序。如果使用第三方 ESXi 图像,VMware 建议使用更新方法避免出现无法引导状态。


阿熊 edited on 2020-03-04 13:22


都2021年了,这是准备一年只发一个贴的节奏么?弄个微信群腐败活动起来啊!

reply to topicflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923