Port-xen archive

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

Re: debugging xen networking scripts



On Mon, Aug 25, 2008 at 8:16 PM, Christoph Egger 
<Christoph_Egger%gmx.de@localhost> wrote:
>
> Can you show the output of xentop and the output from
> 'tail -f /var/log/xend.log | tee xend.failingdomain' ?
> (To get some content into xend.failingdomain you need to launch
> the failing guest to start.
>

# xentop:
xentop - 20:57:50   Xen 3.3.0
11 domains: 1 running, 1 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 2095612k total, 1723728k used, 371884k free    CPUs: 1 @ 1799MHz
      NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k)
MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR
SSID
    nxdu01 ------        504    0.2      64984    3.1      65536
3.1     1    0        0        0    0        0        0        0    0
bldr-fbsd32 --b---         10    0.0     262144   12.5     262144
12.5     1    0        0        0    0        0        0        0    0
bldr-nbsd32 ------       1731    0.2     343244   16.4     344064
16.4     1    0        0        0    0        0        0        0    0
bldr-nbsd64 ------        481    0.2     343244   16.4     344064
16.4     1    0        0        0    0        0        0        0    0
  Domain-0 -----r       4349    2.4     130996    6.3   no limit
n/a     1    0        0        0    0        0        0        0    0
    nxdu02 ------        592    0.3      81044    3.9      81920
3.9     1    0        0        0    0        0        0        0    0
    nxdu03 ------        528    0.3      81044    3.9      81920
3.9     1    0        0        0    0        0        0        0    0
    nxdu04 ------        475    0.2      81100    3.9      81920
3.9     1    0        0        0    0        0        0        0    0
    nxdu05 ------        488    0.2      64768    3.1      65536
3.1     1    0        0        0    0        0        0        0    0
    nxdu06 ------        543    0.2      64972    3.1      65536
3.1     1    0        0        0    0        0        0        0    0
    nxdu07 ------        581    0.3      81100    3.9      81920
3.9     1    0        0        0    0        0        0        0    0

one domain seems to be missing in xentop!?

# cat xend.failingdomain:
[2008-08-25 21:07:26 255] DEBUG (XendDomainInfo:89)
XendDomainInfo.create(['vm', ['name', 'bldr-fbsd32'], ['memory', 256],
['on_crash', 'preserve'], ['vcpus', 1], ['on_xend_start', 'ignore'],
['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel',
'/var/xen/bldr-fbsd32/kernel'], ['args',
'boot_single,vfs.root.mountfrom=ufs:/dev/label/rt,kern.hz=100']]],
['device', ['vbd', ['uname', 'file://var/xen/bldr-fbsd32/xbd0'],
['dev', '0x01'], ['mode', 'w']]], ['device', ['vbd', ['uname',
'file://var/xen/bldr-fbsd32/xbd1'], ['dev', '0x02'], ['mode', 'w']]],
['device', ['vbd', ['uname', 'file://var/xen/bldr-fbsd32/xbd2'],
['dev', '0x03'],['mode', 'w']]], ['device', ['vif', ['bridge',
'bridge0'], ['mac', '00:bd:c4:12:00:ef']]]])
[2008-08-25 21:07:26 255] DEBUG (XendDomainInfo:2028)
XendDomainInfo.constructDomain
[2008-08-25 21:07:26 255] DEBUG (balloon:132) Balloon: 632912 KiB
free; need 2048; done.
[2008-08-25 21:07:26 255] DEBUG (XendDomain:447) Adding Domain: 49
[2008-08-25 21:07:26 255] DEBUG (XendDomainInfo:2134)
XendDomainInfo.initDomain: 49 256
[2008-08-25 21:07:26 255] DEBUG (XendDomainInfo:2215)
_initDomain:shadow_memory=0x0, memory_static_max=0x10000000,
memory_static_min=0x0.
[2008-08-25 21:07:26 255] DEBUG (balloon:132) Balloon: 632904 KiB
free; need 263168; done.
[2008-08-25 21:07:26 255] INFO (image:166) buildDomain os=linux dom=49 vcpus=1
[2008-08-25 21:07:26 255] DEBUG (image:631) domid          = 49
[2008-08-25 21:07:26 255] DEBUG (image:632) memsize        = 256
[2008-08-25 21:07:26 255] DEBUG (image:633) image          =
/var/xen/bldr-fbsd32/kernel
[2008-08-25 21:07:26 255] DEBUG (image:634) store_evtchn   = 1
[2008-08-25 21:07:26 255] DEBUG (image:635) console_evtchn = 2
[2008-08-25 21:07:26 255] DEBUG (image:636) cmdline        =
boot_single,vfs.root.mountfrom=ufs:/dev/label/rt,kern.hz=100
[2008-08-25 21:07:26 255] DEBUG (image:637) ramdisk        =
[2008-08-25 21:07:26 255] DEBUG (image:638) vcpus          = 1
[2008-08-25 21:07:26 255] DEBUG (image:639) features       =
[2008-08-25 21:07:27 255] INFO (XendDomainInfo:1900) createDevice: vbd
: {'uuid': '940f570c-8c2e-8446-7126-0f5036245832', 'bootable': 1,
'driver': 'paravirtualised', 'dev': '0x01', 'uname':
'file://var/xen/bldr-fbsd32/xbd0', 'mode': 'w'}
[2008-08-25 21:07:27 255] DEBUG (DevController:122) DevController:
writing {'virtual-device': '1', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/49/1'} to /local/domain/49/device/vbd/1.
[2008-08-25 21:07:27 255] DEBUG (DevController:124) DevController:
writing {'domain': 'bldr-fbsd32', 'frontend':
'/local/domain/49/device/vbd/1', 'uuid':
'940f570c-8c2e-8446-7126-0f5036245832', 'dev': '0x01', 'state': '1',
'params': '//var/xen/bldr-fbsd32/xbd0', 'mode': 'w', 'online': '1',
'frontend-id': '49', 'type': 'file'} to
/local/domain/0/backend/vbd/49/1.
[2008-08-25 21:07:27 255] INFO (XendDomainInfo:1900) createDevice: vbd
: {'uuid': 'e2815209-cfb9-f87f-e4ef-2587cc63a4f7', 'bootable': 0,
'driver': 'paravirtualised', 'dev': '0x02', 'uname':
'file://var/xen/bldr-fbsd32/xbd1', 'mode': 'w'}
[2008-08-25 21:07:27 255] DEBUG (DevController:122) DevController:
writing {'virtual-device': '2', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/49/2'} to /local/domain/49/device/vbd/2.
[2008-08-25 21:07:27 255] DEBUG (DevController:124) DevController:
writing {'domain': 'bldr-fbsd32', 'frontend':
'/local/domain/49/device/vbd/2', 'uuid':
'e2815209-cfb9-f87f-e4ef-2587cc63a4f7', 'dev': '0x02', 'state': '1',
'params': '//var/xen/bldr-fbsd32/xbd1', 'mode': 'w', 'online': '1',
'frontend-id': '49', 'type': 'file'} to
/local/domain/0/backend/vbd/49/2.
[2008-08-25 21:07:27 255] INFO (XendDomainInfo:1900) createDevice: vbd
: {'uuid': '8aa6c48d-6499-2c44-92bb-3750e6c40d03', 'bootable': 0,
'driver': 'paravirtualised', 'dev': '0x03', 'uname':
'file://var/xen/bldr-fbsd32/xbd2', 'mode': 'w'}
[2008-08-25 21:07:27 255] DEBUG (DevController:122) DevController:
writing {'virtual-device': '3', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/49/3'} to /local/domain/49/device/vbd/3.
[2008-08-25 21:07:27 255] DEBUG (DevController:124) DevController:
writing {'domain': 'bldr-fbsd32', 'frontend':
'/local/domain/49/device/vbd/3', 'uuid':
'8aa6c48d-6499-2c44-92bb-3750e6c40d03', 'dev': '0x03', 'state': '1',
'params': '//var/xen/bldr-fbsd32/xbd2', 'mode': 'w', 'online': '1',
'frontend-id': '49', 'type': 'file'} to
/local/domain/0/backend/vbd/49/3.
[2008-08-25 21:07:27 255] INFO (XendDomainInfo:1900) createDevice: vif
: {'bridge': 'bridge0', 'mac': '00:bd:c4:12:00:ef', 'uuid':
'24ffa8af-be48-332c-9d11-0b0c0a6454e3'}
[2008-08-25 21:07:27 255] DEBUG (DevController:122) DevController:
writing {'mac': '00:bd:c4:12:00:ef', 'handle': '0', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vif/49/0'} to /local/domain/49/device/vif/0.
[2008-08-25 21:07:27 255] DEBUG (DevController:124) DevController:
writing {'bridge': 'bridge0', 'domain': 'bldr-fbsd32', 'handle': '0',
'uuid': '24ffa8af-be48-332c-9d11-0b0c0a6454e3', 'script':
'/usr/local/etc/xen/scripts/vif-bridge', 'mac': '00:bd:c4:12:00:ef',
'frontend-id': '49', 'state': '1', 'online': '1', 'frontend':
'/local/domain/49/device/vif/0'} to /local/domain/0/backend/vif/49/0.
[2008-08-25 21:07:27 255] DEBUG (XendDomainInfo:2729) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'15cacdaf-26a7-d237-2964-feba03316ac0', 'on_reboot': 'restart',
'start_time': '1219694847.32', 'on_poweroff': 'destroy',
'on_xend_start': 'ignore', 'on_crash': 'preserve',
'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'image':
"(linux (kernel /var/xen/bldr-fbsd32/kernel) (args
'boot_single,vfs.root.mountfrom=ufs:/dev/label/rt,kern.hz=100')
(keymap en-gb) (notes (HV_START_LOW 4118806528) (FEATURES
'writable_page_tables|supervisor_mode_kernel|writable_descriptor_tables')
(VIRT_BASE 3221225472) (GUEST_VERSION HEAD) (PADDR_OFFSET 3221225472)
(GUEST_OS FreeBSD) (HYPERCALL_PAGE 3221479424) (LOADER generic)
(SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3221483520) (XEN_VERSION
xen-3.0)))", 'name': 'bldr-fbsd32'}
[2008-08-25 21:07:27 255] DEBUG (XendDomainInfo:1359) Storing domain
details: {'console/ring-ref': '446254', 'image/entry': '3221483520',
'console/port': '2', 'store/ring-ref': '446255', 'image/loader':
'generic', 'vm': '/vm/15cacdaf-26a7-d237-2964-feba03316ac0',
'control/platform-feature-multiprocessor-suspend': '1',
'image/hv-start-low': '4118806528', 'image/guest-os': 'FreeBSD',
'image/features/writable-descriptor-tables': '1', 'image/virt-base':
'3221225472', 'memory/target': '262144', 'image/guest-version':
'HEAD', 'image/features/supervisor-mode-kernel': '1',
'image/pae-mode': 'yes', 'console/limit': '1048576',
'image/paddr-offset': '3221225472', 'image/hypercall-page':
'3221479424', 'image/suspend-cancel': '1', 'cpu/0/availability':
'online', 'image/features/writable-page-tables': '1', 'console/type':
'xenconsoled', 'name': 'bldr-fbsd32', 'domid': '49',
'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2008-08-25 21:07:27 255] DEBUG (DevController:122) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/console/49/0'} to
/local/domain/49/device/console/0.
[2008-08-25 21:07:27 255] DEBUG (DevController:124) DevController:
writing {'domain': 'bldr-fbsd32', 'frontend':
'/local/domain/49/device/console/0', 'uuid':
'1e262d8f-60bf-d25a-fb97-46099934901a', 'frontend-id':'49', 'state':
'1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/49/0.
[2008-08-25 21:07:27 255] DEBUG (XendDomainInfo:1443)
XendDomainInfo.handleShutdownWatch
[2008-08-25 21:07:27 255] DEBUG (DevController:155) Waiting for devices vif.
[2008-08-25 21:07:27 255] DEBUG (DevController:155) Waiting for devices vif.
[2008-08-25 21:07:27 255] DEBUG (DevController:160) Waiting for 0.
[2008-08-25 21:07:27 255] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vif/49/0/hotplug-status.
[2008-08-25 21:07:28 255] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vif/49/0/hotplug-status.
[2008-08-25 21:07:28 255] DEBUG (DevController:659) hotplugStatusCallback 1.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices vscsi.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices vbd.
[2008-08-25 21:07:28 255] DEBUG (DevController:160) Waiting for 1.
[2008-08-25 21:07:28 255] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vbd/49/1/hotplug-status.
[2008-08-25 21:07:28 255] DEBUG (DevController:659) hotplugStatusCallback 1.
[2008-08-25 21:07:28 255] DEBUG (DevController:160) Waiting for 2.
[2008-08-25 21:07:28 255] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vbd/49/2/hotplug-status.
[2008-08-25 21:07:28 255] DEBUG (DevController:659) hotplugStatusCallback 1.
[2008-08-25 21:07:28 255] DEBUG (DevController:160) Waiting for 3.
[2008-08-25 21:07:28 255] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vbd/49/3/hotplug-status.
[2008-08-25 21:07:28 255] DEBUG (DevController:659) hotplugStatusCallback 1.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices irq.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices vkbd.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices vfb.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices console.
[2008-08-25 21:07:28 255] DEBUG (DevController:160) Waiting for 0.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices pci.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices ioports.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices tap.
[2008-08-25 21:07:28 255] DEBUG (DevController:155) Waiting for devices vtpm.
[2008-08-25 21:07:28 255] INFO (XendDomain:1172) Domain bldr-fbsd32
(49) unpaused.

> Christoph
>
>

-- 
Best regards,
 Brad


Home | Main Index | Thread Index | Old Index