Uli Staerk
2007-Aug-10 19:28 UTC
Re: [Xen-users] xm block-attach from dom0 and exception looking up device number for /dev/xvda1 - why ?
I still have the same problem as Ian Brown. I mounted the image as follow: # xm block-attach 0 tap:qcow:/var/lib/xend/storage/ba714891-9799-b01c-cc8c-78a7880c4d7d.qcow /dev/xvda1 w 0 Then I can see it in the block-device-list # xm block-list 0 Vdev BE handle state evt-ch ring-ref BE-path 56321 0 0 3 18 8 /local/domain/0/backend/tap/0/56321 And mounting it fails :( # mount /dev/xvda1 /mnt/test mount: /dev/xvda1 is not a valid block device So I tried the the approach with mknod (253 blktap): # mknod /dev/xvda1 b 253 1 # mount /dev/xvda1 /mnt/test mount: /dev/xvda1 is not a valid block device Here the debug output of xen: [2007-08-10 21:09:30 14463] DEBUG (__init__:1072) XendDomainInfo.device_create: [''tap'', [''uname'', ''tap:qcow:/var/lib/xend/storage/ba714891-9799-b01c-cc8c-78a7880c4d7d.qco w''], [''dev'', ''/dev/xvda1''], [''mode'', ''w''], [''backend'', ''0'']] [2007-08-10 21:09:30 14463] DEBUG (__init__:1072) XendDomainInfo.device_create: {''uuid'': ''c9959c8c-d71a-d788-bab1-b5f0a476ebf2'', ''bootable'': 0, ''dev'': ''/dev/xvda1'', ''uname'': ''tap:qcow:/var/lib/xend/storage/ba714891-9799-b01c-cc8c-78a7880c4d7d.qco w'', ''mode'': ''w'', ''backend'': ''0''} [2007-08-10 21:09:30 14463] DEBUG (__init__:1072) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''56321'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/tap/0/56321''} to /local/domain/0/device/vbd/56321. [2007-08-10 21:09:30 14463] DEBUG (__init__:1072) DevController: writing {''domain'': ''Domain-0'', ''frontend'': ''/local/domain/0/device/vbd/56321'', ''uuid'': ''c9959c8c-d71a-d788-bab1-b5f0a476ebf2'', ''dev'': ''/dev/xvda1'', ''state'': ''1'', ''params'': ''qcow:/var/lib/xend/storage/ba714891-9799-b01c-cc8c-78a7880c4d7d.qcow'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''0'', ''type'': ''tap''} to /local/domain/0/backend/tap/0/56321. [2007-08-10 21:09:30 14463] DEBUG (__init__:1072) Waiting for 56321. [2007-08-10 21:09:30 13911] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/tap/0/56321/hotplug-status. [2007-08-10 21:09:30 13911] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/tap/0/56321/hotplug-status. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sebastian Kricner
2007-Aug-12 22:51 UTC
[Xen-users] Re: xm block-attach from dom0 and exception looking up device number for /dev/xvda1 - why ?
xm block-attach and so on is for attaching "new drives" or "extra drives" to a already running domU _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users