Business IT Support Services in London Business IT Support Services in London
  • Business IT Support
    • IT Services
      • Cyber Security Services
    • IT Support Services
      • IT Support Contract
      • Server Support
      • Internet Packages
      • Data Recovery
    • Cloud Services
      • Website Hosting
      • Hosted Desktop
      • Office 365 Support
      • Office 365 Migration Services
      • Data Backup
      • Email Signature Management
      • Managed IT Security
    • SEO
      • SEO Consultancy
      • Keyword Research
      • Position Tracking
      • Fixed Price SEO
    • Website Design
      • Joomla Support Services
      • Wordpress Support Services
    • IT Support Packages
  • Repairs and Support
    • Computer Repair London
    • Laptop Repair London
    • Remote IT Support
    • PC Health Check
    • Apple Mac Repair
    • Workstation PCs
    • Gaming PCs
    • Data Recovery Services
  • Our Company
    • About SysFix IT Support
    • Contact Us
    • Terms and Conditions
    • Blog
    • Armed Forces Support
 
Business IT Support Services in London Business IT Support Services in London
  • Business IT Support

    IT Support Services

    • Server Support
    • Internet Packages
    • Data Recovery
    • IT Support Contract
    • IT Support Packages

    Cloud Services

    • Website Hosting
    • Hosted Desktop
    • Office 365 Support
    • Office 365 Migration Services
    • Data Backup
    • Email Signature Management
    • Managed IT Security

    SEO

    • SEO Consultancy
    • Keyword Research
    • Position Tracking
    • Fixed Price SEO

    Business IT Support Services

     book online computer help

    Website Support Services

    • Joomla Support Services
    • Wordpress Support Services
  • Repairs and Support

    Repair and Support

    • Computer Repair London
    • Laptop Repair London
    • Remote IT Support
    • PC Health Check
    • Apple Mac Repair
    • Data Recovery Services

    Custom Built Computers

    • Workstation PCs
    • Gaming PCs
  • Our Company
    • About SysFix IT Support
    • Contact Us
    • Terms and Conditions
    • Blog
    • Armed Forces Support
Contact Us 020 3095 7740
Remote IT Support
 

Resetting the ESXi root password on version 5.5 and 6

IT Admin Guides
Friday, 27 October 2023

When you purchase an OVH dedicated server and select to install ESXi, you'll receive a temporary password. What they fail to mention is that the password you're sent expires after around 30 days. OVH is unable to reset the password and does not have a record of it. Their response is to reinstall the ESXi server and copy off any data from your ESXi hosts beforehand. Obviously, this is a very poor response from OVH and there was no way in the world we were about to perform a full reinstallation.

This guide provides information on how to reset the ESXi root password for ESXi 5.5 and ESXi 6 upwards. The procedure below will work on any ESXi installation with any provider however, you may need to tweak it slightly in regards to booting into recovery mode.

REQUEST HELP WITH THIS ISSUE

Part 1: Boot ESXi into rescue mode 

esxi rescue mode in ovh

Log on to OVH and navigate to your dedicated server. Navigate to General Information: Boot and select Boot in Rescue Mode 

You'll be sent an email with instructions on how to connect to your server via SSH. We suggest using putty.
 

If you're not using OVH, boot your system from a freeBSD Linux CD or USB. If your ESXi installation is hosted in the cloud, boot into their rescue mode.


Part 2: How to reset the ESXi root password 

You should now be at the command prompt in your chosen rescue mode using putty or another SSH client. The below code represents each instruction you need to perform, one by one. 
In regards to line 2, fdisk, you're looking for a partition that is 250Mb labeled Microsoft basic data. It may be a different ID so you'll need to change the code below accordingly. If there's more than two sda's of the same size, mount both. The correct one will have the state.tgz  file in there.
 

sudo su
fdisk -l | grep /dev/sda
mkdir /mnt/sda5
mkdir /temp
mount /dev/sda5 /mnt/sda5
ls -l /mnt/sda5/state.tgz
tar -xf /mnt/sda5/state.tgz –C /temp/
tar -xf /temp/local.tgz –C /temp/
rm /temp/*.tgz
vi /temp/etc/shadow 

The first line will show root: with a string of characters.
You need to delete everything after root: and stop at the next :
You should now have something like root:876586:0:99999:7:::
You've basically removed the password. 
Save the file and exit.

Next, we're going to save the passwd file back into the tar file and put it back in it's place. 

cd /temp
tar -czf local.tgz etc
tar -czf state.tgz local.tgz
mv state.tgz /mnt/sda5/
umount /mnt/sda5
reboot (or shutdown -r now) 

Do you need IT Support?

 If you're looking for server support, please contact us and we'll gladly assist you. 

×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Related Posts

FuxSocy Ransomware encrypted files

IT Admin Guides

Emails stuck in Outlook outbox

IT Admin Guides

Lightroom encountered an error with preview cache

IT Admin Guides

Business IT Support Services

 book online computer help

CONTACT INFORMATION

SysFix IT Support & Computer Repairs
AMP House
4 Dingwall Road
Croydon
CR0 2LX

020 3095 7740
  Email Us

Location
Find us on Google Maps

BUSINESS IT SUPPORT

  • IT Support Packages
  • IT Support Croydon
  • IT Support Surrey
  • IT Support Kent
  • IT Support Brighton
  • Outsourced IT Support
  • Managed IT Services
  • Remote IT Support
  • GDPR Privacy Policy

IT SUPPORT SERVICES

  • IT Support Contract
  • Email Hosting and Office 365 
  • UK Cloud Data Backup
  • Server Support and Maintenance
  • Data Recovery London
  • Computer Repair London

IT companies in london

© SysFix IT Support Ltd, 2003-2025
VAT Number: GB 206 7821 12
Company Number: 09416191