MyComputingArt (circa 1993)

Mon, 26 Nov 2007

Ubuntu Dapper Drake 6.06 amd64 and Windows XP in Xen 3.0

I am coming from a bloody week of wrestling against packages, bugs and "make world"s trying to run Xen in Ubuntu 6.06 amd64 on an AM2 3800+ and to make a Windows XP Pro domU.
I searched on the web some resources that would explain how to run Windows on Xen and I found some very good tutorial that unfortunately don't fit exactly my configuration and my purpose. These are the sites I took as a basis for my setup:


These are all the steps I did and the problems I encountered during this Calvary :-) (I come from Windows with a little linux/unix background):
Note: All the shell commands are executed as root.

Now I rebooted and at grub menu I chose Xen 3.0 / XenLinux 2.6, and I logged in exactly as I did before in Ubuntu. I got no errors, so I checked if Xen was running:

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      995     2 r-----   107.5
dom0 (Xen) was running and using 1 GB of memory.

To run Windows from Xen using Pacifica (SVM) hardware virtualization, first check if the cpu supports it and if it's enabled:

# cat /proc/cpuinfo | grep svm
flags           : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
flags           : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
# xm dmesg | grep SVM
(XEN) AMD SVM Extension is enabled for cpu 0.
(XEN) AMD SVM Extension is enabled for cpu 1.

These are the steps I did to create a Windows XP domU domain:

Windows running (116k, link 500k)

Troubleshooting

Here are some problems I encountered and the relative solutions, where available.

[/linux] permanent link


Powered by Blosxom.