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

AW: [Xen-users] Problems creating hvm guest after dom0 reboot


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Daniel Schmitz" <xen@xxxxxxxxxxxxxxxxxxx>
  • Date: Sun, 19 Apr 2009 01:52:56 +0200
  • Delivery-date: Sat, 18 Apr 2009 16:53:49 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acm2PRLc649Hvo1zSiSB7DK/isNKXwJZoWVAADc2qjA=

Hi, 

does nobody has an idea? Or is everything correct and xen does strange
things? Maybe a restart of xen can help?

I even tried to start a hvm minimal guest, build with the example
configuration resulting in the same problem.

Greetings Daniel

-----Ursprüngliche Nachricht-----
Von: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] Im Auftrag von Daniel Schmitz
Gesendet: Freitag, 17. April 2009 23:42
An: xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: [Xen-users] Problems creating hvm guest after dom0 reboot

Hi,

I have some trouble to create hvm machines. Xen just tell me that the domain
creation failed:

# xm create /etc/xen/xenwin2008
Using config file "/etc/xen/xenwin2008".
Error: Creating domain failed: name=xenwin2008

The last time i had this error there was some trouble with ne vif line, but
the configuration worked perfectly until I had to restart my system (and
change the netmask of the eth0 interface from 255.255.255.248 to 240. But
that should not be a problem for xen?).

here is my configuration:

import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

kernel = "/usr/lib/xen-3.2-1/boot/hvmloader"
builder='hvm'
memory = 1600
extid=0
stdvga=0

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "xenwin2008"
vif = [ 'type=ioemu, bridge=eth0' ]
acpi = 1
apic = 1
disk = [ 'file:/.../xenwin2008.img,hda,w',
'file:/some.win.2k8.iso,hdc:cdrom,r' ]

device_model = '/usr/' + arch_libdir + '/xen-3.2-1/bin/qemu-dm'

boot="dc"
vnc=1
vnclisten = 'aaa.aaa.aaa.aaa'
vncunused=0
vncpasswd='somepasswort'


the files /usr/lib/xen-3.2-1/boot/hvmloader and
usr/lib64/xen-3.2-1/bin/qemu-dm are present.

I think the network settings are ok:
# brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.00304863b6a2       no              peth0

and here is the output of the xend logfile:

[2009-04-17 23:30:43 3028] DEBUG (XendDomainInfo:84)
XendDomainInfo.create(['vm', ['name', 'xenwin2008'], ['memory', 1600],
['shadow_memory', 8], ['vcpus', 1], ['on_xend_start', 'ignore'],
['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel',
'/usr/lib/xen-3.2-1/boot/hvmloader'], ['pae', 1], ['vcpus', 1], ['boot',
'dc'], ['fda', ''], ['fdb', ''], ['timer_mode', 0], ['localtime', 0],
['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw',
''], ['vnc', 1], ['vncunused', 0], ['vnclisten', 'aaa.aaa.aaa.aaa'],
['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', '0'], ['monitor',
0], ['acpi', 1], ['apic', 1], ['usb', 1], ['usbdevice', 'tablet'],
['keymap', ''], ['pci', []], ['guest_os_type', 'default'], ['device_model',
'/usr/lib64/xen-3.2-1/bin/qemu-dm'], ['vncpasswd', 'XXXXXXXX']]], ['device',
['vbd', ['uname', 'file:/.../xenwin2008b.img'], ['dev', 'hda'], ['mode',
'w']]], ['device', ['vbd', ['uname', 'file: :/some.win.2k8.iso '], ['dev',
'hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'eth0'],
['type', 'ioemu']]]])
[2009-04-17 23:30:43 3028] DEBUG (XendDomainInfo:1618)
XendDomainInfo.constructDomain
[2009-04-17 23:30:43 3028] DEBUG (balloon:132) Balloon: 2908 KiB free; need
2048; done.
[2009-04-17 23:30:43 3028] ERROR (XendDomainInfo:440) VM start failed
Traceback (most recent call last):
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line 419,
in start
    XendTask.log_progress(0, 30, self._constructDomain)
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendTask.py", line 209, in
log_progress
    retval = func(*args, **kwds)
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line
1656, in _constructDomain
    self.info['name_label'])
VmError: Creating domain failed: name=xenwin2008
[2009-04-17 23:30:43 3028] DEBUG (XendDomainInfo:1897)
XendDomainInfo.destroy: domid=None
[2009-04-17 23:30:43 3028] ERROR (XendDomainInfo:89) Domain construction
failed
Traceback (most recent call last):
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line 87,
in create
    vm.start()
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line 419,
in start
    XendTask.log_progress(0, 30, self._constructDomain)
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendTask.py", line 209, in
log_progress
    retval = func(*args, **kwds)
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line
1656, in _constructDomain
    self.info['name_label'])
VmError: Creating domain failed: name=xenwin2008
[2009-04-17 23:30:43 3028] DEBUG (XendDomainInfo:1897)
XendDomainInfo.destroy: domid=None



I'm looking forward to your suggestions.

Greetings Daniel


Here is the xm demsg output if this is interesting:

# xm dmesg
(XEN) Xen version 3.2-1 (Debian 3.2.1-2) (waldi@xxxxxxxxxx) (gcc version
4.3.1 (Debian 4.3.1-2) ) Sat Jun 28 09:32:18 UTC 2008
(XEN) Command line:
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: none; EDID transfer time: 2 seconds
(XEN)  EDID info not retrieved because no DDC retrieval method detected
(XEN) Disc information:
(XEN)  Found 2 MBR signatures
(XEN)  Found 2 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009dc00 (usable)
(XEN)  000000000009dc00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000cfe70000 (usable)
(XEN)  00000000cfe70000 - 00000000cfe81000 (ACPI data)
(XEN)  00000000cfe81000 - 00000000cfe84000 (ACPI NVS)
(XEN)  00000000cfe84000 - 00000000d0000000 (reserved)
(XEN)  00000000e0000000 - 00000000f0000000 (reserved)
(XEN)  00000000fec00000 - 00000000fed00000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ff000000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000130000000 (usable)
(XEN) System RAM: 4094MB (4192308kB)
(XEN) Xen heap: 14MB (14920kB)
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) Processor #0 6:15 APIC version 20
(XEN) Processor #1 6:15 APIC version 20
(XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(XEN) IOAPIC[1]: apic_id 3, version 32, address 0xfecc0000, GSI 24-47
(XEN) Enabling APIC mode:  Flat.  Using 2 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2327.581 MHz processor.
(XEN) HVM: VMX enabled
(XEN) CPU0: Intel(R) Xeon(R) CPU            3065  @ 2.33GHz stepping 0b
(XEN) Booting processor 1/1 eip 8c000
(XEN) CPU1: Intel(R) Xeon(R) CPU            3065  @ 2.33GHz stepping 0b
(XEN) Total of 2 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) Platform timer overflows in 234 jiffies.
(XEN) Platform timer is 3.579MHz ACPI PM Timer
(XEN) Brought up 2 CPUs
(XEN) AMD IOMMU: Disabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, lsb, paddr 0x200000 -> 0x631918
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000128000000->000000012c000000 (978399 pages to be
allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff80200000->ffffffff80631918
(XEN)  Init. ramdisk: ffffffff80632000->ffffffff81bb6000
(XEN)  Phys-Mach map: ffffffff81bb6000->ffffffff8234cef8
(XEN)  Start info:    ffffffff8234d000->ffffffff8234d4a4
(XEN)  Page tables:   ffffffff8234e000->ffffffff82363000
(XEN)  Boot stack:    ffffffff82363000->ffffffff82364000
(XEN)  TOTAL:         ffffffff80000000->ffffffff82400000
(XEN)  ENTRY ADDRESS: ffffffff80200000
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Initrd len 0x1584000, start at 0xffffffff80632000
(XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to
Xen)
(XEN) Freed 104kB init memory.
(XEN) traps.c:1996:d0 Domain attempted WRMSR 000000000000019a from
00000000:00000002 to 00000000:00000000.
(XEN) traps.c:1996:d0 Domain attempted WRMSR 000000000000019a from
00000000:00000002 to 00000000:00000000.
(XEN) mm.c:645:d2 Non-privileged (2) attempt to map I/O space 000000f0
(XEN) mm.c:645:d3 Non-privileged (3) attempt to map I/O space 000000f0
(XEN) mm.c:645:d4 Non-privileged (4) attempt to map I/O space 000000f0


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


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


 


Rackspace

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