Installing patches on an ESXi 5.x by the command
Purpose
- For more information on installing VIBs on an ESX host, see Update a Host with Individual VIBs in the vSphere 5 Documentation Center.
- You can also install patches using esxcli software profile commands. For more information, see vSphere Command-Line Interface Reference in the vSphere 5 Documentation Center.
- To patch an ESXi 5.x host using the Update Manager, see Applying Patches to Hosts in the vSphere 5 Documentation Center.
Resolution
- Patches for VMware products can be obtained from the VMware patch portal. Select ESXi (Embedded and Installable) in the product dropdown and click Search.
- Click the Download link below the patch Release Name to download the patch to your system.
- Upload the patch to a datastore on your ESXi 5.x host using the Datastore Browser from vCenter or a direct connection to the ESXi 5.x host using the vSphere client.
Note: VMware recommends creating a new directory on the datastore and uploading the patch file to this directory. 
- Log into the local Tech Support Mode console of the ESXi 5.x host. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- Migrate or power off the virtual machines running on the host and put the host into maintenance mode. The host can be put into maintenance mode from the command line with:
# vim-cmd hostsvc/maintenance_mode_enter 
- Navigate to the directory on the datastore where the patch file was uploaded to and verify that the file exists:
# cd /vmfs/volumes/Datastore/DirectoryName 
 # lsWhere Datastore is the datastore name where the patch file was uploaded to, and DirectoryName is the directory you created on the datastore. 
- Install or update a patch on the host using these esxcli commands:
Notes: - To install or update a .zip file, use the -d option. To install or update a .vib file use the -v option.
- Using the update command is the recommended method for patch application. Using this command applies all of the newer contents in a patch, including all security fixes. Contents of the patch that are a lower revision than the existing packages on the system are not applied. 
- Using the install command overwrites the existing packages in the system with contents of the patch you are installing, including installing new packages and removing old packages. The install command may downgrade packages on the system and should be used with caution. If required, the install command can be used to downgrade a system (only for image profiles) when the --allow-downgrade flag is set. 
 Caution: The install method has the possibility of overwriting existing drivers. If you are using 3rd party ESXi images, VMware recommends using the update method to prevent an unbootable state. To Install: - Using local setup:
# esxcli software vib install -d "/vmfs/volumes/Datastore/DirectoryName/PatchName.zip" Where PatchName.zip is the name of the patch file you uploaded to the datastore. Note: Alternatively, you can use the datastore's UUID instead of the DirectoryName. For example: # esxcli software vib install -d "/vmfs/volumes/datastore1/patch-directory/ESXi500-201111001.zip" or # esxcli software vib install -d "/vmfs/volumes/a2bb3e7c-ca10571c-cec6-e5a60cc0e7d0/patch-directory/ESXi500-201111001.zip" 
- Using http setup:
# esxcli software vib install -v viburl Where viburl is the URL to the http depot where VIB packages reside. For example: # esxcli software vib install -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-0.7.515841.vib 
 To Update: - Using local setup:
# esxcli software vib update -d "/vmfs/volumes/Datastore/DirectoryName/PatchName.zip" Where PatchName.zip is the name of the patch file you uploaded to the datastore. Note: Alternatively, you can use the datastore's UUID instead of the DirectoryName. For example: # esxcli software vib update -d "/vmfs/volumes/datastore1/patch-directory/ESXi500-201111001.zip" or # esxcli software vib update -d "/vmfs/volumes/a2bb3e7c-ca10571c-cec6-e5a60cc0e7d0/patch-directory/ESXi500-201111001.zip" 
- Using http setup:
# esxcli software vib update -v viburl Where viburl is the URL to the http depot where VIB packages reside. For example: # esxcli software vib update -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-0.7.515841.vib 
 
- Verify that the VIBs are installed on your ESXi host:
# esxcli software vib list For example: # esxcli software vib list Name Version Vendor Acceptance Level Install Date 
 ----------------- --------------------------- ------ ---------------- ------------
 ata-pata-amd 0.3.10-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
 ata-pata-atiixp 0.4.6-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
 ata-pata-cmd64x 0.2.5-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
 ata-pata-hpt3x2n 0.3.4-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
- After the patch has been installed, reboot the ESX host:
# reboot 
- After the host has finished booting, exit maintenance mode and power on the virtual machines:
# vim-cmd hostsvc/maintenance_mode_exit 
- link: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2008939
Installing patches on an ESXi 5.x by the command的更多相关文章
- vmware esxi 找不到网卡驱动,硬盘的解决方法
		解决方法就是把ESXi无法识别的硬件的驱动定制进安装镜像文件中. ESXi 5.5 U2: VMware-VMvisor-Installer-5.5.0.update02-2068190.x86_64 ... 
- Vmware ESXi 的虚拟机的开机自启动
		ESXi 6.7 以前就注意到虚拟机有个菜单[action->autostart]可以用来自启动(物理机开机之后), 可是设置完之后,总是没成功. 今天重新google了,发觉不但虚拟机,整个物 ... 
- Installing VirtualBox DKMS in Kali 2.0
		Kali linux is one of the mainly used operating system by the Ethical hackers and information securit ... 
- HADOOP 2.6 INSTALLING ON UBUNTU 14.04 (hadoop 2.6 部署到ubuntu 14.04上面)
		Hadoop on Ubuntu 14.04 In this chapter, we'll install a single-node Hadoop cluster backed by the Had ... 
- vmware目录2
		http://www.globalknowledge.com/training/course.asp?pageid=9&courseid=17880&country=United+St ... 
- 很好的vmware目录
		http://www.globalknowledge.com/training/course.asp?pageid=9&courseid=18023&country=United+St ... 
- weblogic安装注意事项_linux
		➠更多技术干货请戳:听云博客 一.安装过程:参考“weblogic安装截屏(linux)” 注意事项:安装weblogic时,需要注意以下两点: 1.首先在安装目录下创建weblogic12文件夹 如 ... 
- P6 EPPM Installation and Configuration Guide 16 R1 April 2016
		P6 EPPM Installation and Configuration Guide 16 R1 April 2016 Contents About Installing and ... 
- Linux安装WebLogic12
		# groupadd weblogic# useradd -g weblogic weblogic# passwd weblogic# mkdir -p /var/bea# chown -R webl ... 
随机推荐
- 死锁-Java代码示例
			class MyThread implements Runnable{ private Object o1 = new Object(); private Object o2 = new Object ... 
- php 图片操作类,支持生成缩略图,添加水印,上传缩略图
			<?php class Image { //类开始 public $originimage = ""; //源图片文件地址 public $image ... 
- B-树  动机与结构
			Ps.我们遵循从感性到理性的认知顺序来逐步探索B-树的奥秘,之前经常说的value这里用key(关键码)指代,因为可能存的是字符串,说是value就不合适了. (多图预警!!!建议在WI-FI下观看) ... 
- 笔记-docker-3 使用
			笔记-docker-3 使用 1. 镜像 image是docker最重要的概念,docker运行容器前需要本地存在对应的镜像,如果没有,会尝试从默认镜像库下载. 1.1. 镜像获取 查 ... 
- PowerShell脚本授权最佳实践
			[TechTarget中国原创] Windows PowerShell已成为微软在Windows Server上提供的首选管理界面.因为深度整合到Windows Server操作系统,PowerShe ... 
- 以最省内存的方式把大图片加载到内存及获取Exif信息和获取屏幕高度和宽度的新方法
			我们在加载图片时经常会遇到内存溢出的问题,图片太大,我们加载图片时,一般都是用的如下一般方法(加载本地图片): /** * 不作处理,去加载图片的方法,碰到比较大的图片会内存溢出 */ private ... 
- 安卓Dex壳技术探讨(1)
			最近在研究安卓平台的加壳技术,以前以为只有原生层的代码才可以加壳,看了看网上的资料,才发现原来Java层也可以加壳,虽然与传统的壳有些区别,但就最终的效果来说,反静态分析的目的还是达到了的. 目前安卓 ... 
- day06_02 元组
			1.0 元组 元组被称为只读列表,即数据可以被查询,但不能被修改,所以,列表的切片操作同样适用于元组.元素卸载小括号(())里,元素之间用逗号隔开. tup1 = () #空元组 tup2 = (20 ... 
- Set(), Get() 真正的目的
			在各种面向对象编程中,都有 Set(), Get() 两种方法. 1 常见理解 1 为了保证安全性 2 为了规范代码 其实这些理解都是对的.具体看我们从哪个角度去理解这个内容. 2 个人理解 2.1 ... 
- Python的HttpClient实现
			Python版本3.4(注意python的版本,python2和python3的写法不一样) 其实无非就是客户端的请求,所以python中这里使用的是urllib.request模块.主要注意的是he ... 
