ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Appliance (OS) root password is expired – vSphere 6.7

By Vladan SEGET | Last Updated: May 25, 2020

Shares

I had this message on one of my vCenter server appliances when I was going to run an update. I'm running my vCenter server in a linked mode in the lab. The messages says that “Appliance (OS) root password is expired“. In fact, just today I noticed that VMware just released a new update – VMware vCenter Server 6.7 Update 2g Build 13638625, so I wanted to update my VCSAs. There are some security patches which needs to be applied.

I could still log in to the management page of the appliance (via https://IP_of_vcsa:5480) and use the default [email protected] user and password instead, but once logged in, there is no UI or menu to change that root password within the VAMI user interface.

I had the other VCSA node updated with no problem, but this one did not want to update itself because of the message.

The only way is to go and use the console or SSH session to do so.

The VMware KB article says:

This issue occurs when VAMI is not able to change an expired root password. To resolve this issue, reset the root password from the vCenter Server Appliance command line: Connect to the vCenter Server Appliance with an SSH session and the root user credentials.

You can't update your VCSA without changing the password.

Here is the screenshot with the error.

So I went and changed the root password. Here are the steps.

Appliance (OS) root password is expired – vSphere 6.7 – The steps

Note: You can change the root password to the same one. You can also change the expired password to something else.

First, log in to the VCSA with your default SSO user and password you configured during the setup. In my case, I used the default one [email protected] one.

Then activate SSH access to the appliance.

You can check that in Access > Access Settings 

Once done, fire up your Putty SSH session and log in as root (I assume you know your root login password).

Then type this:

shell

Run this command

passwd

You'll get a prompt to change the root password. Retype it once again and type “exit” twice. You're done.

Here is the screenshot from the lab.

In case you don't know your root password, follow the instructions in this VMware KB article for the reset of the root password or read more.

The steps to reset root password:

  1. Take a snapshot or backup of the vCenter Server Appliance 6.5 before proceeding. Do not skip this step.
  2. Reboot the vCenter Server Appliance
  3. After the OS starts, press e key to enter the GNU GRUB Edit Menu.
  4. Locate the line that begins with the word Linux.
  5. Append these entries to the end of the line:

rw init=/bin/bash

The line should look like the following screenshot:

Note that the above comes from VMware KB article.

Well, we're done. We can successfully stage and install the latest security bundle from VMware and stay protected.

I want to set the root password to Never Expire, where can I do that?

Well, it's simple. Now you have the root password being reset, just login to the VCSA appliance on the port 5480 and go to the Administration menu, where you can set the root password to never expire.

Final words

When installing patches or upgrades, do not forget to backup your VCSA. You can do either the appliance built-in backup (which in 6.7 can be scheduled) or you can use external software to backup your vCSA. In my case, I use Veeam in the lab, but any supported backup software can do the job.

While since some time VMware patches and updates seem to process quite well, one never knows. In the past, I had few surprises when I ended up with a VCSA in an unbootable state or with the impossibility to log in and I had to roll back. Having a proper backup can save you especially if you're in a production environment -:).

VMware vSphere 7.0 coverage on ESX Virtualization

  • VMware vSphere 7.0 Announced – vCenter Server Details
  • VMware vCenter Server 7.0 Profiles
  • We saw ESXi 7.0 on ARM – Our post from VMworld Barcelona 2019.
  • What is vCenter Server Update Planner? – vSphere 7.0
  • VMware vCenter Server 7.0 Profiles 
  • What is vCenter Server Multi-Homing?
  • VMware vSphere 7.0 – VM Template Check-in and Check-out and versioning
  • VMware vSphere 7.0 DRS Improvements – What's New?

Also from ESX Virtualization

  • VCP6.7-DCV Objective 7.5 – Configure role-based user management
  • VCP6.7-DCV Objective 7.4 – Configure host security(Opens in a new browser tab)
  • VCP6-DCV Objective 7.5 – Troubleshoot HA and DRS Configurations and Fault Tolerance(Opens in a new browser tab)

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
3.7/5 - (3 votes)

| Filed Under: Free Stuff, How To, Server Virtualization, Tips Tagged With: Appliance (OS) root password is expired

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Greg Gumede says

    July 23, 2019 at 9:58 pm

    We are planning on using Pam to manage and update our root password is this a good idea or will we run into issue’s

  2. Diana Gallegos says

    May 18, 2020 at 5:54 pm

    Thank you very much for this wonderful article! It made it so simple for me to update our expired password.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in