Aufgrund einer Urlaubsflut bei mir auf Arbeit, bin ich leider dazu gezwungen, mich nun temporär um die Administration der Server zu kümmern. Soweit noch in Ordnung, würden da nicht die XEN-Gastsysteme ausfallen. Denn mit XEN habe ich mich vorher nicht beschäftigt und fühle mich daher wie Alice im Wunderland.
Zu meinem Problem:
Für die virtuellen Systeme haben wir einen Server (Debian Etch), der mit einem modifizierten Kernel läuft.
Code: Alles auswählen
$ uname -a
Linux xen3 2.6.16.29-xen #5 SMP Sun Oct 15 13:23:34 BST 2006 i686 GNU/Linux
Code: Alles auswählen
$ sudo xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 2463 1 r----- 37.5
continuum 1 256 1 -b---- 1.7
pberatung 2 256 1 -b---- 8.0
pberatung-test 3 256 1 -b---- 8.0
slide 4 256 1 -b---- 1.6
Code: Alles auswählen
$ sudo xm create -c /etc/xen/destiny.sxp
Using config file "/etc/xen/destiny.sxp".
device vif6.0 entered promiscuous mode
ADDRCONF(NETDEV-UP): vif6.0: link is not ready
Error: Device 769 (vbd) could not be connected. Backend device not found.
xenbr2: port 7(vif6.0) entered disabled state
device vif6.0 left promiscuous mode
xenbr2: port 7(vif6.0) entering disabled state
Hier ein hoffentlich relevanter Teil der /var/log/xen/xend.log
Code: Alles auswählen
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16.29-xen'], ['ip', '192.168.38.25:1.2.3.4:192.168.38.2:255.255.255.0:destiny:eth0:off'], ['root', '/dev/hda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'file:/srv/xen_images/destiny.img'], ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/srv/xen_images/destiny-swap.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif']]])
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) parseConfig: config is ['vm', ['name', 'destiny'], ['memory', 64], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16.29-xen'], ['ip', '192.168.38.25:1.2.3.4:192.168.38.2:255.255.255.0:destiny:eth0:off'], ['root', '/dev/hda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'file:/srv/xen_images/destiny.img'], ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/srv/xen_images/destiny-swap.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif']]]
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.16.29-xen'], ['ip', '192.168.38.25:1.2.3.4:192.168.38.2:255.255.255.0:destiny:eth0:off'], ['root', '/dev/hda1 ro'], ['args', '4']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 'destiny', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 'file:/srv/xen_images/destiny.img'], ['dev', 'hda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'file:/srv/xen_images/destiny-swap.img'], ['dev', 'hda2'], ['mode', 'w']]), ('vif', ['vif'])], 'bootloader': None, 'cpu': None, 'maxmem': None}
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) XendDomainInfo.construct: None
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) XendDomainInfo.initDomain: 9 1.0
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) Balloon: 66208 KiB free; need 65536; done.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] INFO (__init__:1072) buildDomain os=linux dom=9 vcpus=1
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) dom = 9
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) image = /boot/vmlinuz-2.6.16.29-xen
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) store_evtchn = 1
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) console_evtchn = 2
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) cmdline = ip=192.168.38.25:1.2.3.4:192.168.38.2:255.255.255.0:destiny:eth0:off root=/dev/hda1 ro 4
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) ramdisk =
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) vcpus = 1
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) features =
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/9/769'} to /local/domain/9/device/vbd/769.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'domain': 'destiny', 'frontend': '/local/domain/9/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params': '/srv/xen_images/destiny.img', 'mode': 'w', 'online': '1', 'frontend-id': '9', 'type': 'file'} to /local/domain/0/backend/vbd/9/769.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/9/770'} to /local/domain/9/device/vbd/770.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'domain': 'destiny', 'frontend': '/local/domain/9/device/vbd/770', 'dev': 'hda2', 'state': '1', 'params': '/srv/xen_images/destiny-swap.img', 'mode': 'w', 'online': '1', 'frontend-id': '9', 'type': 'file'} to /local/domain/0/backend/vbd/9/770.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:69:a0:30', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/9/0'} to /local/domain/9/device/vif/0.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend 3268] DEBUG (__init__:1072) DevController: writing {'domain': 'destiny', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/9/device/vif/0', 'mac': '00:16:3e:69:a0:30', 'online': '1', 'frontend-id': '9'} to /local/domain/0/backend/vif/9/0.
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) Storing VM details: {'shadow_memory': '0', 'uuid': 'd0f3544a-b266-6b92-7d2f-ff7f7dee931a', 'on_reboot': 'restart', 'start_time': '1218014236.98', 'on_poweroff': 'destroy', 'name': 'destiny', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '64', 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-2.6.16.29-xen) (ip 192.168.38.25:1.2.3.4:192.168.38.2:255.255.255.0:destiny:eth0:off) (root '/dev/hda1 ro') (args 4))", 'maxmem': '64'}
/var/log/xen/xend.log:[2008-08-06 11:17:16 xend.XendDomainInfo 3268] DEBUG (__init__:1072) Storing domain details: {'console/ring-ref': '494764', 'console/port': '2', 'name': 'destiny', 'console/limit': '1048576', 'vm': '/vm/d0f3544a-b266-6b92-7d2f-ff7f7dee931a', 'domid': '9', 'cpu/0/availability': 'online', 'memory/target': '65536', 'store/ring-ref': '494765', 'store/port': '1'}
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend.XendDomainInfo 3268] DEBUG (__init__:1072) XendDomainInfo.handleShutdownWatch
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) Waiting for devices vif.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) Waiting for 0.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback 1.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) Waiting for devices usb.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) Waiting for devices vbd.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) Waiting for 769.
/var/log/xen/xend.log:[2008-08-06 11:17:17 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/9/769/hotplug-status.
/var/log/xen/xend.log:[2008-08-06 11:18:52 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/9/769/hotplug-status.
/var/log/xen/xend.log:[2008-08-06 11:18:52 xend 3268] DEBUG (__init__:1072) hotplugStatusCallback 2.
/var/log/xen/xend.log:[2008-08-06 11:18:52 xend.XendDomainInfo 3268] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=9
/var/log/xen/xend.log:[2008-08-06 11:18:52 xend.XendDomainInfo 3268] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(9)
Code: Alles auswählen
$ sudo xm info
host : xen3
release : 2.6.16.29-xen
version : #5 SMP Sun Oct 15 13:23:34 BST 2006
machine : i686
nr_cpus : 1
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 1799
hw_caps : 078bfbff:e3d3fbff:00000000:00000010:00000001:00000001:00000001
total_memory : 3582
free_memory : 64
xen_major : 3
xen_minor : 0
xen_extra : .3-0
xen_caps : xen-3.0-x86_32
xen_pagesize : 4096
platform_params : virt_start=0xfc000000
xen_changeset : Sun Oct 15 13:22:03 2006 +0100 11773:433e39d54b0e
cc_compiler : gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)
cc_compile_by : shand
cc_compile_domain : localdomain
cc_compile_date : Sun Oct 15 13:22:06 BST 2006
xend_config_format : 2
Ich hoffe das mir hier jemand weiter helfen kann.
mfg einzeller