WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Error: (12, 'Cannot allocate memory')

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Error: (12, 'Cannot allocate memory')
From: Barrow H Kwan <bhkwan@xxxxxxxxxxxxxxxx>
Date: Fri, 24 Nov 2006 09:54:00 -0800
Delivery-date: Fri, 24 Nov 2006 09:54:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Not sure if this is a Fedora Core 6 issue.  I already post a message on
their list but didn't get an answer.  So I am going to try here..





Does anyone has Windows Guest OS running successfully with the Dom0 has all
the physical memory allocated?


If I don't lower the memory assign to Dom0 through grub, I will not be able
to run a Windows Guest OS.  This what I got

Using config file "/etc/xen/Win2k3R2-01".
Error: (12, 'Cannot allocate memory')


and here is the xm dmesg
[root sfxen01 ~]# xm dmesg
 __  __            _____  ___   _____             ____    __       __
 \ \/ /___ _ __   |___ / / _ \ |___ /    _ __ ___| ___|  / _| ___ / /_
  \  // _ \ '_ \    |_ \| | | |  |_ \ __| '__/ __|___ \ | |_ / __| '_ \
  /  \  __/ | | |  ___) | |_| | ___) |__| | | (__ ___) ||  _| (__| (_) |
 /_/\_\___|_| |_| |____(_)___(_)____/   |_|  \___|____(_)_|  \___|\___/

 http://www.cl.cam.ac.uk/netos/xen
 University of Cambridge Computer Laboratory

 Xen version 3.0.3-rc5-1.2849.fc6 (brewbuilder build redhat com) (gcc
version 4.1.1 20061011 (Red Hat 4.1.1-30)) Fri Nov 10 12:36:50 EST 2006
 Latest ChangeSet: unavailable

(XEN) Command line: /xen.gz-2.6.18-1.2849.fc6
(XEN) WARNING: Only the first 16 GB of the physical memory map can be
accessed
(XEN)          by Xen in 32-bit mode. Truncating the memory map...
(XEN) Physical RAM map:
(XEN)  0000000000000000 - 00000000000a0000 (usable)
(XEN)  0000000000100000 - 00000000cffa8000 (usable)
(XEN)  00000000cffa8000 - 00000000cffb7c00 (ACPI data)
(XEN)  00000000cffb7c00 - 00000000d0000000 (reserved)
(XEN)  00000000e0000000 - 00000000f0000000 (reserved)
(XEN)  00000000fe000000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000400000000 (usable)
(XEN) System RAM: 15615MB (15990048kB)
(XEN) Xen heap: 9MB (9864kB)
(XEN) PAE enabled, limit: 16 GB
(XEN) found SMP MP-table at 000fe710
(XEN) DMI 2.4 present.
(XEN) Using APIC driver default
(XEN) ACPI: RSDP (v002 DELL                                  ) @ 0x000f2a00
(XEN) ACPI: XSDT (v001 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2a80
(XEN) ACPI: FADT (v003 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2b88
(XEN) ACPI: MADT (v001 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2c7c
(XEN) ACPI: SPCR (v001 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2d5d
(XEN) ACPI: HPET (v001 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2dad
(XEN) ACPI: MCFG (v001 DELL   PE_SC3   0x00000001 DELL 0x00000001) @
0x000f2de5
(XEN) ACPI: DSDT (v001 DELL   PE_SC3   0x00000001 MSFT 0x0100000e) @
0x00000000
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
(XEN) Processor #0 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x06] enabled)
(XEN) Processor #6 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled)
(XEN) Processor #1 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x07] enabled)
(XEN) Processor #7 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x14] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x15] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x08] lapic_id[0x17] disabled)
(XEN) ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x04] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x05] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x06] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x07] high edge lint[0x1])
(XEN) ACPI: LAPIC_NMI (acpi_id[0x08] high edge lint[0x1])
(XEN) ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
(XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
(XEN) ACPI: IOAPIC (id[0x09] address[0xfec81000] gsi_base[64])
(XEN) IOAPIC[1]: apic_id 9, version 32, address 0xfec81000, GSI 64-87
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
(XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ9 used by override.
(XEN) Enabling APIC mode:  Flat.  Using 2 I/O APICs
(XEN) ACPI: HPET id: 0x8086a201 base: 0xfed00000
(XEN) Using ACPI (MADT) for SMP configuration information
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Initializing CPU#0
(XEN) Detected 2992.570 MHz processor.
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 0
(XEN) VMXON is done
(XEN) Intel machine check architecture supported.
(XEN) Intel machine check reporting enabled on CPU#0.
(XEN) CPU0: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz stepping 06
(XEN) Booting processor 1/6 eip 90000
(XEN) Initializing CPU#1
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: Physical Processor ID: 3
(XEN) CPU: Processor Core ID: 0
(XEN) VMXON is done
(XEN) Intel machine check architecture supported.
(XEN) Intel machine check reporting enabled on CPU#1.
(XEN) CPU1: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz stepping 06
(XEN) Booting processor 2/1 eip 90000
(XEN) Initializing CPU#2
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 1
(XEN) VMXON is done
(XEN) Intel machine check architecture supported.
(XEN) Intel machine check reporting enabled on CPU#2.
(XEN) CPU2: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz stepping 06
(XEN) Booting processor 3/7 eip 90000
(XEN) Initializing CPU#3
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: Physical Processor ID: 3
(XEN) CPU: Processor Core ID: 1
(XEN) VMXON is done
(XEN) Intel machine check architecture supported.
(XEN) Intel machine check reporting enabled on CPU#3.
(XEN) CPU3: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz stepping 06
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1
(XEN) checking TSC synchronization across 4 CPUs: passed.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Brought up 4 CPUs
(XEN) Machine check exception polling timer started.
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Domain 0 kernel supports features = { 0000001f }.
(XEN) Domain 0 kernel requires features = { 00000000 }.
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   000000000e000000->0000000010000000 (3924903 pages to
be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0400000->c0807808
(XEN)  Init. ramdisk: c0808000->c0cf9e00
(XEN)  Phys-Mach map: c0cfa000->c1bfae9c
(XEN)  Start info:    c1bfb000->c1bfb46c
(XEN)  Page tables:   c1bfc000->c1c11000
(XEN)  Boot stack:    c1c11000->c1c12000
(XEN)  TOTAL:         c0000000->c2000000
(XEN)  ENTRY ADDRESS: c0400000
(XEN) Dom0 has maximum 4 VCPUs
(XEN) Initrd len 0x4f1e00, start at 0xc0808000
(XEN) Scrubbing Free RAM:
....................................................................................................................................................................done.

(XEN) Xen trace buffers: disabled
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
to Xen).
(XEN) (file=platform_hypercall.c, line=129) Domain 0 says that IO-APIC
REGSEL is good
(XEN) mtrr: type mismatch for d0000000,1000000 old: write-back new:
write-combining
(XEN) mtrr: type mismatch for d0000000,1000000 old: write-back new:
write-combining
(XEN) DOM2: (file=mm.c, line=586) Non-privileged (2) attempt to map I/O
space 000000f8
(XEN) DOM2: (file=mm.c, line=586) Non-privileged (2) attempt to map I/O
space 000000f8


xend.log :
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:190)
XendDo
mainInfo.create(['vm', ['name', 'Win2k3R2-01'], ['memory', '768'],
['on_reboot',
 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['uuid',
'5a59e56b-3b2f-8030
-db16-5e028cef4d0e'], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'
], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1],
['boo
t', 'c'], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['vnc', 1],
['vncunused',
 1], ['display', 'localhost:10.0'], ['xauthority', '/root/.Xauthority']]],
['dev
ice', ['vbd', ['uname', 'phy:/dev/VolGroup00/LogVol09'], ['dev', 'hda'],
['mode'
, 'w']]], ['device', ['vbd', ['uname', 'file:/tmp/win2k3cd1.iso'], ['dev',
'hdc:
cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac',
'00:1
6:3e:65:9b:22'], ['type', 'ioemu']]]])
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:296)
parseC
onfig: config is ['vm', ['name', 'Win2k3R2-01'], ['memory', '768'],
['on_reboot'
, 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['uuid',
'5a59e56b-3b2f-803
0-db16-5e028cef4d0e'], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader
'], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1],
['bo
ot', 'c'], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['vnc', 1],
['vncunused'
, 1], ['display', 'localhost:10.0'], ['xauthority', '/root/.Xauthority']]],
['de
vice', ['vbd', ['uname', 'phy:/dev/VolGroup00/LogVol09'], ['dev', 'hda'],
['mode
', 'w']]], ['device', ['vbd', ['uname', 'file:/tmp/win2k3cd1.iso'], ['dev',
'hdc
:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac',
'00:
16:3e:65:9b:22'], ['type', 'ioemu']]]]
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:395)
parseC
onfig: result is {'shadow_memory': None, 'uuid':
'5a59e56b-3b2f-8030-db16-5e028c
ef4d0e', 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None,
'imag
e': ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model',
'/usr/li
b/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'], ['serial',
'pty'],
 ['acpi', 1], ['apic', 1], ['vnc', 1], ['vncunused', 1], ['display',
'localhost:
10.0'], ['xauthority', '/root/.Xauthority']], 'on_poweroff': None,
'bootloader_a
rgs': None, 'cpus': None, 'name': 'Win2k3R2-01', 'backend': [], 'vcpus': 1,
'cpu
_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 768,
'device': [
('vbd', ['vbd', ['uname', 'phy:/dev/VolGroup00/LogVol09'], ['dev', 'hda'],
['mod
e', 'w']]), ('vbd', ['vbd', ['uname', 'file:/tmp/win2k3cd1.iso'], ['dev',
'hdc:c
drom'], ['mode', 'r']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['mac',
'00:16:3e
:65:9b:22'], ['type', 'ioemu']])], 'bootloader': None, 'cpu': None,
'maxmem': No
ne}
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:1253)
XendD
omainInfo.construct: None
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:1285)
XendD
omainInfo.initDomain: 4 1.0
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: boot, val: c
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: fda, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: fdb, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: soundhw, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: localtime, val:
None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: serial, val: pty
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: std-vga, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: isa, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: vcpus, val: 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: acpi, val: 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: usb, val: None
[2006-11-22 23:42:34 xend 3162] DEBUG (image:379) args: usbdevice, val:
None
[2006-11-22 23:42:34 xend 3162] DEBUG (balloon:127) Balloon: 806556 KiB
free; ne
ed 805684; done.
[2006-11-22 23:42:34 xend 3162] INFO (image:138) buildDomain os=hvm dom=4
vcpus=
1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:338) dom            = 4
[2006-11-22 23:42:34 xend 3162] DEBUG (image:339) image          =
/usr/lib/xen/
boot/hvmloader
[2006-11-22 23:42:34 xend 3162] DEBUG (image:340) store_evtchn   = 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:341) memsize        = 768
[2006-11-22 23:42:34 xend 3162] DEBUG (image:342) vcpus          = 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:343) pae            = 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:344) acpi           = 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:345) apic           = 1
[2006-11-22 23:42:34 xend 3162] DEBUG (image:467) hvm shutdown watch
registered
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] ERROR (XendDomainInfo:202)
Domain
 construction failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
195,
in create
    vm.initDomain()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
1363,
 in initDomain
    raise VmError(str(exn))
VmError: (12, 'Cannot allocate memory')
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:1449)
XendD
omainInfo.destroy: domid=4
[2006-11-22 23:42:34 xend.XendDomainInfo 3162] DEBUG (XendDomainInfo:1457)
XendD
omainInfo.destroyDomain(4)
[2006-11-22 23:42:34 xend 3162] DEBUG (image:479) hvm shutdown watch
unregistere
d
[2006-11-22 23:42:34 xend 3162] ERROR (xswatch:70) read_watch failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/xenstore/xswatch.py",
line 66,
 in watchMain
    res = watch.fn(we[0], *watch.args, **watch.kwargs)
  File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 489, in
hvm_sh
utdown
    reason = vm.readDom('control/shutdown')
AttributeError: 'NoneType' object has no attribute 'readDom'


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Error: (12, 'Cannot allocate memory'), Barrow H Kwan <=