{"id":474,"date":"2024-04-08T02:54:04","date_gmt":"2024-04-08T02:54:04","guid":{"rendered":"https:\/\/ale.newby.work\/?p=474"},"modified":"2024-04-08T02:54:06","modified_gmt":"2024-04-08T02:54:06","slug":"vmware-root-pw-reset","status":"publish","type":"post","link":"https:\/\/ale.newby.work\/?p=474","title":{"rendered":"VMware root pw reset"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">How to Reset Forgotten VMware ESXi Root Password<\/h1>\n\n\n\n<p>Lost or forgot the root password of VMware ESXi host? Is there any way to recover or reset it? Just like many Linux distributions, VMware ESXi also stores user account information, including one-way encrypted passwords, in a file called \/etc\/shadow. Just boot your server with a Linux Live CD and you can remove the root password easily.<\/p>\n\n\n\n<p>This tutorial explains how to use Ubuntu Live CD to reset forgotten root password on VMware ESXi 5.5, so you can log back into your ESXi server without reinstalling.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Reset VMware ESXi Root Password with Ubuntu Live CD?<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Boot your ESXi server from Ubuntu Live CD. After a while, the system installer will appear with the option to &#8220;Try Ubuntu&#8221; or &#8220;Install Ubuntu&#8221;. Click on &#8220;Try Ubuntu&#8221; to load Ubuntu directly into RAM, without installing it on your hard drive. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/try-ubuntu.png\" alt=\"Try Ubuntu\"><\/li>\n\n\n\n<li>After getting to the Ubuntu desktop, click on the Ubuntu icon in the upper left corner and search for <em>GParted<\/em> in the Dash. Double-click on GParted Partition Editor to launch it. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/open-GParted.jpg\" alt=\"Search GParted in Ubuntu\"><\/li>\n\n\n\n<li>Now that we know that the partition which we need to mount is \/dev\/sda5, close GParted and open the Terminal. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/ubuntu-terminal.jpg\" alt=\"Ubuntu Terminal\"><\/li>\n\n\n\n<li>In terminal, type &#8220;sudo -s&#8221; to gain root access and then mount the ESXi system partition with the following commands. After mounting, you&#8217;ll see the state.tgz file that we need to unpack now. sudo -s mount \/dev\/sda5 \/mnt cd \/mnt ls <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/mount-sda5.png\" alt=\"Mount sda5 partition\"><\/li>\n\n\n\n<li>Copy state.tgz to the \/tmp folder, and then unpack the state.tgz file which contains another compressed archive named local.tgz. cp state.tgz \/tmp cd \/tmp tar xzf state.tgz ls <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/untar-state-tgz.png\" alt=\"Unpack the state.tgz file\"><\/li>\n\n\n\n<li>Unpack the local.tgz file which has the \/etc directory compressed in it. tar xzf local.tgz ls <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/untar-local-tgz.png\" alt=\"Unpack the local.tgz file\"><\/li>\n\n\n\n<li>Go to the \/etc directory and you can gain access to the shadow file which contains the password hash of ESXi root account. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/locate-shadow.png\" alt=\"Locate the shadow file\"><\/li>\n\n\n\n<li>Run the <strong>vi shadow<\/strong> command to open the shadow file in the vi editor. You&#8217;ll find out that the password hash of the root account is surrounded by the first two colons. To remove the existing root password, you need to delete the password hash. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/esxi-password-hash.png\" alt=\"Delete the password hash of the root account\"><\/li>\n\n\n\n<li>Once you have removed the password hash, press ESC to return to the command mode. Type in <strong>:wq<\/strong> and press Enter. This will save your changes and exit the vi editor. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/save-and-exit-vi.png\" alt=\"Exit the vi editor\"><\/li>\n\n\n\n<li>Re-pack the files and copy the modified state.tgz file back to the ESXi system partition with the following commands: cd .. tar czf local.tgz etc tar czf state.tgz local.tgz cp state.tgz \/mnt\/ umount \/mnt <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/copy-state-tgz-back.png\" alt=\"Copy the state.tgz file back to ESXi system partition\"><\/li>\n\n\n\n<li>We\u2019re almost done! Just type <strong>reboot<\/strong> then remove the live CD and wait for ESXi server to restart. After a while, you&#8217;ll get the following screen where you can configure the system by pressing F2. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/vmware-esxi.png\" alt=\"VMware ESXi\"><\/li>\n\n\n\n<li>Just keep the password field blank and you can log into the root account. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/vmware-esxi-login.png\" alt=\"Login to VMware ESXi as root without password\"><\/li>\n\n\n\n<li>Please make sure that you set a new root password and store it confidentially. Do not lose it again. <img decoding=\"async\" src=\"https:\/\/www.top-password.com\/images\/set-esxi-root-password.png\" alt=\"Change VMware ESXi root password\"><\/li>\n<\/ol>\n\n\n\n<p>Now you&#8217;ve successfully reset lost root password on VMware ESXi host. The procedure is a bit complicated so carefully follow the instructions above. Enjoy it!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>How to Reset Forgotten VMware ESXi Root Password Lost or forgot the root password of&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/ale.newby.work\/?p=474\">Read the post<span class=\"screen-reader-text\">VMware root pw reset<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-general","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>VMware root pw reset - ALE @ Newby.Work<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VMware root pw reset - ALE @ Newby.Work\" \/>\n<meta property=\"og:description\" content=\"How to Reset Forgotten VMware ESXi Root Password Lost or forgot the root password of&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:site_name\" content=\"ALE @ Newby.Work\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-08T02:54:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T02:54:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.top-password.com\/images\/try-ubuntu.png\" \/>\n<meta name=\"author\" content=\"chris.newby\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"chris.newby\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"author\":{\"name\":\"chris.newby\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"headline\":\"VMware root pw reset\",\"datePublished\":\"2024-04-08T02:54:04+00:00\",\"dateModified\":\"2024-04-08T02:54:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"wordCount\":532,\"image\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.top-password.com\\\/images\\\/try-ubuntu.png\",\"articleSection\":[\"General\"],\"inLanguage\":\"en-AU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"name\":\"VMware root pw reset - ALE @ Newby.Work\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.top-password.com\\\/images\\\/try-ubuntu.png\",\"datePublished\":\"2024-04-08T02:54:04+00:00\",\"dateModified\":\"2024-04-08T02:54:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ale.newby.work\\\/?p=397\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\",\"url\":\"https:\\\/\\\/www.top-password.com\\\/images\\\/try-ubuntu.png\",\"contentUrl\":\"https:\\\/\\\/www.top-password.com\\\/images\\\/try-ubuntu.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ale.newby.work\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VMware root pw reset\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/\",\"name\":\"ALE @ Newby.Work\",\"description\":\"Phone system things\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ale.newby.work\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\",\"name\":\"chris.newby\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"caption\":\"chris.newby\"},\"sameAs\":[\"https:\\\/\\\/ale.newby.work\"],\"url\":\"https:\\\/\\\/ale.newby.work\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VMware root pw reset - ALE @ Newby.Work","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ale.newby.work\/?p=397","og_locale":"en_US","og_type":"article","og_title":"VMware root pw reset - ALE @ Newby.Work","og_description":"How to Reset Forgotten VMware ESXi Root Password Lost or forgot the root password of&#8230;","og_url":"https:\/\/ale.newby.work\/?p=397","og_site_name":"ALE @ Newby.Work","article_published_time":"2024-04-08T02:54:04+00:00","article_modified_time":"2024-04-08T02:54:06+00:00","og_image":[{"url":"https:\/\/www.top-password.com\/images\/try-ubuntu.png","type":"","width":"","height":""}],"author":"chris.newby","twitter_card":"summary_large_image","twitter_misc":{"Written by":"chris.newby","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ale.newby.work\/?p=397#article","isPartOf":{"@id":"https:\/\/ale.newby.work\/?p=397"},"author":{"name":"chris.newby","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"headline":"VMware root pw reset","datePublished":"2024-04-08T02:54:04+00:00","dateModified":"2024-04-08T02:54:06+00:00","mainEntityOfPage":{"@id":"https:\/\/ale.newby.work\/?p=397"},"wordCount":532,"image":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"thumbnailUrl":"https:\/\/www.top-password.com\/images\/try-ubuntu.png","articleSection":["General"],"inLanguage":"en-AU"},{"@type":"WebPage","@id":"https:\/\/ale.newby.work\/?p=397","url":"https:\/\/ale.newby.work\/?p=397","name":"VMware root pw reset - ALE @ Newby.Work","isPartOf":{"@id":"https:\/\/ale.newby.work\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"image":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"thumbnailUrl":"https:\/\/www.top-password.com\/images\/try-ubuntu.png","datePublished":"2024-04-08T02:54:04+00:00","dateModified":"2024-04-08T02:54:06+00:00","author":{"@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"breadcrumb":{"@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ale.newby.work\/?p=397"]}]},{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/ale.newby.work\/?p=397#primaryimage","url":"https:\/\/www.top-password.com\/images\/try-ubuntu.png","contentUrl":"https:\/\/www.top-password.com\/images\/try-ubuntu.png"},{"@type":"BreadcrumbList","@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ale.newby.work\/"},{"@type":"ListItem","position":2,"name":"VMware root pw reset"}]},{"@type":"WebSite","@id":"https:\/\/ale.newby.work\/#website","url":"https:\/\/ale.newby.work\/","name":"ALE @ Newby.Work","description":"Phone system things","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ale.newby.work\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Person","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027","name":"chris.newby","image":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","caption":"chris.newby"},"sameAs":["https:\/\/ale.newby.work"],"url":"https:\/\/ale.newby.work\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=474"}],"version-history":[{"count":1,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}