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 9:33 PM, Christoph Egger
<Christoph_Egger%gmx.de@localhost> wrote:
>
> No. You said, you have 11 domains running and xentop shows exactly 11
> domains.
>
sorry, I wasn't clear. there are 11 NetBSD domains, 1 FreeBSD domain
which makes 12. for some reason nxd08 is not showing but does under xm
list
>>
>> # 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.
>
> hmm... from this output the 32bit freebsd guest started sucessfully with
> one vcpu and 256MB RAM.
>
> I actually expected to see an error message here why the hotplug scripts
> are not working as you stated in your first mail.
it does startup fine, I get to the mount prompt and it (freebsd
kernel) will panic when I have a network interface, yet without one it
will boot just fine.
maybe I can send you the kernel and file image?
>
> Christoph
>
>
--
Best regards,
Brad
Home |
Main Index |
Thread Index |
Old Index