Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Preinstalled WinXP with qemu - a no-go
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
quark
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 102
Location: Hessen, Germany

PostPosted: Fri Jul 20, 2007 8:05 pm    Post subject: Preinstalled WinXP with qemu - a no-go Reply with quote

Hi all,

I have two HP Compaq laptops with preinstalled WinXP Professional. In one, I let the Windows remain on the drive, whereas I removed it from the other. Both have Gentoo as the main OS, of course. As I never boot to Windows, but it could be convenient from time to time use some Windows software, I tried using qemu for this.

I read somewhere that it would be possible to boot into the preinstalled Windows using qemu and tried this with the first piece. At least I couldn't figure how it should work - I got to grub and tried to boot into Windows ending up with a black screen and a halted virtual system.

For the second, I have installed Windows XP from the recovery disks to the virtual machine some 10 times (it takes for ages to do it even once). Some times the recovery failed, sometimes it worked flawlessly. However, none of the times the installed system was usable. I even used gpart to recreate the partition table once, finding the recovery partition installed, but could not install the system from there. Another time I got nearly full install of the system but with some critical directories and files missing. This seems to give some hope for success but the 10 tries I've made were enough for me. At least for a while.

To conclude, using preinstalled Windows XP professional from existing hd partition seems to be at least very difficult, and installing Windows XP from the recovery disks to qemu virtual machine does not work.

I am amazed that they really charge money for this software which one doesn't want in the first place and can not use if would like to give it a shot once or twice. That's the way to become rich, I suppose (charging for nothing, I mean).


If someone has succeeded in which I failed, I wouldn't mind hearing how to try once (or a couple of times) more.
_________________
HP Compaq nx9420 || Intel Core2 CPU T7200 @ 2GHz | 2Gb RAM | 120Gb HD
HP Compaq nc2400 || Intel Core Duo CPU U2500 @ 1.2 GHz | 2Gb RAM | 120Gb HD
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Jul 20, 2007 10:03 pm    Post subject: Reply with quote

What do you mean - system was not usable (after installation finally succeeded)?

It refused to boot? Halted? STOPped? Incomplete installation?

win2k needs -win2k-hack (maybe winXP too? not sure, I've never had problems with xp under qemu)
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
TruGuce
n00b
n00b


Joined: 02 Jul 2007
Posts: 4
Location: California

PostPosted: Sat Jul 21, 2007 6:04 pm    Post subject: Reply with quote

As far as booting a pre installed windows I just added config lines to my grub.conf. This is my exact conf file. I have windows on my master drive and gentoo on the slave. I have never had any problems with that.

Code:
File:/boot/grub/grub.conf
   default 0
   timeout 5
   splashimage=(hd1,0)/boot/grub/splash.xpm.gz
   title=Gentoo
   root (hd1,0)
   kernel /boot/kernel-genkernel-x86-2.6.21-gentoo-r4 root=/dev/ram0 real_root=/dev/hda3 udev
   initrd /boot/initramfs-genkernel-x86-2.6.21-gentoo-r4

   title=Windows XP
   rootnoverify (hd0,0)
   makeactive
   chainloader +1


Also on my Sony Laptop I use vmware-server and had no problem installing from recovery disk. Just another option
Back to top
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1324
Location: London

PostPosted: Sat Jul 21, 2007 6:18 pm    Post subject: Reply with quote

quark - I wouldn't expect it to work. Grab an actual xp CD/iso rather than a recovery disk (presume you're licensed, not that it's my job to enforce that...), and install. By the way, use kqemu with qemu if you aren't already, the speed improvement is more than noticable.

Bear in mind qemu emulates certain hardware, which almost certainly won't match your physical hardware. So what you're attempting is roughly the same as ripping a hard drive out of one PC and plugging it into a non-identical machine and expecting XP to boot. Maybe you could fudge drivers and maybe replace the HAL if necessary (off the top of my head qemu doesn't support ACPI properly, or at least didn't in 0.8.1)
Back to top
View user's profile Send private message
quark
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 102
Location: Hessen, Germany

PostPosted: Wed Jul 25, 2007 8:55 pm    Post subject: Reply with quote

Thanks for all the replies.

smerf wrote:
What do you mean - system was not usable (after installation finally succeeded)?

It refused to boot? Halted? STOPped? Incomplete installation?

win2k needs -win2k-hack (maybe winXP too? not sure, I've never had problems with xp under qemu)

Installation program said everything went fine, but the install itself was not usable. It either refused to boot or was actually incomplete.

TruGuce wrote:
As far as booting a pre installed windows I just added config lines to my grub.conf.

Thanks for trying to help. I am (of course) able to use dual boot, but it doesn't work inside Gentoo with qemu for some reason.

drwook wrote:
I wouldn't expect it to work. Grab an actual xp CD/iso rather than a recovery disk (presume you're licensed, not that it's my job to enforce that...), and install. By the way, use kqemu with qemu if you aren't already, the speed improvement is more than noticable.

I am using kqemu and would install WinXP from the installation disks if they would've been provided with the laptops. Nowadays, however, MS seems to prefer these unusable recovery systems. I do have the licenses purchased with the machines.

In the first place, I just wanted to check whether qemu would be able to use the recovery disks which obviously is not possible. It would have been most convenient in my opinion.
_________________
HP Compaq nx9420 || Intel Core2 CPU T7200 @ 2GHz | 2Gb RAM | 120Gb HD
HP Compaq nc2400 || Intel Core Duo CPU U2500 @ 1.2 GHz | 2Gb RAM | 120Gb HD
Back to top
View user's profile Send private message
quark
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 102
Location: Hessen, Germany

PostPosted: Wed Jul 25, 2007 10:27 pm    Post subject: Reply with quote

TruGuce wrote:
Also on my Sony Laptop I use vmware-server and had no problem installing from recovery disk. Just another option

I somehow missed this first. I'll give it a shot. Thanks for the information.
_________________
HP Compaq nx9420 || Intel Core2 CPU T7200 @ 2GHz | 2Gb RAM | 120Gb HD
HP Compaq nc2400 || Intel Core Duo CPU U2500 @ 1.2 GHz | 2Gb RAM | 120Gb HD
Back to top
View user's profile Send private message
quark
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 102
Location: Hessen, Germany

PostPosted: Sun Jul 29, 2007 10:34 pm    Post subject: Reply with quote

Actually... I didn't try the vmware-server package, because I forgot about it, and installed XP from an ISO image with SP2. I couldn't use my product id during the installation, but am pretty sure that I got it changed afterwards although the activation manager told me that my real, never-used key is invalid.

Probably I'll also try the vmware-server later on.
_________________
HP Compaq nx9420 || Intel Core2 CPU T7200 @ 2GHz | 2Gb RAM | 120Gb HD
HP Compaq nc2400 || Intel Core Duo CPU U2500 @ 1.2 GHz | 2Gb RAM | 120Gb HD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum