Digging through xend.log I noticed something strange:
When xend attempts to set up /dev/sda4 as a DASD for the VM, everything seems to be o.k.
However, when xend attempts to set up the DVD ROM, the entire process aborts.
[2013-12-31 21:43:50 780] DEBUG (XendDomainInfo:103) XendDomainInfo.create('vm', 'name', 'Arbeitsplatz'], 'memory', '2048'], 'maxmem', '2048'], 'vcpus', '2'], 'uuid', 'a67b0340-f252-1ba5-76c1-2e3c57db1d68'], 'on_poweroff', 'destroy'], 'on_reboot', 'destroy'], 'on_crash', 'destroy'], 'image', 'hvm', 'kernel', '/usr/lib/xen/boot/hvmloader'], 'vcpus', '2'], 'boot', 'dc'], 'acpi', '1'], 'apic', '1'], 'pae', '1'], 'usb', '1'], 'parallel', 'none'], 'serial', 'pty'], 'soundhw', 'es1370'], 'device_model', '/usr/lib64/xen/bin/qemu-dm'], 'vnc', '1'], 'vncunused', '1'], 'keymap', 'en-us'], 'rtc_timeoffset', '0'], 'localtime', '0']]], 'localtime', '0'], 'device', 'vbd', 'dev', 'hda:disk'], 'uname', 'phy:/dev/sda4'], 'mode', 'w']]], 'device', 'vbd', 'dev', 'hdc:cdrom'], 'uname', 'qemu:/dev/sr0'], 'mode', 'r']]], 'device', 'vif', 'mac', '00:16:3e:5b:e8:b6'], 'bridge', 'veth0'], 'script', 'vif-bridge']]]])
[2013-12-31 21:43:50 780] DEBUG (XendDomainInfo:2594) XendDomainInfo.constructDomain
[2013-12-31 21:43:50 780] DEBUG (balloon:206) Balloon: 2131732 KiB free; need 16384; done.
[2013-12-31 21:43:50 780] DEBUG (XendDomain:476) Adding Domain: 10
[2013-12-31 21:43:50 780] DEBUG (XendDomainInfo:2940) XendDomainInfo.initDomain: 10 256
[2013-12-31 21:43:50 780] DEBUG (image:343) Stored a VNC password for vfb access
[2013-12-31 21:43:50 780] DEBUG (image:981) args: boot, val: dc
[2013-12-31 21:43:50 780] DEBUG (image:981) args: fda, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: fdb, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: soundhw, val: es1370
[2013-12-31 21:43:50 780] DEBUG (image:981) args: localtime, val: 0
[2013-12-31 21:43:50 780] DEBUG (image:981) args: serial, val: 'pty']
[2013-12-31 21:43:50 780] DEBUG (image:981) args: std-vga, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: isa, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: acpi, val: 1
[2013-12-31 21:43:50 780] DEBUG (image:981) args: usb, val: 1
[2013-12-31 21:43:50 780] DEBUG (image:981) args: usbdevice, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: gfx_passthru, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: watchdog, val: None
[2013-12-31 21:43:50 780] DEBUG (image:981) args: watchdog-action, val: None
[2013-12-31 21:43:50 780] INFO (image:909) Need to create platform device.[domid:10]
[2013-12-31 21:43:50 780] DEBUG (XendDomainInfo:2967) _initDomain:shadow_memory=0x0, memory_static_max=0x80000000, memory_static_min=0x0.
[2013-12-31 21:43:50 780] INFO (image:188) buildDomain os=hvm dom=10 vcpus=2
[2013-12-31 21:43:50 780] DEBUG (image:1074) domid = 10
[2013-12-31 21:43:50 780] DEBUG (image:1075) image = /usr/lib/xen/boot/hvmloader
[2013-12-31 21:43:50 780] DEBUG (image:1076) store_evtchn = 4
[2013-12-31 21:43:50 780] DEBUG (image:1077) memsize = 2048
[2013-12-31 21:43:50 780] DEBUG (image:1078) target = 2048
[2013-12-31 21:43:50 780] DEBUG (image:1079) vcpus = 2
[2013-12-31 21:43:50 780] DEBUG (image:1080) vcpu_avail = 3
[2013-12-31 21:43:50 780] DEBUG (image:1081) acpi = 1
[2013-12-31 21:43:50 780] DEBUG (image:1082) apic = 1
[2013-12-31 21:43:50 780] DEBUG (image:1083) smbios_firmware=
[2013-12-31 21:43:50 780] DEBUG (image:1084) acpi_firmware =
[2013-12-31 21:43:50 780] INFO (XendDomainInfo:2453) createDevice: vfb : {'vncunused': '1', 'keymap': 'en-us', 'vnc': '1', 'uuid': '28905c9b-7b24-36ac-ad41-789ca3b53e2b', 'other_config': {'vncunused': '1', 'keymap': 'en-us', 'vnc': '1'}}
[2013-12-31 21:43:50 780] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/10/0'} to /local/domain/10/device/vfb/0.
[2013-12-31 21:43:50 780] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'Arbeitsplatz', 'frontend': '/local/domain/10/device/vfb/0', 'uuid': '28905c9b-7b24-36ac-ad41-789ca3b53e2b', 'frontend-id': '10', 'state': '1', 'keymap': 'en-us', 'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/10/0.
[2013-12-31 21:43:50 780] INFO (XendDomainInfo:2453) createDevice: vbd : {'uuid': '2e495735-42bf-7431-dd32-999697ec0ad3', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'hda:disk', 'uname': 'phy:/dev/sda4', 'mode': 'w'}
[2013-12-31 21:43:50 780] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/10/768'} to /local/domain/10/device/vbd/768.
[2013-12-31 21:43:50 780] DEBUG (DevController:97) DevController: writing {'domain': 'Arbeitsplatz', 'frontend': '/local/domain/10/device/vbd/768', 'uuid': '2e495735-42bf-7431-dd32-999697ec0ad3', 'bootable': '1', 'dev': 'hda', 'state': '1', 'params': '/dev/sda4', 'mode': 'w', 'online': '1', 'frontend-id': '10', 'type': 'phy'} to /local/domain/0/backend/vbd/10/768.
[2013-12-31 21:43:50 780] INFO (XendDomainInfo:2453) createDevice: vbd : {'uuid': '120cb710-e459-870c-673e-bf2bac33ef30', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'hdc:cdrom', 'uname': 'qemu:/dev/sr0', 'mode': 'r'}
[2013-12-31 21:43:50 780] ERROR (XendDomainInfo:3029) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 3018, in _initDomain
self._createDevices()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2460, in _createDevices
devid = self._createDevice(devclass, config)
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2418, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "/usr/lib64/python2.7/site-packages/xen/xend/server/DevController.py", line 63, in createDevice
(devid, back, front) = self.getDeviceDetails(config)
File "/usr/lib64/python2.7/site-packages/xen/xend/server/blkif.py", line 68, in getDeviceDetails
raise VmError('Block device type "%s" is invalid.' % typ)
VmError: Block device type "qemu" is invalid.
[2013-12-31 21:43:50 780] ERROR (XendDomainInfo:505) VM start failed
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 491, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 3032, in _initDomain
raise exn
VmError: Block device type "qemu" is invalid.
[2013-12-31 21:43:50 780] DEBUG (XendDomainInfo:3187) XendDomainInfo.destroy: domid=10
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:2497) Destroying device model
[2013-12-31 21:43:51 780] ERROR (XendDomainInfo:2500) Device model destroy failed X86_HVM_ImageHandler instance has no attribute 'sentinel_lock'
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2498, in _releaseDevices
self.image.destroyDeviceModel()
File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 708, in destroyDeviceModel
self.sentinel_lock.acquire()
AttributeError: X86_HVM_ImageHandler instance has no attribute 'sentinel_lock'
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:2504) Releasing devices
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:2510) Removing vbd/768
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:1310) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:2510) Removing vfb/0
[2013-12-31 21:43:51 780] DEBUG (XendDomainInfo:1310) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2013-12-31 21:43:51 780] ERROR (XendDomainInfo:108) Domain construction failed
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 106, in create
vm.start()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 491, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 3032, in _initDomain
raise exn
VmError: Block device type "qemu" is invalid.
[2013-12-31 21:43:51 780] ERROR (SrvBase:88) Request create failed.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/xen/web/SrvBase.py", line 85, in perform
return op_method(op, req)
File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create
raise XendError("Error creating domain: " + str(ex))
XendError: Error creating domain: Block device type "qemu" is invalid.
The offending line here seems to be this one:
[2013-12-31 21:43:50 780] INFO (XendDomainInfo:2453) createDevice: vbd : {‘uuid’: ‘120cb710-e459-870c-673e-bf2bac33ef30’, ‘bootable’: 0, ‘driver’: ‘paravirtualised’, ‘dev’: ‘hdc:cdrom’, ‘uname’: ‘qemu:/dev/sr0’, ‘mode’: ‘r’}
Something seems to get the storage type completely wrong, thereby screwing up the installation process.
Any ideas on how this could be corrected?