SMP on a Windows XP guest without a reinstall?

Discussions about using Windows guests in VirtualBox.
Post Reply
graysky
Posts: 58
Joined: 14. Apr 2009, 22:44
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: WIndowsXP, Linux64

SMP on a Windows XP guest without a reinstall?

Post by graysky »

I just updated my Linux host to VB 3.0 which has support for SMP. I noticed that despite enabling this option (I have a quad core chip and have enabled all 4 cores in the virtual machine), my Windows XP VM only shows one core in its task manager. Does one have reinstall XP to the VM once SMP is enabled for the guest OS to detect it or is there a trick to getting the four cores to run in the guest without a reinstall?

Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: SMP on a Windows XP guest without a reinstall?

Post by Perryg »

This is rather a touchy subject in Windows. You need to install the SMP kernel in Windows to make use of the SMP function. You also must have I/O-APIC on as well as have hardware-v turned on in the bios.
Toitoine
Posts: 24
Joined: 4. Nov 2007, 20:43

Re: SMP on a Windows XP guest without a reinstall?

Post by Toitoine »

Hi,

In this howto, it is explained how to add a boot menu entry with the selection of the NT kernel

http://forums.virtualbox.org/viewtopic.php?f=2&t=9697

I've sucessfully boot XP in multiprocessor ACPI mode with that.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: SMP on a Windows XP guest without a reinstall?

Post by Sasquatch »

When I upgraded my PC with a new processor, from single to dual core, I didn't need to change anything, Windows detected the new CPU directly and installed the SMP kernel without question. After a reboot, I had two cores available.
However, in this case, the CPU itself doesn't change, only the amount of cores. In that case, you need to change the kernel like Perry said. Open Device Manager and expand the Computer item. There you should see something like "ACPI Uniprocessor PC" or something. Update it's driver and say you want to manually choose one. You should now be able to pick the SMP driver for it. See the attached screenshots. It should work after this. I haven't, and can't, test this, as I don't have VB 3.0 installed yet, and have compatible hardware.
pick from list
pick from list
screenshot9.png (27.46 KiB) Viewed 19608 times
pick one manually
pick one manually
screenshot10.png (29.6 KiB) Viewed 19591 times
select Multiprocessor
select Multiprocessor
screenshot11.png (32.67 KiB) Viewed 19595 times
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
tlu
Posts: 54
Joined: 25. Jul 2007, 12:21

Re: SMP on a Windows XP guest without a reinstall?

Post by tlu »

Sasquatch wrote: Open Device Manager and expand the Computer item. There you should see something like "ACPI Uniprocessor PC" or something. Update it's driver and say you want to manually choose one. You should now be able to pick the SMP driver for it.
This only applies to XP Pro. XP Home officially doesn't support multiprocessor systems. You can enable multiprocessor support by using this approach, though. It works for me.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: SMP on a Windows XP guest without a reinstall?

Post by Sasquatch »

Right, I forgot about the crippled XP Home.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
borisprochazka
Posts: 4
Joined: 28. Sep 2010, 10:54
Primary OS: openSUSE
VBox Version: OSE Debian
Guest OSses: WinXp Win2003R2 Suse

Re: SMP on a Windows XP guest without a reinstall?

Post by borisprochazka »

Thanks for the nice description of how to get XP guest to use more then one CPU in VB, My problem is only that I don't get the "ACPI Multiprocessor PC" selection in the "Hardware Update Wizard". I only get "Advanced Configuration and Power Interface (ACPI) PC" (current) and "Standard PC" selections. Yes it's a WinXP Professional with SP3 and all the latest patches. Does any one have a clue on how to install the SMP kernel? I have the same problem with a Win2003R2 server.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: SMP on a Windows XP guest without a reinstall?

Post by fixedwheel »

borisprochazka wrote:Does any one have a clue on how to install the SMP kernel?
do a search for HALu.zip => http://www.google.com/#&q=halu.zip+site ... ualbox.org
Post Reply