LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2011, 06:21 AM   #1
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Rep: Reputation: 0
vmware recovery


My vmware workstation running Fedora-7 has failed to boot after I have issued the command: yum remove libxml2.
When booting, it says: Error 15: File not found. Press any key to continue... and stays there.
I have searched and found that some people have had this problem before, but mine is a bit different because there is no recovery mode in the virtual machine. I am afraid I might loose my files in that virtual machine which fails to boot.
Can you please help me on how I can recover my virtual machine system.
 
Old 10-15-2011, 07:08 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
You've made two errors: removing software while Yum clearly suggests by the amount of dependencies to remove that you shouldn't and running a stale version of Fedora. Unless this installation is not connected to any network, after you've recovered your VM guest, please consider installing the newest version (F16 should be out RSN) or switching to a Linux distribution with a less demanding update regime. That said try to boot the VM guest using an installer CD, chroot into the installed location, ensure network is up and run 'yum install libxml2'. If you can't get network download libxml2 outside of the VM and access it attaching removable USB media (or a fake floppy or CDROM file).
 
Old 10-15-2011, 10:59 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Well in that case you should try booting your machine in single user mode or rescue mode
and when you get a shell to work on
simply install libxml2 through yum or you can wget the package

(well I have not tried this one practically but it might help)

Best of luck
 
1 members found this post helpful.
Old 10-17-2011, 02:31 AM   #4
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
That said try to boot the VM guest using an installer CD
How do I boot the VM guest using an installer CD, I mean the VMWare workstation provide the options of booting from an existing VM and to create a new VM. So when I choose to boot from existing VM, it gives that error(Error 15: File not found). I cant find an option to boot from a live CD.

Quote:
Originally Posted by deep27ak View Post
Well in that case you should try booting your machine in single user mode or rescue mode
I tried to boot from single user mode by adding "single" at end of kernel line in the boot options, but its like it does not allow that because it gives the same error: Error 15: File not found
 
Old 10-17-2011, 02:45 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
well then boot from the installer DVD

as soon as the vmware starts you will get the image which I have attached:

so just enter the boot menu and select the DVDRW option as your first boot device

Then you can enter the rescue mode

and manually install the missing package
Attached Thumbnails
Click image for larger version

Name:	vmware.jpg
Views:	7
Size:	32.3 KB
ID:	8190  
 
1 members found this post helpful.
Old 10-17-2011, 09:18 AM   #6
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Thank you deep27ak, I have been able to boot in rescue mode (i was previously unable to get into boot menu...the menu appears for just a short time). But now when i'm in the rescue mode I am unable to install libxml2 as shown in the attached image.
The 8Gb device sda is where i installed my crashed VM.
How do I make libxml2 to be installed in the directory where I have my vm installed. I tried to mount the sda1 and install libxml2 in the mount directory but i could not succeed. I even did the chroot as unSpawn suggested but i got unlucky!
When I do fdisk -l /dev/sda1, I get: Disk /dev/sda1 doesn't contain a valid partition table
Attached Thumbnails
Click image for larger version

Name:	vm.JPG
Views:	9
Size:	147.1 KB
ID:	8193  

Last edited by manaila; 10-17-2011 at 09:42 AM.
 
Old 10-17-2011, 11:12 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
The VMDK (if you're inside your VM guest) contains two partitions: /dev/sda1 which only contains GRUB and /dev/sda2 which contains a LVM which you enable running 'vgchange -ay' after which 'dmsetup status' shows partitions to mount.
 
Old 10-18-2011, 03:01 AM   #8
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Ok, I think I can see progress. I read this http://www.fedoraforum.org/forum/arc...p/t-64964.html and I have been able to mount the LVM, and I can see all my files in the crashed VM!
I chroot to the directory where LVM is mounted, and the prompt changed to sh-3.2#; in this prompt its like most commands like ls, yum etc. are not known, so I was unable to install the libxml2 package that I had in my crashed vm.
The other thing is that now when booting from live CD, I think the network is not up, although i'm connected on the LAN and vmware still says its connected, its bridged. ifconfig only shows lo no eth0 and there is no routing table shown with the route command.
I tried to configure the network using: ifconfig eth0 192.168.1.2 and it says eth0: unknown interface: no such device.
Please help how do I bring the network up when using the live CD, OR how do I install libxml2 from the available package since i'm now able to get into the crashed vm.
 
Old 10-18-2011, 03:50 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
when you attempt to go into linux rescue

you will be asked regarding the network configuration
 
Old 10-18-2011, 04:53 AM   #10
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Well, I think I have been booting in single-user mode because I appended "single" at end of live cd boot option, but just before the prompt [root@localhost~#], there was a statement saying Welcome to rescue mode... and I hoped maybe I was in a rescue mode. So to arrive to that prompt there was no where I was asked anything about network configuration.
Attached Thumbnails
Click image for larger version

Name:	liveCDBootMenu.JPG
Views:	9
Size:	49.5 KB
ID:	8196  
 
Old 10-18-2011, 05:06 AM   #11
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by manaila View Post
Well, I think I have been booting in single-user mode because I appended "single" at end of live cd boot option, but just before the prompt [root@localhost~#], there was a statement saying Welcome to rescue mode... and I hoped maybe I was in a rescue mode. So to arrive to that prompt there was no where I was asked anything about network configuration.
I have not worked on fedora but in redhat 5.2 it asks like the image shown
I am sure in Fedora as well it should ask regarding network configuration
Attached Thumbnails
Click image for larger version

Name:	linux_rescue_network.png
Views:	11
Size:	9.8 KB
ID:	8197  
 
Old 10-18-2011, 07:05 AM   #12
manaila
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deep27ak View Post
well then boot from the installer DVD
Since I have been booting from the Live CD, I think I will try the installer DVD to see if I get any luck.
http://www.fedoraforum.org/forum/sho...d.php?t=254526
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Combining anti-virus + data recovery + image recovery? littlebigman Linux - Software 8 08-12-2010 02:39 AM
Linux recovery of Windows workstations - using baremetal recovery Reefcrazed Linux - Software 20 01-06-2009 05:15 AM
LXer: How to backup MySQL and recovery Using Zmanda Recovery Manager LXer Syndicated Linux News 0 09-10-2008 04:30 AM
How to recovery the lost files under FC5@vmware UltraSoul Linux - Software 0 01-23-2007 03:54 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration