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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|