Bonjour,
J’ai un serveur avec Xen, lequel a quatre machines virtuelles. Hier, une des machines a perdu l’accès au réseau. Via xm, j’ai accéder à la console, et le machine était bien up. Après avoir cherché la source du problème réseau, j’ai décidé de la redémarrer. Depuis, celle-ci ne démarre plus du tout.
Voici quelques informations de debug :
root@ks3317938:~$ xm create steve.3ms.fr.nf.cfg
Using config file "/etc/xen/steve.3ms.fr.nf.cfg".
Error: Device 51714 (vbd) could not be connected. Hotplug scripts not working.
root@ks3317938:~$ tail -n 50 /var/log/xen/xend.log
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'steve.3ms.fr.nf'], ['memory', '1792'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore
'], ['on_xend_stop', 'ignore'], ['vcpus', '2'], ['oos', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.32-5-xen-amd64'], ['ramdisk', '/boot/initrd.img-2.6.32-5-xen-amd64'], ['root', '/dev/xvda2 ro'], ['videoram', 4], ['tsc_mode',
0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'phy:/dev/vm/steve.3ms.fr.nf-disk'], ['dev', 'xvda2'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/vm/steve.3ms.fr.nf-swap'], ['dev', 'xvda1'], ['mode', 'w']]]])
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain
[2013-06-11 09:19:57 24218] DEBUG (balloon:220) Balloon: 1844040 KiB free; need 16384; done.
[2013-06-11 09:19:57 24218] DEBUG (XendDomain:464) Adding Domain: 37
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 37 256
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x70000000, memory_static_min=0x0.
[2013-06-11 09:19:57 24218] INFO (image:182) buildDomain os=linux dom=37 vcpus=2
[2013-06-11 09:19:57 24218] DEBUG (image:721) domid = 37
[2013-06-11 09:19:57 24218] DEBUG (image:722) memsize = 1792
[2013-06-11 09:19:57 24218] DEBUG (image:723) image = /boot/vmlinuz-2.6.32-5-xen-amd64
[2013-06-11 09:19:57 24218] DEBUG (image:724) store_evtchn = 1
[2013-06-11 09:19:57 24218] DEBUG (image:725) console_evtchn = 2
[2013-06-11 09:19:57 24218] DEBUG (image:726) cmdline = root=/dev/xvda2 ro
[2013-06-11 09:19:57 24218] DEBUG (image:727) ramdisk = /boot/initrd.img-2.6.32-5-xen-amd64
[2013-06-11 09:19:57 24218] DEBUG (image:728) vcpus = 2
[2013-06-11 09:19:57 24218] DEBUG (image:729) features =
[2013-06-11 09:19:57 24218] DEBUG (image:730) flags = 0
[2013-06-11 09:19:57 24218] DEBUG (image:731) superpages = 0
[2013-06-11 09:19:57 24218] INFO (XendDomainInfo:2367) createDevice: vbd : {'uuid': 'bcc0f55e-e679-6476-311e-7b2857ad60f9', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'xvda2', 'uname': 'phy:/dev/vm/steve.3ms.fr.nf-disk', 'mode': 'w'}
[2013-06-11 09:19:57 24218] DEBUG (DevController:95) DevController: writing {'virtual-device': '51714', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/37/51714'} to /local/domain/37/device/vbd/51714.
[2013-06-11 09:19:57 24218] DEBUG (DevController:97) DevController: writing {'domain': 'steve.3ms.fr.nf', 'frontend': '/local/domain/37/device/vbd/51714', 'uuid': 'bcc0f55e-e679-6476-311e-7b2857ad60f9', 'bootable': '1', 'dev': 'xvda2', 'state': '1', 'params': '/dev/vm/steve.3ms.fr.nf-disk', 'mode': 'w', 'online': '1', 'frontend-id': '37', 'type': 'phy'} to /local/domain/0/backend/vbd/37/51714.
[2013-06-11 09:19:57 24218] INFO (XendDomainInfo:2367) createDevice: vbd : {'uuid': '4238f696-905e-c3ba-004d-eb8d585013e1', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'xvda1', 'uname': 'phy:/dev/vm/steve.3ms.fr.nf-swap', 'mode': 'w'}
[2013-06-11 09:19:57 24218] DEBUG (DevController:95) DevController: writing {'virtual-device': '51713', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/37/51713'} to /local/domain/37/device/vbd/51713.
[2013-06-11 09:19:57 24218] DEBUG (DevController:97) DevController: writing {'domain': 'steve.3ms.fr.nf', 'frontend': '/local/domain/37/device/vbd/51713', 'uuid': '4238f696-905e-c3ba-004d-eb8d585013e1', 'bootable': '0', 'dev': 'xvda1', 'state': '1', 'params': '/dev/vm/steve.3ms.fr.nf-swap', 'mode': 'w', 'online': '1', 'frontend-id': '37', 'type': 'phy'} to /local/domain/0/backend/vbd/37/51713.
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:3400) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 'bd0e62db-20da-557a-6591-5cbfbcfc6352', 'on_reboot': 'restart', 'start_time': '1370935197.85', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': '', 'image': "(linux (kernel /boot/vmlinuz-2.6.32-5-xen-amd64) (ramdisk /boot/initrd.img-2.6.32-5-xen-amd64) (args 'root=/dev/xvda2 ro ') (superpages 0) (tsc_mode 0) (videoram 4) (pci ()) (nomigrate 0) (notes (HV_START_LOW 18446603336221196288) (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 18446744071562067968) (GUEST_VERSION 2.6) (PADDR_OFFSET 0) (GUEST_OS linux) (HYPERCALL_PAGE 18446744071578882048) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 18446744071584297472) (XEN_VERSION xen-3.0)))", 'name': 'steve.3ms.fr.nf'}
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:1804) Storing domain details: {'console/ring-ref': '1778023', 'image/entry': '18446744071584297472', 'console/port': '2', 'store/ring-ref': '1778024', 'image/loader': 'generic', 'vm': '/vm/bd0e62db-20da-557a-6591-5cbfbcfc6352', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '18446603336221196288', 'image/guest-os': 'linux', 'cpu/1/availability': 'online', 'image/virt-base': '18446744071562067968', 'memory/target': '1835008', 'image/guest-version': '2.6', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-offset': '0', 'image/hypercall-page': '18446744071578882048', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '0', 'console/type': 'xenconsoled', 'name': 'steve.3ms.fr.nf', 'domid': '37', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2013-06-11 09:19:57 24218] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/37/0'} to /local/domain/37/device/console/0.
[2013-06-11 09:19:57 24218] DEBUG (DevController:97) DevController: writing {'domain': 'steve.3ms.fr.nf', 'frontend': '/local/domain/37/device/console/0', 'uuid': '56a25355-234e-5d31-7ec4-b773fb3f9403', 'frontend-id': '37', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/37/0.
[2013-06-11 09:19:57 24218] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch
[2013-06-11 09:19:57 24218] DEBUG (DevController:139) Waiting for devices vif2.
[2013-06-11 09:19:58 24218] DEBUG (DevController:139) Waiting for devices vif.
[2013-06-11 09:19:58 24218] DEBUG (DevController:139) Waiting for devices vscsi.
[2013-06-11 09:19:58 24218] DEBUG (DevController:139) Waiting for devices vbd.
[2013-06-11 09:19:58 24218] DEBUG (DevController:144) Waiting for 51714.
[2013-06-11 09:19:58 24218] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/37/51714/hotplug-status.
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: domid=37
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2411) Destroying device model
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2418) Releasing devices
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2424) Removing vbd/51714
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51714
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2424) Removing vbd/51713
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51713
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2424) Removing console/0
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2416) No device model
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2418) Releasing devices
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2424) Removing vbd/51714
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51714
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:2424) Removing vbd/51713
[2013-06-11 09:21:38 24218] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51713
[code]root@ks3317938:~$ cat /etc/xen/steve.3ms.fr.nf.cfg
Configuration file for the Xen instance steve.3ms.fr.nf, created
by xen-tools 4.2 on Thu Apr 4 11:16:08 2013.
Kernel + memory size
kernel = '/boot/vmlinuz-2.6.32-5-xen-amd64’
ramdisk = ‘/boot/initrd.img-2.6.32-5-xen-amd64’
vcpus = '2’
memory = ‘1792’
Disk device(s).
root = '/dev/xvda2 ro’
disk = [
‘phy:/dev/vm/steve.3ms.fr.nf-disk,xvda2,w’,
‘phy:/dev/vm/steve.3ms.fr.nf-swap,xvda1,w’,
]
Physical volumes
Hostname
name = ‘steve.3ms.fr.nf’
Networking
#vif = [ ‘ip=10.0.0.4,mac=00:16:3E:C9:D8:7A’ ]
Behaviour
on_poweroff = 'destroy’
on_reboot = 'restart’
on_crash = ‘restart’
root@ks3317938:~$[/code]
Note : vif désactivé pour test, l’erreur n’est pas tout à fait la même avec ((vif) could not be connected) à la place du vbd
Mes VM sont toutes en mode routed, et les 3 autres fonctionnent. J’hésite à les redémarrer pour tester, puisqu’elles fonctionnent bien pour le moment et je n’ai pas envie de les perdre aussi, au cas où.
Je n’ai pas trouvé d’autre log qui puisse être utile, et du coup j’ai peu d’information sur le soucis…
Mika.