On Sat, May 10, 2008 at 10:52 PM, Glen Eustace <
geustace@xxxxxxxxxxxxxx> wrote:
I have had reasonable success with para-virtualised domUs and so tried my first fully virtualised domU today. I am hoping to migrate a Win2k3 server into my Xen environment.
I am not getting very far as I get the following when trying to create the DomU. I have tied various values for 'memory' but none make any difference. The server is running Linux version 2.6.21.7-3.fc8xen on a 64-bit host. Any help would be much appreciated.
xm create /etc/xen/agree-20
Using config file "/etc/xen/agree-20".
Error: (12, 'Cannot allocate memory')
Did you notice the cannot allocate memory error? do you have enough free memory?
Also some suggestions inline below.
The config file is;
name = "agree-20"
device_model = "/usr/lib64/xen/bin/qemu-dm"
change this kernel= line to:
bootloader=/usr/lib64/xen/boot/hvmloade
I put lib64, it might just be lib, but since you said you are running
64bit that would probably be the way to go.
kernel = "/usr/lib/xen/boot/hvmloader"
builder = "hvm"
memory = 512
vcpus = 1
remove this bootloader line
bootloader = "/usr/bin/pygrub"
>
>
>
sdl = 0
vnc = 1
vncunused = 1
disk = [ "tap:aio:/var/lib/VirtualMachines/agree-20.img,hda,w" ]
vif = [ 'type=ioemu, bridge=xenbr0' ]
why do you have both of these?
apic=1
acpi=1
I would consider disabling them (comment them with # if things don't work, you can always add them in later)
I would also consider not have these last two unless you need them too.
I don't have a lot of experience with windows, especially 2k3, but the suggestions above should at least get
you farther and then the windows guest users can help even more if needed or you could search:
xen.markmail.org for more suggestions as well.
pae=1
serial = "pty" # enable serial console
[agree-26]xen: xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1372 4 r----- 2503.3
agree-11 13 512 2 -b---- 1938.8
agree-12 18 128 1 -b---- 253.7
agree-15 10 1024 2 -b---- 812.6
agree-29 17 128 1 -b---- 413.0
agree-3 16 128 1 -b---- 223.9
agree-30 15 256 1 -b---- 289.6
agree-31 14 256 1 -b---- 721.0
agree-32 12 128 1 -b---- 457.1
Try running xm top to see if you have enough RAM to add another one,
you could consider giving some guests less RAM if you don't have enough.
Regards,
Todd