Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 12-19-2008, 02:19 AM   #1
LQ Newbie
Registered: Oct 2008
Posts: 12

Rep: Reputation: 0
Xen: how to add VCPUs to windows guest

Hi all,

I have the latest RHEL 5.2 using XEN virtualization. I created several HVM windows w2k3 guests.

The issue is that I see only one CPU for each w2k3 guest. I configured the guest properly using parameter vcpus = 2

When i use xm I see that VCPUs are already allocated but the second one is paused:

[root@baranec xen]# xm vcpu-list
Name ID VCPUs CPU State Time(s) CPU Affinity
Domain-0 0 0 0 -b- 6110.4 0
Domain-0 0 1 1 -b- 415.1 1
Domain-0 0 2 2 -b- 527.8 2
Domain-0 0 3 3 r-- 790.4 3
Domain-0 0 4 4 -b- 368.4 4
Domain-0 0 5 5 -b- 454.9 5
Domain-0 0 6 6 -b- 370.1 6
Domain-0 0 7 7 -b- 273.9 7
cellmgr 21 0 7 -b- 2980.5 any cpu
cellmgr 21 1 - --p 0.0 any cpu
rohac 22 0 5 -b- 591.7 any cpu
rohac 22 1 - --p 0.0 any cpu

Maybe is the issue on side of W2k3 server.

Could you help me on this if there is some workaround?

Thank you very much.

Old 01-09-2009, 03:53 AM   #2
LQ Newbie
Registered: Oct 2008
Posts: 12

Original Poster
Rep: Reputation: 0

Hi all,

I find the answer!

The problem is that official Red Hat Virtualization Guide recommends to select option Standard PC during installation of W2K3 guest. Windows than use HAL for common PC architecture and doesn't support multiple CPUs even you add them to guest by XEN.

To solve this issue you have to change HAL type and kernel to MPS Multiprocessor PC.

There is several way how to change it but most suitable way is to reinstall or remove HAL drivers.

How to change HAL by standard way on W2K3 guest:

- go to W2K3 guest's Control Panel / System / Device Manager / Computer and click on Standard PC item
- select Reinstall drivers to change HAL
- select MPS Multiprocessor PC
- restart guest

BUT I was not able to use this way because Windows reinstallation driver wizard didn't allow me to change drivers. Wizard tells me that he not find any better drivers and current drivers are working properly!!! (:-(o)

Finally I have to copy driver files manually and rename them:

- copy MPS files: halmps.dll, ntkrnlmp.exe and ntkrpamp.exe to <windows>\system32 folder
- rename MPS files using names of Standard PC drivers (replace them):
halmps.dll --> hal.dll
ntkrnlmp.exe --> ntoskrnl.exe
ntkrpamp.exe --> ntkrnlpa.exe
- restart the guest
- after restart Windows detects CPUs and compete installation of new hardware
- after the second restart everything goes OK

Good luck,
Old 01-09-2009, 09:31 AM   #3
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
How diferent is XEN virtualization from VMWARE?


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
Trouble viewing Windows guest on xen ibkoxls Linux - Software 1 11-07-2008 06:50 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 07:11 AM
Xen 3.02 Suse 10.1 Windows Guest Anybody yet 1kyle SUSE / openSUSE 7 01-10-2007 05:53 AM
Can I use Gnome under Xen Guest OS? SquishyMarbles Linux - Software 1 09-07-2006 08:50 PM
How to run RHEL 4 as guest in Xen(SLES 10 XEN) darshanbv Linux - Software 1 06-26-2006 11:21 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration