Solved

Linux Ubuntu 6 Login Workaround needed.

Posted on 2011-09-07
6
233 Views
Last Modified: 2012-08-13
Discovered past IT Admin setup Ubuntu 6 on VMWare virtual box. It was setup to boot to command line login but they left no record of usename/password. I'd rather just reformat/reinstall a newer version, but, there is a working website and database that we cannot lose or backup. I need advice on how to get into this "guest" vm box and ubuntu os. Any help and guidance would be appreciated.
0
Comment
Question by:primeradmin
  • 4
  • 2
6 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 250 total points
ID: 36500638
Easily fixed.

1.  Get on the console and reboot the VM.
2.  When the GRUB boot menu pops up, hit 'e' for edit, goto the kernel line, and add the word 'single' to the end then hit enter (or esc I can't recall).  Go back to the main GRUB menu and hit 'b' on the edited line to boot with those parameters.
3.  Once it boots, login as root then type 'passwd' to reset root's password.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36500641
I recall that VM's might scroll that boot menu too quickly for you to type anything -- there is a setting someplace in the options for each VM to delay some part of the boot process, and I *think* it's listed in milliseconds but it's been a few years...

Either way there is some setting someplace that will allow you to extend that window so you can actually type :)
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36500645
Oh missed a part... what to do after your change your pass.

Since the box is already "down" at this point, I suggest just another reboot to make sure everything is nice and clean.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 21

Expert Comment

by:Papertrip
ID: 36514879
@primeradmin did this solution work for you?
0
 

Assisted Solution

by:primeradmin
primeradmin earned 0 total points
ID: 36516961
Papertrip, while your advice didn't directly solve my issue since some detailed steps were missing that I had to investigate elsewhere, such as pressing 'esc' at the grub screen then selecting the correct 'kernel' line before even being able to use your step of using 'e' to edit, your advice did start me looking in the right direction. Ultimately, I had to use a different scipt line in the kernel command changing 'ro' to 'rw init=/bin/bash' at the end of the line. That said I will award partial points for helping me look for the right direction.

I will be posting a question concerning the fact that although I can now login, I cannot locate the right commands that install or activate a GUI instead of this pain-in-the-butt command line stuff. Everything I've tried, as recommended on several different forums and even the ubuntu site have not worked, a second part fails to start to install gnome or some other GUI. It gets half way then asks if I want to continue then fails to load a series of ip-based services. I've run checks that prove I have working network/internet access but the addresses don't seem to work for the gnome command. I may have to ultimately reinstall or upgrade anyway.

Thanks.
0
 

Author Closing Comment

by:primeradmin
ID: 36541410
Answer provided a direction to go in but not the solution.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
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 clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

813 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

17 Experts available now in Live!

Get 1:1 Help Now