LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-27-2004, 04:31 AM   #1
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Rep: Reputation: 30
VMware, Linux, Raw DIsk, Win XP problems


I have seen this asked numerous times all over the net and even here as well, but no one seems to have the CORRECT answer to this problem!

1) Windows XP was already installed on hda1
2) Gentoo Linux is now on hda2-4
3) VMware 4.5.x is now setup in Linux
4) VMware CANNOT BOOT WINDOWS XP using "RAW DISK" mode, after grub passes off to XP kernel, I get the Blue Screen of Death and virtual machine reboots!

Some supposed documentation for getting around this is here:
http://www.vmware.com/support/ws4/do...tiboot_ws.html

but this doesn't work. The suggested problem seems to be that when the XP kernel is loading it panics with the new virtual machine hardware detected. For some reason, it BSOD's but it instantly dissapears and I cannot debug the message.

Here are some more links so anyone reading this knows what I'm talking about:
http://www.vmware.com/community/thre...essageID=24876 (see the last post in thread to confirm my problem)
http://www.redhat.com/archives/redha.../msg01846.html (this happens to me if I don't run vmware as ROOT)

I hope the links help you to understand most of my problems with trying to get a RAW DISK to work. No, I don't want to reinstall Windows with the "Virtual Disk" option since all my Windows stuff is configured and setup already - plus sometimes I want to still be able to boot into it for the fast Windows based gaming (fast drivers w/ no emulation of hardware). Hopefully someone has got this working already. I'm sure this thread will be most helpful to new Linux user's trying to switch from Windows to Linux - but who want to keep their original installation intact - in case they dislike linux for one reason or another. Thanks in advance!!!


Kristian Hermansen
 
Old 05-27-2004, 05:38 AM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
The main problem should be the HAL and the IDE drivers, besides the one mentioned in the VMware KB, there is also another generic workaround on win2k/xp for IDE drivers when you change the motherboard(which in fact is similiar to what you're trying to do) which you might want to try, I highly recommend that you backup your winxp partition with Ghost/partimage/dd/whatever before attempting any of this:
Boot into the winxp, grab http://demonbane.org/mergeide.zip, (note these files are for WinXP SP1, if you havent upgraded you can extract them off c:\windows\driver cache\i386\driver.cab )
extract all the .sys files into c:\Windows\System32\drivers and import the reg file.
That should be it, reboot into Linux, launch VMware and see if it helps, if that doesn't it may well be a HAL problem, have you tried the ACPI workaround mentioned in the Vmware KB(though it says version 4.x is not affected)?

Or another thing you can try is save your current hardware profile, then boot with your Windows XP CD in Vmware, and do a repair installation. This way the hardware drivers will be redetected and your settings and program files are still intact, though I'm not 100% whether the old hardware profile is going to be usable. Worth a shot, but as I mentioned before, backup before you do anything else.

Last edited by Demonbane; 05-28-2004 at 04:26 AM.
 
Old 05-27-2004, 08:30 PM   #3
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Demonbane
Boot into the winxp, grab http://demonbane.org/mergeide.zip, (note these files are for WinXP SP1, if you havent upgraded you can extract them off c:\windows\driver cache\i386\driver.cab )
extract all the .sys files into c:\Windows\System32\drivers and import the reg file.
The quoted section above worked!!! FOr anyone else that is having the same problems, try that link above and do what the man says. I was running SP1 so no need to do anything else, worked like a charm after that. I had to make VMware run as ROOT to get it to see my partitions though (because trying to add running user to DISK group failed to prove useful). Anyway, now all I need to do is call Microsoft everytime I switch between VMware XP boots / Native XP boots to reactivate?!?!?! Isn't this the biggest pain in the arse? I called Microsoft four times today just to reactivate Windows for each supposed "hardware" change. Well, I think M$ is violationg their own license agreement since I have NOT changed my physical hardware (virtual hardware does not count and is M$ fault for not detecting otherwise). I hate MScorp, so keep calling them to reactivate and make them angry...

Kristian Hermansen
 
Old 05-28-2004, 04:33 AM   #4
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Glad to hear it helped, unfortunately the activation thing is not something I can help you with, might want to try your luck on Google I'm sure you can find something.
 
Old 05-28-2004, 05:14 PM   #5
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Demonbane
Glad to hear it helped, unfortunately the activation thing is not something I can help you with, might want to try your luck on Google I'm sure you can find something.
Yeah, the problem with hacking the winlogon.exe for product deactivation is that when SP2 and other updates come out, they usually run a hash check on the file to make sure it was not modified. If it is found to be modified, you can't download the updates. Anyways with that said, there is a tool out there to do it that works on XP up to SP1, but Google won't help you locate the file. It is named "wpakill.exe" and you can find it by "Hasta La Vista" - if you have any idea what I mean by that ;-P For other people viewing this post who need help, ask your local techie about "Hasta La Vista" and they wil point you in the right direction...


Kristian Hermansen
 
Old 07-15-2004, 03:33 AM   #6
duncs
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by Demonbane
Boot into the winxp, grab http://demonbane.org/mergeide.zip, (note these files are for WinXP SP1, if you havent upgraded you can extract them off c:\windows\driver cache\i386\driver.cab )
extract all the .sys files into c:\Windows\System32\drivers and import the reg file.
The zip file no longer exists (not surprised since this was posted so long ago) and i am on SP2, but i am suffering from the same problem. What can I do to fix it?

Thanks

Duncs
 
Old 07-15-2004, 05:17 AM   #7
duncs
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by duncs
The zip file no longer exists (not surprised since this was posted so long ago) and i am on SP2, but i am suffering from the same problem. What can I do to fix it?

Thanks

Duncs
Just found this on the MS website (bottom of page) - about to try it and see what happens... Seems to be essentially the same instructions as above, but with the reg file stuff

http://support.microsoft.com/default...b;en-us;314082
 
Old 07-15-2004, 10:16 AM   #8
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
if you still want it you can get it here:
http://demonbane.org/files/mergeide.zip

Last edited by Demonbane; 07-15-2004 at 10:42 PM.
 
Old 08-18-2004, 02:18 PM   #9
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Rep: Reputation: 15
Quote:
Originally posted by Demonbane
.....Boot into the winxp, grab http://demonbane.org/mergeide.zip, (note these files are for WinXP SP1, if you havent upgraded you can extract them off c:\windows\driver cache\i386\driver.cab )
extract all the .sys files into c:\Windows\System32\drivers and import the reg file
I'm having this problem to and I'm trying what you say. I don't have SP1 so I copied the *.sys files from c:\windows\driver cache\i386\driver.cab. Now you say I should "import the reg file." Which reg file are you talking about?
 
Old 08-18-2004, 03:44 PM   #10
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
there should be a file in there with a *.reg extension, and a icon with a bunch of blue blocks
thats a registry file. double-click it and reboot to import it.
 
Old 04-17-2005, 05:29 PM   #11
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Original Poster
Rep: Reputation: 30
mostly @ demonbabe:

Since upgrading to XP SP2, the above hack does not seem to work 100% anymore. I get driver errors in Windows on bootup everytime, saying that the device driver detection had errors and failed to initialize. I am assuming that this is because the files in the mergeide.zip file are <= SP1 version hacks. I mean, I can still boot up Windows RAW within Linux under VMware -- but it displays the hardware detection error on every bootup and randomly crashes. I am also using VMware 5.x now, so maybe this is the problem? Any help is appreciated...

Kristian Hermansen
 
Old 04-17-2005, 10:52 PM   #12
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Its best to use a seperate hard drive for Windows instead of having both Windows and Linux on one hard drive when using the raw disk option in VMware.

Assuming you have two seperate hard drives and both has their own bootloader. One for Linux that runs VMware and the other is Windows. First boot into Windows and setup two different hardware setups. One for normal operation and other for VMware. In VMware, you will have to select what hardware setup you want. Select the one that you made for VMware. Next, Windows will automatically find out what it needs to run the setup for VMware. Every time you want to use Windows make sure you pick the right one or else you may have to format Windows and re-install it. VMware has documentation about this and it is more thorough than mine.

Below is the link that I was explaining about even though its for version 4.5. It should work for all versions.
http://www.vmware.com/support/ws45/d...s.html#1046324
 
Old 04-18-2005, 01:22 AM   #13
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Original Poster
Rep: Reputation: 30
I tried this originally, but demonbabe's hack is much simpler! I used it for very long time without a hitch until XP SP2 + VMware 5.x. Windows always tries to auto-detect your new hardware -- so setting up a new profile is not that important to me. What makes demonbabe's hack so special is that you don't need to set up hardware profiles, and it is actually more reliable. Of course, Windows product activation is a pain -- so I reverse engineered a portion of the key validation algorithm that allows me to produce valid "phone-in" authentication strings on every bootup -- and now it is entirely automated. It just injects the auth-info to the WPA system so that it won't ask me anymore. The validation is derived from various hardware variables which obvously change when goign to VMware, and then again, back into Windows on the physical hardware. So WPA and hardware profiles are not necessary it seems...where's demon babe???

Kristian Hermansen
 
  


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
Reading raw hard disk sectors villie Programming 4 05-13-2004 12:18 AM
need <free> disk partitioner win & linux square_eyes Linux - Software 1 04-25-2004 07:44 AM
Booting raw XP in vmware under gentoo, grub Error 17 sharon42 Linux - Software 3 01-08-2004 01:03 PM
The answer to SuSE 7.1 and vmware raw disk with XP Professional geminyn_1981 Linux - Newbie 0 03-11-2003 06:29 PM
Corel Linux and Win-Doze on same disk C++freak Linux - Software 11 04-29-2002 03:18 PM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration