On Fri, 2006-05-05 at 11:08 -0700, list user wrote:
> Sorry for the delay in replying. Life intervened ;)
>
> The tail-end of the xend.log is attached. I've included a successful
> shutdown (#16), successfull startup (#17), failed restart (#18).
>
> >
> [2006-05-04 18:39:49 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
> parseConfig: config is ['vm', ['name', 'vm1'], ['memory', 64], ['vcpus', 1],
> ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16-xen'], ['ramdisk',
> '/boot/initrd-2.6.16-xen.img'], ['root', '/dev/hda1 ro'], ['args',
> 'netloop.nloopbacks=0 4']]], ['device', ['vbd', ['uname', 'phy:vg0/vm1'],
> ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vbd', ['uname',
> 'phy:vg0/usr'], ['dev', 'hda2'], ['mode', 'r']]], ['device', ['vbd',
> ['uname', 'phy:vg0/sw1'], ['dev', 'hda3'], ['mode', 'w']]], ['device',
> ['pci', ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0d'],
> ['func', '0x0']]]], ['device', ['vif', ['bridge', 'LAN'], ['mac',
> '00:16:3e:11:11:01']]], ['device', ['vif', ['bridge', 'DMZ'], ['mac',
> '00:16:3e:22:22:01']]]]
> [2006-05-04 18:39:49 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
> parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
> 'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.16-xen'],
> ['ramdisk', '/boot/initrd-2.6.16-xen.img'], ['root', '/dev/hda1 ro'],
> ['args', 'netloop.nloopbacks=0 4']], 'on_poweroff': None, 'cpus': None,
> 'name': 'vm1', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail':
> None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 'phy:vg0/vm1'],
> ['dev', 'hda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'phy:vg0/usr'],
> ['dev', 'hda2'], ['mode', 'r']]), ('vbd', ['vbd', ['uname', 'phy:vg0/sw1'],
> ['dev', 'hda3'], ['mode', 'w']]), ('pci', ['pci', ['dev', ['domain', '0x0'],
> ['bus', '0x00'], ['slot', '0x0d'], ['func', '0x0']]]), ('vif', ['vif',
> ['bridge', 'LAN'], ['mac', '00:16:3e:11:11:01']]), ('vif', ['vif', ['bridge',
> 'DMZ'], ['mac', '00:16:3e:22:22:01']])], 'bootloader': None, 'cpu': None,
> 'maxmem': None}
<snip>
> [2006-05-05 09:23:55 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
> XendDomainInfo.create(['domain', ['domid', 17], ['uuid',
> '18a8461c-3a63-6155-797a-b66ba7e271e7'], ['ssidref', 0], ['vcpus', 1],
> ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 64], ['maxmem', 64],
> ['name', 'vm1'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'],
> ['on_crash', 'restart'], ['image', ['linux', ['kernel',
> '/boot/vmlinuz-2.6.16-xen'], ['ramdisk', '/boot/initrd-2.6.16-xen.img'],
> ['root', '/dev/hda1 ro'], ['args', 'netloop.nloopbacks=0 4']]], ['device',
> ['vif', ['backend', 0], ['script', 'my-vif-bridge'], ['bridge', 'LAN'],
> ['mac', '00:16:3e:11:11:01']]], ['device', ['vif', ['backend', 0], ['script',
> 'my-vif-bridge'], ['bridge', 'DMZ'], ['mac', '00:16:3e:22:22:01']]],
> ['device', ['vbd', ['backend', 0], ['dev', 'hda1'], ['uname', 'phy:vg0/vm1'],
> ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda2'],
> ['uname', 'phy:vg0/usr'], ['mode', 'r']]], ['device', ['vbd', ['backend', 0],
> ['dev', 'hda3'], ['uname', 'phy:vg0/sw1'], ['mode', 'w']]], ['device',
> ['pci', ['backend', 0]]], ['state', '---s--'], ['shutdown_reason', 'reboot'],
> ['cpu_time', 360.46612260400002], ['online_vcpus', 1], ['up_time',
> '53045.8447151'], ['start_time', '1146793189.71'], ['store_mfn', 57181],
> ['console_mfn', 57180]])
> [2006-05-05 09:23:55 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
> parseConfig: config is ['domain', ['domid', 17], ['uuid',
> '18a8461c-3a63-6155-797a-b66ba7e271e7'], ['ssidref', 0], ['vcpus', 1],
> ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 64], ['maxmem', 64],
> ['name', 'vm1'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'],
> ['on_crash', 'restart'], ['image', ['linux', ['kernel',
> '/boot/vmlinuz-2.6.16-xen'], ['ramdisk', '/boot/initrd-2.6.16-xen.img'],
> ['root', '/dev/hda1 ro'], ['args', 'netloop.nloopbacks=0 4']]], ['device',
> ['vif', ['backend', 0], ['script', 'my-vif-bridge'], ['bridge', 'LAN'],
> ['mac', '00:16:3e:11:11:01']]], ['device', ['vif', ['backend', 0], ['script',
> 'my-vif-bridge'], ['bridge', 'DMZ'], ['mac', '00:16:3e:22:22:01']]],
> ['device', ['vbd', ['backend', 0], ['dev', 'hda1'], ['uname', 'phy:vg0/vm1'],
> ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda2'],
> ['uname', 'phy:vg0/usr'], ['mode', 'r']]], ['device', ['vbd', ['backend', 0],
> ['dev', 'hda3'], ['uname', 'phy:vg0/sw1'], ['mode', 'w']]], ['device',
> ['pci', ['backend', 0]]], ['state', '---s--'], ['shutdown_reason', 'reboot'],
> ['cpu_time', 360.46612260400002], ['online_vcpus', 1], ['up_time',
> '53045.8447151'], ['start_time', '1146793189.71'], ['store_mfn', 57181],
> ['console_mfn', 57180]]
> [2006-05-05 09:23:55 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
> parseConfig: result is {'ssidref': 0, 'uuid':
> '18a8461c-3a63-6155-797a-b66ba7e271e7', 'on_crash': 'restart', 'on_reboot':
> 'restart', 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.16-xen'],
> ['ramdisk', '/boot/initrd-2.6.16-xen.img'], ['root', '/dev/hda1 ro'],
> ['args', 'netloop.nloopbacks=0 4']], 'on_poweroff': 'destroy', 'cpus': None,
> 'name': 'vm1', 'backend': [], 'vcpus': 1, 'cpu_weight': 1.0, 'vcpu_avail': 1,
> 'memory': 64, 'device': [('vif', ['vif', ['backend', 0], ['script',
> 'my-vif-bridge'], ['bridge', 'LAN'], ['mac', '00:16:3e:11:11:01']]), ('vif',
> ['vif', ['backend', 0], ['script', 'my-vif-bridge'], ['bridge', 'DMZ'],
> ['mac', '00:16:3e:22:22:01']]), ('vbd', ['vbd', ['backend', 0], ['dev',
> 'hda1'], ['uname', 'phy:vg0/vm1'], ['mode', 'w']]), ('vbd', ['vbd',
> ['backend', 0], ['dev', 'hda2'], ['uname', 'phy:vg0/usr'], ['mode', 'r']]),
> ('vbd', ['vbd', ['backend', 0], ['dev', 'hda3'], ['uname', 'phy:vg0/sw1'],
> ['mode', 'w']]), ('pci', ['pci', ['backend', 0]])], 'bootloader': None,
> 'cpu': None, 'maxmem': 64}
I see the problem here. When you create domain 17, the pci config passed
to xend is correct:
['device', ['pci', ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot',
'0x0d'], ['func', '0x0']]]]
but when it reboots to create 18, the pci config is not passed in
correctly:
['device', ['pci', ['backend', 0]]]
Apparently there's a function missing (DevController::configuration) in
tools/python/xen/xend/server/pciif.py that rebuilds the configuration
for situations like reboot. If time allows, I'll add the function and
submit it, but if you or someone else needs it now, it should be pretty
trivial to write.
Ryan
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|