LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2008, 04:00 AM   #1
Orlavid
LQ Newbie
 
Registered: Apr 2008
Location: Dublin
Distribution: Red Hat EL5 and Ubuntu
Posts: 2

Rep: Reputation: 0
Unhappy VMWare hanging on Chainloader


I have a single partitioned disk with Windows loaded on Partition 1 and Red Hat loaded on Partition 2. As with many people I need Windows for certain functions, I loaded VMware and it works with a new install on a Virtual disk, I've checked this with 2 different OS's, (Windows and Linux), however when I try and boot from my existing Windows partition, GRUB loads normally, I select the Windows operating system and then I get a hang, with the screen showing rootnoverify (hd0,0) Chainloader +1. So it loads GRUB OK but when I select Windows it hangs. I've tried leaving it for in excess of an hour, but no change.

Its not an obvious problem with GRUB. GRUB works when doing a normal dual boot into Windows instead of Linux, windows loads fine. I have also booted from a GPARTED CD no problems (booted from first MBR to check that there wasn't a dud entry on my drive. The issue only occurs when I try and load Windows whilst in VMware in LINUX.

I don't believe it to be a VMWARE problem, as I have tried VMware Workstation, VMware Server and VirtualBox. I get the same error (Identical) regardless of the product used. Thats why I think this is Linux related.

I have loaded generic drivers for the IDE disk in Windows, just in case it can't read the disk, but I don't even think I'm getting this far in the boot process.

I know I shouldn't, but I'm running VMware from root, just in case its an access problem, so this should not be the cause.

Windows is unmounted before I try to load in VMware.

I only have 2 partitions, hd0,0 is Windows XP Pro, hd0,1 is Red Hat Enterprice Linux 5.

I have surfed the net for nearly a week and I am dead in the water on this one. Any help would be appreciated.
 
Old 04-15-2008, 03:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Three remarks, no direct answer, sorry. I remember trying to boot some Windows partition from QEmu that it needed some tweaks, all not related to GNU/Linux, could be that. Then there's a procedure commonly used in forensics to load the OS but it requires carving the partition to file, convert into a VMDK using a QEmu tool and using an on-line tool for building a VMX for it. Finally I'm wondering how far you get into the boot process. If you can reach F8 to enable Windows boot log, enable VMware debug mode and disable accelleration etc, etc and check your VMware logging and together that may hold clues.

Last edited by unSpawn; 04-16-2008 at 07:08 AM. Reason: edit-before-merge
 
Old 04-16-2008, 07:17 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It seems to be a common feature of all virtualization software. First you install the OS which will be the host domain, then you install the virtualization software, then set up domains for guest OSs and install them each to their respective guest domain.

I have yet to find instructions detailing how to set up virtualization to boot up already installed OSs in guest domains.
 
Old 04-25-2008, 04:48 PM   #4
wan-geek
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
I'm seeing exactly the same behavior. Dual-booting under Grub works GREAT with -0- problems. I boot Gentoo, fire up vmware server, boot winxp (which was previously installed physically on the disk) and end up with:

Booting 'Windows XP'
rootnoverify (hd0,0)
makeactive
chainloader +1


and here it sits. Was running into the same behavior under lilo as well...so it doesn't seem to be a boot manager issue. Lilo handled dual-boot equally as well as Grub...successful every time.

Any thoughts?

-Chris
 
Old 04-25-2008, 06:16 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The loaders use "raw" BIOS calls (INT 13 principally) to determine where to load the latter stage files from. The virtualizer would be intercepting all this - it's view of what is the first/boot disk will be quite different to what it allows the guest to see. You would never be able to see the "real" hd0 - unless the virtualiser/hipervisor chooses to allow it somehow.

Just guessing of course ...
 
Old 04-25-2008, 06:25 PM   #6
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
I am trying to under this thread ...

You have a Windows (installed) partition.
You have a Linux (installed) partition.

You have installed Vmware in Linux.
You have created/installed a Windows virtual machine that works.
You have created/installed a Linux virtual machine that works.


You want the Grub boot loader within the Vmware Linux virtual drive to load your "real" Windows partition?

I am not getting the part on how you think Vmware can load a "real" partition instead of a virtual machine drive.
 
Old 04-25-2008, 06:37 PM   #7
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
I am trying to under this thread ...

You have a Windows (installed) partition.
You have a Linux (installed) partition.

You have installed Vmware in Linux.
You have created/installed a Windows virtual machine that works.
You have created/installed a Linux virtual machine that works.


You want the Grub boot loader within the Vmware Linux virtual drive to load your "real" Windows partition?

I am not getting the part on how you think Vmware can load a "real" partition instead of a virtual machine drive.
 
Old 04-28-2008, 06:42 AM   #8
Orlavid
LQ Newbie
 
Registered: Apr 2008
Location: Dublin
Distribution: Red Hat EL5 and Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
Follow normal guide (many available on google) for installing and preparing machine. If you get the hang on chainloader +1 prompt, these are a couple of tweaks that got this working for me.

Linux

Double check your account has permission to read and write to "disk"
Make sure udev allows correct access to the group. Edit /etc/udev/rules.d/50-udev.rules and change SUBSYSTEM=="block" to SUBSYSTEM=="block", GROUP="disk", MODE="0660"

Setup the Virtual Machine as normal and I think these following steps are required if you have a SATA machine.

Edit the vmdk file for the virtual machine you created and change the following:
ddb.geometry.biosCylinders = "1024"
ddb.geometry.biosHeads = "16"
ddb.geometry.biosSectors = "63"
ddb.adapterType = "ide"
 
Old 04-29-2008, 12:01 AM   #9
wan-geek
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
I ended up downloading VMWare's free "image" creation utility. (the exact name escapes me at the moment). I don't care enough about running windows to have this working the way I'd prefer....I just needed to get the silly machine online.

The vmware utility builds an image file of the running OS. The allowed me to boot the system via a real "VM image" rather than futzing with the junk on the physical hard-drive.

Problem solved. Now I can finally whack this partition and get my space back. )

Thanks for all the suggestions and tips everyone.

Cheers,
-Chris
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux with a windows xp as an existing OS tuffsach Linux - Newbie 3 08-31-2007 06:17 AM
Loading existing windows partition with vmware not working 00yahoo Ubuntu 0 03-26-2007 09:07 AM
Windows XP and Fedora Linux co-existing GNVJayprakash Fedora 1 03-18-2007 06:26 AM
Running Existing Windows Install on VMWare 07mackenzie Linux - Software 1 12-04-2006 11:06 PM
Run an existing Windows Partition in Linux?? wedgea18 Linux - Software 2 11-17-2006 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:37 PM.

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
Open Source Consulting | Domain Registration