All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominik Klein <dk@in-telegence.net>
To: xen-devel@lists.xensource.com
Subject: Re: Domain status after shutdown command: ---s--
Date: Tue, 19 Feb 2008 14:29:38 +0100	[thread overview]
Message-ID: <47BAD9C2.6040300@in-telegence.net> (raw)
In-Reply-To: <C3E08853.1CA73%Keir.Fraser@cl.cam.ac.uk>

Hi Keir,

thanks for your reply.

Keir Fraser wrote:
> What does /var/log/xen/xend.log say? 

This is what it says on startup of the domain:

[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) 
XendDomainInfo.create(['vm', ['name', 'dktestvmxen'], ['memory', 256], 
['maxmem', 512], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], 
['on_crash', 'restart'], ['vcpus', 1], ['on_xend_start', 'ignore'], 
['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', 
'/boot/vmlinuz-2.6.18.8-xen'], ['ramdisk', 
'/boot/initrd-2.6.18.8-xen.img'], ['root', '/dev/hda1'], ['args', 
'TERM=xterm xencons=tty console=tty1']]], ['device', ['vbd', ['uname', 
'file:/dktestvmxen.img'], ['dev', 'hda1'], ['mode', 'w']]], ['device', 
['vif', ['bridge', 'eth1'], ['mac', '00:16:3e:13:71:7b']]]])
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) 
XendDomainInfo.constructDomain
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Balloon: 1286904 KiB 
free; need 2048; done.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Adding Domain: 2
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) 
XendDomainInfo.initDomain: 2 256
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) 
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000, 
memory_static_min=0x0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Balloon: 1286904 KiB 
free; need 262144; done.
[2008-02-19 14:26:16 3967] INFO (__init__:1072) buildDomain os=linux 
dom=2 vcpus=1
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) domid          = 2
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) memsize        = 256
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) image          = 
/boot/vmlinuz-2.6.18.8-xen
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) store_evtchn   = 1
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) console_evtchn = 2
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) cmdline        = 
root=/dev/hda1 TERM=xterm xencons=tty console=tty1
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) ramdisk        = 
/boot/initrd-2.6.18.8-xen.img
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) vcpus          = 1
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) features       =
[2008-02-19 14:26:16 3967] INFO (__init__:1072) createDevice: vbd : 
{'uuid': '76719195-8e36-9129-a6f0-bbe8ec8d3ea0', 'bootable': 1, 
'driver': 'paravirtualised', 'dev': 'hda1', 'uname': 
'file:/dktestvmxen.img', 'mode': 'w'}
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'virtual-device': '769', 'device-type': 'disk', 'protocol': 
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/2/769'} to /local/domain/2/device/vbd/769.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'domain': 'dktestvmxen', 'frontend': '/local/domain/2/device/vbd/769', 
'uuid': '76719195-8e36-9129-a6f0-bbe8ec8d3ea0', 'dev': 'hda1', 'state': 
'1', 'params': '/dktestvmxen.img', 'mode': 'w', 'online': '1', 
'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/769.
[2008-02-19 14:26:16 3967] INFO (__init__:1072) createDevice: vif : 
{'bridge': 'eth1', 'mac': '00:16:3e:13:71:7b', 'uuid': 
'b584940b-0281-92cb-570e-65bed687fdcd'}
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'mac': '00:16:3e:13:71:7b', 'handle': '0', 'protocol': 'x86_32-abi', 
'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'bridge': 'eth1', 'domain': 'dktestvmxen', 'handle': '0', 'uuid': 
'b584940b-0281-92cb-570e-65bed687fdcd', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/2/device/vif/0', 'mac': '00:16:3e:13:71:7b', 'online': 
'1', 'frontend-id': '2'} to /local/domain/0/backend/vif/2/0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Storing VM details: 
{'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 
'a6c4c40d-575d-6663-2ada-3fc912c13bbd', 'on_reboot': 'restart', 
'start_time': '1203427576.68', 'on_poweroff': 'destroy', 
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': 
'0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.18.8-xen) (ramdisk /boot/initrd-2.6.18.8-xen.img) 
(args 'root=/dev/hda1 TERM=xterm xencons=tty console=tty1') (notes 
(HV_START_LOW 4118806528) (FEATURES 
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel') 
(VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) 
(GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LOADER generic) 
(SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION 
xen-3.0)))", 'name': 'dktestvmxen'}
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Storing domain details: 
{'console/ring-ref': '327709', 'image/entry': '3222274048', 
'console/port': '2', 'store/ring-ref': '327710', 'image/loader': 
'generic', 'vm': '/vm/a6c4c40d-575d-6663-2ada-3fc912c13bbd', 
'control/platform-feature-multiprocessor-suspend': '1', 
'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 
'image/features/writable-descriptor-tables': '1', 'image/virt-base': 
'3221225472', 'memory/target': '262144', 'image/guest-version': '2.6', 
'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 
'console/limit': '1048576', 'image/paddr-offset': '3221225472', 
'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 
'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': 
'1', 'image/features/writable-page-tables': '1', 'console/type': 
'xenconsoled', 'image/features/auto-translated-physmap': '1', 'name': 
'dktestvmxen', 'domid': '2', 'image/xen-version': 'xen-3.0', 
'store/port': '1'}
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/console/2/0'} to /local/domain/2/device/console/0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) DevController: writing 
{'domain': 'dktestvmxen', 'protocol': 'vt100', 'uuid': 
'ed49aec0-415e-291c-3273-6b3c94806174', 'frontend': 
'/local/domain/2/device/console/0', 'state': '1', 'location': '2', 
'online': '1', 'frontend-id': '2'} to /local/domain/0/backend/console/2/0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) 
XendDomainInfo.handleShutdownWatch
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices vif.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for 0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vif/2/0/hotplug-status.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices vbd.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for 769.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vbd/2/769/hotplug-status.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vbd/2/769/hotplug-status.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices irq.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices vkbd.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices vfb.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices 
console.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for 0.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices pci.
[2008-02-19 14:26:16 3967] DEBUG (__init__:1072) Waiting for devices 
ioports.
[2008-02-19 14:26:17 3967] DEBUG (__init__:1072) Waiting for devices tap.
[2008-02-19 14:26:17 3967] DEBUG (__init__:1072) Waiting for devices vtpm.
[2008-02-19 14:26:17 3967] INFO (__init__:1072) Domain dktestvmxen (2) 
unpaused.

When I shutdown the domain, xend.log does not show anything.

> Do you have a line like 'on_poweroff =
> destroy' in your domain config file?

As you could see in my email: yes, I have that line.

>> Here's my domU config file:
>>
>> kernel='/boot/vmlinuz-2.6.18.8-xen'
>> ramdisk='/boot/initrd-2.6.18.8-xen.img'
>> disk = [ 'file:/dktestvmxen.img,hda1,w' ]
>> memory = 256
>> maxmem = 512
>> builder = 'linux'
>> name = 'dktestvmxen'
>> vif = [ 'mac=00:16:3e:13:71:7b,bridge=eth1' ]
>> localtime = 0
>> on_poweroff = 'destroy'
>> on_reboot = 'restart'
>> on_crash = 'restart'
>> root = '/dev/hda1'
>> extra='TERM=xterm xencons=tty console=tty1'

Regards
Dominik

  reply	other threads:[~2008-02-19 13:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19 12:34 Domain status after shutdown command: ---s-- Dominik Klein
2008-02-19 13:21 ` Keir Fraser
2008-02-19 13:29   ` Dominik Klein [this message]
2008-02-19 14:08     ` Keir Fraser
2008-02-19 14:26       ` Dominik Klein
2008-02-20  9:23       ` Dominik Klein
2008-02-19 14:31     ` Dominik Klein
2008-03-17 15:09 ` Marc Patino Gómez
2008-04-09 14:25   ` Dominik Klein
2008-04-09 14:39     ` Keir Fraser
2008-04-10  6:13       ` Dominik Klein
2008-04-14  6:18         ` Dominik Klein
2008-04-14  8:50           ` Keir Fraser
2008-04-22 11:36             ` [badly solved] " Dominik Klein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47BAD9C2.6040300@in-telegence.net \
    --to=dk@in-telegence.net \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.