[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Can not attach vhd image and start vhd-based domU
Hello,I'm trying to block-attach vhd image to dom0 using blktap2 with xen 4.4 standard package installed on Debian Jessie, but with no luck. 'xl -vvv block-attach 0 /home/data/centos-6.vhd,vhd,xvda,w' Output of this command:libxl: debug: libxl.c:3538:libxl_device_disk_add: ao 0x1ef48e0: create: how=(nil) callback=(nil) poller=0x1ef4940 libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown libxl: debug: libxl_device.c:234:disk_try_backend: Disk vdev=xvda, backend phy unsuitable due to format vhd libxl: debug: libxl_device.c:286:libxl__device_disk_set_backend: Disk vdev=xvda, using backend qdisk libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x1ef4b60: deregister unregistered libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x1ef48e0: complete, rc=0 libxl: debug: libxl.c:3538:libxl_device_disk_add: ao 0x1ef48e0: inprogress: poller=0x1ef4940, flags=ic libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x1ef48e0: destroy xc: debug: hypercall buffer: total allocations:3 total releases:3 xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 xc: debug: hypercall buffer: cache current size:2 xc: debug: hypercall buffer: cache hits:1 misses:2 toobig:0As I see it selects qdisk as backend, deregister with no xvda device created. However, 'xl block-list 0' shows Vdev: Vdev BE handle state evt-ch ring-ref BE-path 51712 0 0 3 77 8 /local/domain/0/backend/qdisk/0/51712 But then detach ('xl -vvv block-detach 0 51712') does not work also:libxl: debug: libxl.c:3488:libxl_device_disk_remove: ao 0x1eb38e0: create: how=(nil) callback=(nil) poller=0x1eb3d10 libxl: debug: libxl_event.c:570:libxl__ev_xswatch_register: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/0: register slotnum=3 libxl: debug: libxl.c:3488:libxl_device_disk_remove: ao 0x1eb38e0: inprogress: poller=0x1eb3d10, flags=i libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/0: event epath=/local/domain/0/backend/qdisk/0/51712/state libxl: debug: libxl_event.c:657:devstate_watch_callback: backend /local/domain/0/backend/qdisk/0/51712/state wanted state 6 still waiting state 5 libxl: debug: libxl_event.c:671:devstate_timeout: backend /local/domain/0/backend/qdisk/0/51712/state wanted state 6 timed out libxl: debug: libxl_event.c:606:libxl__ev_xswatch_deregister: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/0: deregister slotnum=3 libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x1eb3e88: deregister unregistered libxl: debug: libxl_event.c:570:libxl__ev_xswatch_register: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/1: register slotnum=3 libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/1: event epath=/local/domain/0/backend/qdisk/0/51712/state libxl: debug: libxl_event.c:657:devstate_watch_callback: backend /local/domain/0/backend/qdisk/0/51712/state wanted state 6 still waiting state 5 libxl: debug: libxl_event.c:671:devstate_timeout: backend /local/domain/0/backend/qdisk/0/51712/state wanted state 6 timed out libxl: debug: libxl_event.c:606:libxl__ev_xswatch_deregister: watch w=0x1eb3e88 wpath=/local/domain/0/backend/qdisk/0/51712/state token=3/1: deregister slotnum=3 libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x1eb3e88: deregister unregistered libxl: error: libxl_device.c:935:device_backend_callback: unable to remove device with path /local/domain/0/backend/qdisk/0/51712 libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x1eb3f10: deregister unregistered libxl: error: libxl.c:1724:device_addrm_aocomplete: unable to remove vbd with id 51712 libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x1eb38e0: complete, rc=-9 libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x1eb38e0: destroy libxl_device_disk_remove failed. xc: debug: hypercall buffer: total allocations:4 total releases:4 xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 xc: debug: hypercall buffer: cache current size:2 xc: debug: hypercall buffer: cache hits:2 misses:2 toobig:0VHD-based domU can't start too with the following disk config ['/home/data/centos-6.vhd,vhd,xvda,rw']: Parsing config from /etc/xen/otrs-testlibxl: debug: libxl_create.c:1342:do_domain_create: ao 0x6fbbd0: create: how=(nil) callback=(nil) poller=0x6fc1a0 libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown libxl: debug: libxl_device.c:234:disk_try_backend: Disk vdev=xvda, backend phy unsuitable due to format vhd libxl: debug: libxl_device.c:286:libxl__device_disk_set_backend: Disk vdev=xvda, using backend qdisk libxl: debug: libxl_create.c:797:initiate_domain_create: running bootloaderlibxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=(null) spec.backend=qdisk libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=qdisk libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x6fc400: deregister unregistered libxl: debug: libxl.c:2712:local_device_attach_cb: locally attaching qdisk /dev/xvda libxl: error: libxl_device.c:1225:libxl__wait_for_backend: Backend /local/domain/0/backend/qdisk/0/51712 not ready libxl: error: libxl_bootloader.c:405:bootloader_disk_attached_cb: failed to attach local disk for bootloader execution libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x6fc528: deregister unregistered libxl: error: libxl_bootloader.c:276:bootloader_local_detached_cb: unable to detach locally attached disk libxl: error: libxl_create.c:1022:domcreate_rebuild_done: cannot (re-)build domain: -3 libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x6fbbd0: complete, rc=-3 libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x6fbbd0: inprogress: poller=0x6fc1a0, flags=ic libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x6fbbd0: destroy xc: debug: hypercall buffer: total allocations:25 total releases:25 xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 xc: debug: hypercall buffer: cache current size:2 xc: debug: hypercall buffer: cache hits:21 misses:2 toobig:2So the main question is how to use VHD-based images with Xen 4.4? Is it possible with upstream qemu? It is strange that I created this centos-6.vhd image with the same disk configuration (second disk after ISO). With regards, Andrey. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |