Resetting Password in Virtualized Xubuntu Under VMWare Fusion

Posted on 2011-10-04
Last Modified: 2012-05-12
I use VMWare Fusion 3.1.2 on my MacBook (running OS X 10.6.8). Many months ago I created a virtual machine running Xubuntu 10.10. I have not used it in a long time and now I cannot remember the password. The VM was suspended, so I was able to restart it w/o being prompted to log in and I can get to a command prompt. But I cannot do anything that requires sudo b/c I don't remember the PW.

Is there some way I can reset the PW on this VM?
Question by:anuneznyc
    LVL 15

    Expert Comment

    Can you access Single User Mode?
    LVL 21

    Expert Comment

    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    How to reset your password in Ubuntu
    LVL 30

    Accepted Solution


    You can boot your ubuntu from the install image or the live CD you can download from ubuntu site.

    Then follow this procedure:
    - Indicate the .iso image file as the CD and boot your VM from the CD.
    - Boot from the Live CD
    - Find your boot partition using fdisk -l command and mount it to a directory
    - Use chroot to the new path and now your / is set to the mounded partition.
    - Now you can use the passwd command to change your passwd.

    Here are detailed steps and screenshots from this operation:



    Author Comment

    Was not able to access single-user mode or the GRUB menu from within this virtual machine.

    KeremE, your instructions booting from Xubuntu CD worked. Thanks also for the link with the nice clear screenshots. That made the process completely painless.
    LVL 21

    Expert Comment

    Was not able to access single-user mode or the GRUB menu from within this virtual machine.

    Then you didn't read the instructions properly.

    While the Live CD is a valid option, the overhead required to do it that way doesn't really make it worth it vs. the other options that were suggested.

    hanccocka and I should have at least got Assisted Solution for this.

    Author Comment

    I read the instructions just fine. Maybe you didn't read my original post? This is Xubuntu virtualized under VMWare Fusion. I appreciate you pointing me in the right direction, but you and hanccocka's links are for regular installs, NOT for virtualized installls. I tried at least 10 different times to access the GRUB menu from within VMWare and was not able to do so. Maybe I was doing something wrong, but your links didn't help my particular situation. Hence why I used KeremE's suggestion which worked perfectly to successfully resolve my problem and that's why he got all the points.


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
    Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now