[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xm create error - Unable to allocate memory

  • To: "Glen Eustace" <geustace@xxxxxxxxxxxxxx>
  • From: "Todd Deshane" <deshantm@xxxxxxxxx>
  • Date: Sat, 10 May 2008 23:06:51 -0400
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 10 May 2008 20:07:22 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SRwjHYTi7ygI/PZ98zEwivPna2Fw04Kk+s96OsawOwKa2dAKtmjVcn7K760Bler2RlSTNl5f/M5J4nBjxt6W7feGAdQzQNs85PD/sPW642XI8y2XpMk+iYvNdAX3g/NgFR8yKScTV3/1v6DWnqhFynf9xoGrKYQxM7/bFSB6EwU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi Glen,

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 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:
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?


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.


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.

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.