Skip to main content

Upgrade ESXi 6.5 using CLI command in seconds

 Hello All,


This is my first blog after decided to shutdown soon known forum egyeng.com and transfer posts to the blog.

I welcome you and wish you a great career, It will be my pleasure when you following me in blogs here.

You could upgrade ESXi in few seconds using CLI commands.


Please use offline bundle of ESXi version 6.5 , you could upload it directly to one of datastores or attach it as ISO file to console and then copy it to datastore.

1. after attach ISO to CD, then mount it in ESX via CLI.
To find the device reference of your CDROM:
esxcfg-mpath -l
Example output:
Code:
ide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0
   Runtime Name: vmhba32:C0:T0:L0
   Device: mpx.vmhba32:C0:T0:L0
   Device Display Name: Local TEAC CD-ROM (mpx.vmhba32:C0:T0:L0)
    State: active
   Transport: ide
Load the iso9660 module with this command:
vmkload_mod iso9660

Mount the CDROM using the device determined earlier with esxcfg-mpath -l:
/sbin/vsish -e set /vmkModules/iso9660/mount mpx.vmhba32:C0:T0:L0
The CDROM will be mounted under /vmfs/volumes/ [CDROM Label] /



2. You need to know the ISO profile using below command
Code:
esxcli software profile update -p ESXi-6.5.0-20170702001-standard -d /vmfs/volumes/SCSIDatastore1/UPDATE~1.ZIP
Code:
You will find output like below
Name                              Vendor        Acceptance Level
--------------------------------  ------------  ----------------
ESXi-6.5.0-20170701001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170702001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170701001s-standard  VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170702001-standard   VMware, Inc.  PartnerSupported
Choose the Standard one.

3. now you will run the command to perform the upgrade.
Code:
esxcli software profile update -p ESXi-6.5.0-20170702001-standard -d /vmfs/volumes/SCSIDatastore1/UPDATE~1.ZIP
Hold for 3 minutes and all will be done, ESXi will be rebooted. be patient for few minutes then when you see ESXi is up via console, you may need to reconnect the ESXi from Web client.

On other side, if Vcenter is Appliance version and have any issues in viewing right status you could reboot all services from its console as below.

Code:
service-control --start --all
and this reboots all Linux services for refresh the VCenter services, note this make web client down for few minutes.

Comments

Popular posts from this blog

Question كيفية عمل share للـ outlook conntact لكل الـ Domain Users

  الحل بسيط جدا عايز الكونتاكت تتحدث دايما بحيث انك لما تضيف يوزر جديد يسمع في الكونتاكت اول حاجه بتدخل علي in office 2003 tools --- email account ---- add address book --- internet directory service (LDAP) type your server name then login info . mark this server require me to logon type any user on active directory and its password then save and close outlook and open it again now you will find all your active directory users in address book

3 things has to be done for better performance

  Tips from Goutham: 3 things has to be done for better performance: By default, XP displays extra graphic objects for menu items which can slow down your display. 1. To turn off these selectively... Right click My Computer Select Properties Click Advanced tab Under Performance, click Settings button To turn them all off, select Adjust for best performance Preference is to leave them all off except for Show shadows under mouse pointer and Show window contents while dragging 2. To speed up the display of the Start Menu Items, turn off the menu shadow. Right click open area of the Desktop Select Properties Click Appearance tab Click Effects button Uncheck Show shadows under menus 3. You can increase system performance by loading more of the system into memory. DO NOT attempt this with less then 512MBs of ram. Your system will become unstable. Click Start Click Run Enter regedit Click OK Go to HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Control Session Manager Memory Management Double cli

The difference between DNS and NDS

  Novell Directory Services(NDS) - Novell Directory Services (NDS) is a popular software product for managing access to computer resources and keeping track of the users of a  network , such as a company's  intranet , from a single point of administration. Using NDS, a network administrator can set up and control a  database  of users and manage them using a  directory  with an easy-to-use graphical user interface ( GUI ). Users of computers at remote locations can be added, updated, and managed centrally. Applications can be distributed electronically and maintained centrally. NDS can be installed to run under  Windows NT , Sun Microsystem's Solaris, and IBM's  OS/390  as well as under Novell's own  NetWare  so that it can be used to control a multi-platform network. NDS is generally considered an industry  benchmark  against which other products, such as Microsoft's Active Directory, must compete. Lucent Technologies plans to integrate NDS into its own QIP product