There is not an error number. It says,
-----------------
"A problem has been detected and Windows has been shut down to prevent damage 
to your computer.
If this is the first time seeing this stop error screen, restart your computer. 
If this screen appears again
follow these steps:

Check for viruses, remove newly installed hard drives or controllers. Run 
CHKDSK /F

Technical information:
-----------------

Then it goes black and reboots. All of this happens very quickly so I had to do 
a screen video capture and edit it in
Shotcut to even be able to read it.

There are no virtualization tools installed in the guest OS.

Virtmanager says
Hypervisor is KVM
Architecture is i686
Emulator is /usr/bin/qemu-system-i386
Chipset is i440FX
Firmware is BIOS
CPU model is qemu32
Disk is IDE0
Network is e1000 br0

Looks like the qemu version is 8.2.6 which is provided by SUSE.

If I create a machine with OS=Win7 then I can get the q35 machine type you 
suggested.
For WinXP it defaults to the i440. However, it seems to make no difference in 
the BSOD
no matter the machine/chipset type, nor safe mode vs normal boot.

The controller type listed when inside the booted XP under virtualbox is:

Intel(R) 82371AB/EB PCI Bus Master IDE Controller

I do not wish to reinstall XP or any of my other legacy VM's from scratch as 
they are all configured for
various use cases and recreating them is simply not a feasible approach. I may 
have to just go with
VirtualBox for now but being dependent on Oracle's whims doesn't give me the 
warm fuzzies either.
I suspect this is just some little one line code change issue but I haven't 
been able to sort it out.













________________________________
From: Frantisek Rysanek <frantisek.rysa...@post.cz>
Sent: Wednesday, September 11, 2024 7:01 AM
To: qemu-discuss@nongnu.org <qemu-discuss@nongnu.org>
Cc: Tony Graham <tgraham...@outlook.com>
Subject: Re: Windows XP support

My two cents worth at this stage:

The fact that you get as far as the BSOD means to me, that your VM
successfully goes through the early stages of legacy BIOS boot: the
BIOS hands over to the NT bootloader in the MBR, not sure if the next
stage in the NFTS boot sector is used, definitely the ntldr.exe is
getting loaded, and then something breaks.
This means to me that you're using the SeaBIOS that comes with QEMU,
and that it probably works fine up to this point.

What numerical code (and perhaps message) does the BSOD tell you?
Chances are, that you merely have a mismatch of the disk controller
driver for your boot volume. In your guest image, you may have a
driver that matches VMware but doesn't work in Qemu. In that case,
the earlier boot stages work, but once the kernel loads a native
driver for the expected disk controller and tries to access the boot
disk, it cannot find the boot disk anymore.
There are other possible causes for a BSOD though.

To map the disk image, I'd suggest to start with
-drive file=/path/file.img,if=ide
or
-drive file=/path/file.img,if=ide,format=<what_have_you>
Apparently QCOW2 is the default image format assumed.
The IDE controller driver appears to be always present in the NT
kernel (at least it was during the XP era).

It might be interesting to know, what "machine" you are using in
QEMU. If you're under Linux, how about
-machine q35,accel=kvm
See also
-machine help
(if memory serves)
The q35 "machine" (emulated Intel chipset) probably does have an
IO-APIC, unlike the (default?) more primitive i440.

Also "-vga vmware" might be appropriate (possibly irrelevant though).

If these are false clues, next up for me would be some mischief in
ACPI (between SeaBIOS and your existing install of XP, perhaps its
HAL). I seem to recall that there was a time when XP worked in QEMU
and Win7 did not, and then it flipped - and the problem was somewhere
in ACPI compatibility.
Have you tried installing XP from scratch inside the VM ?

What version of QEMU are you trying to use?

Frank

. . . . . . . . . . . . . . .
From:   Tony Graham <tgraham...@outlook.com>
To:     "qemu-discuss@nongnu.org" <qemu-discuss@nongnu.org>
Subject:        Windows XP support
Date sent:      Tue, 10 Sep 2024 19:37:56 +0000

>
> All, I am desperately trying to wean off of VMware.
>
> As a test I have been trying to port a VMware Windows XP
> guest image over to qemu. I have gone through the process of
> converting
> the disk image to qcow2.
>
> The machine starts to boot under qemu but BSOD's, even with 'safe
> mode'.
>
> Using the same image under VirtualBox I can boot it just fine as long
> as I select 'enable I/O APIC' in the system settings. As there is no
> direct 1:1 settings between VirtualBox and qemu I am at a loss as to
> where the issue lies.
>
> Any tips on getting this running under qwemu would be greatly
> appreciated. Keep in mind I am launching and configuring the
> Machine presently via virt-manager as I am not yet a qemu command line
> guru.
>
> Thanks.


Reply via email to