Category Archives: Virtualization
Upgrade ESXi 6.0 to 6.5
# reboot
METHOD2 via CLI Online
SOURCE:
https://www.vladan.fr/how-to-upgrade-esxi-6-0-to-6-5-via-cli-on-line/
-enable ssh on ESXi
-Shutdown all VMs running on your ESXi host machine, put your host into maintenance mode and then connect to your ESXi server via SSH
# cd /tmp
# esxcli network firewall ruleset set -e true -r httpClient
# esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.5
# esxcli software profile update -p ESXi-6.5.0-4564106-no-tools -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
# reboot
METHOD3 via ISO
SOURCE:
https://www.vladan.fr/how-to-upgrade-esxi-6-0-to-6-5-via-iso/
-download ESXi iso from https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/6_5
-burn iso into cd
-set BIOS to boot from CD
-reboot ESXi
-on boot select “Upgrade ESXi, preserve VMFS datastore”
METHOD4 via USB media
SOURCE:
https://www.vladan.fr/how-to-create-a-usb-media-with-esxi-6-5-installation/
-download ESXi iso from https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/6_5
-run YUMI and burn iso into pen drive
-set BIOS to boot from USB
-reboot ESXi
-on boot select “Upgrade ESXi, preserve VMFS datastore”
METHOD5 via Update Manager
SOURCE:
https://www.vladan.fr/how-to-upgrade-a-esxi-6-0-to-esxi-6-5-via-vmware-update-manager/
-update ESXi to latest patches
METHOD1: CLI Offline
download ESXi latest patches from
https://my.vmware.com/web/vmware/details?downloadGroup=ESXI650D&productId=646&rPId=15839
scp ESXi650-201704001.zip into ESXi /vmfs/volumes//
# esxcli software vib update -d /vmfs/volumes//ESXi650-201704001.zip
METHOD2: CLI Online
# esxcli network firewall ruleset set -e true -r httpClient
# esxcli software profile install -p ESXi-6.5.0-20170404001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
-enable nested hypervisor
# echo “vhv.enable = “TRUE”” >> /etc/vmware/config
-enable copy/paste between guest vm
# vi /etc/vmware/config
add these
vmx.fullpath = “/bin/vmx”
isolation.tools.copy.disable=”FALSE”
isolation.tools.paste.disable=”FALSE”
-install VMware Host Client
go to https://labs.vmware.com/flings/esxi-embedded-host-client#instructions
download and scp into /tmp
esxui-signed-5214684.vib
# esxcli software vib install -v /tmp/esxui-signed-5214684.vib
Install VMware Remote Console
go to https://labs.vmware.com/flings/esxi-embedded-host-client#instructions
download and scp into /tmp
VMware-Remote-Console-9.0.0-Linux.vib
VMware-Remote-Console-9.0.0-MacOS.vib
VMware-Remote-Console-9.0.0-Windows.vib
# esxcli software vib update -v /tmp/VMware-Remote-Console-9.0.0-Windows.vib
VMware Remote Console 9.0 for Windows
Proxmox Import/Export OVA
ESXi 6.0 Unetlab to Cisco Catalyst trunk








Inject Driver into ESXi ISO
If you encounter can’t continue installing ESXi because lack of driver then follow these steps.
Example below is using HPE ESXi iso but you can use any ESXi iso


Installing ESXi 6.0 Update 2
#esxcli software vib install -n esx-base -n vsan -n vsanhealth -d /v mfs/volumes/datastore2/update-from-esxi6.0-6.0_update02.zip
#esxcli software vib update -d /vmfs/volumes/datastore2/update-from- esxi6.0-6.0_update02.zip
#reboot
Shutdown CUCM together with ESXi
-login as root to pcns and install apcupsd
# yum -y install openssh-clients
-test ssh using admin account
# cat /root/shutcucm.py
-connect usb cable from pc to esxi
# cat /etc/apcupsd/apccontrol
Fix Orphaned VM
SOURCE: http://orphanedvms.blogspot.com/
http://www.yellow-bricks.com/2011/11/16/esxi-commandline-work/
From the Direct Console User Interface (DCUI):
If still finding the orphan, unregister and re-register the VM from ESX console with following command.
Register:
#vim-cmd /vmsvc/register /path/to/file.vmx
Cloning a VM without vCenter in ESXi
Nested ESXi
ESXi-5.5.0-20150104001-no-tools VMware, Inc. PartnerSupported ESXi-5.5.0-20150204001-standard VMware, Inc. PartnerSupported ESXi-5.5.0-20150101001s-no-tools VMware, Inc. PartnerSupported ESXi-5.5.0-20150204001-no-tools VMware, Inc. PartnerSupported ESXi-5.5.0-20150104001-standard VMware, Inc. PartnerSupported ESXi-5.5.0-20150101001s-standard VMware, Inc. PartnerSupported
esxcli software vib install -v
http://download3.vmware.com/software/vmw-tools/esxi_tools_for_guests/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f