[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] attach an iso file to a PV guest



Op woensdag 31 juli 2013 15:36:39 schreef Ian Campbell:
> On Wed, 2013-07-31 at 16:20 +0200, Maarten Vanraes wrote:
> > i'm using the xl tools and i want to attach an iso file to a PV.
> 
> Which version of Xen and what does your guest config file contain?
> 
> Please can you provide the result of attempting "xl -vvv create $cfg" with
> your $cfg

thanks to your suggestion to use -vvv i can now see more on what's going on...

this is xen 4.2.2 using the centos repository with kernel: 
3.4.46-8.el6.centos.alt.x86_64


what didn't work:
[ ]# xl -vvv block-attach templ-sl6 
format=raw,vdev=hdb,access=ro,backendtype=tap,devtype=cdrom,target=/path/to/SL-64.iso

output:
-----------
libxl: debug: libxl.c:3211:libxl_device_disk_add: ao 0x1a09a40: create: 
how=(nil) callback=(nil) poller=0x1a09aa0
libxl: debug: libxl_device.c:245:libxl__device_disk_set_backend: Disk vdev=hdb 
spec.backend=tap
DEBUG libxl__blktap_devpath 37 aio:/etc/xen/isos/ScientificLinux/SL-64-
x86_64-2013-03-18-Install-DVD.iso
libxl: error: libxl.c:1866:device_disk_add: failed to get blktap devpath for 
0x1a09bf0

libxl: error: libxl.c:1703:device_addrm_aocomplete: unable to add device
libxl: debug: libxl_event.c:1568:libxl__ao_complete: ao 0x1a09a40: complete, 
rc=-3
libxl: debug: libxl.c:3211:libxl_device_disk_add: ao 0x1a09a40: inprogress: 
poller=0x1a09aa0, flags=ic
libxl: debug: libxl_event.c:1540:libxl__ao__destroy: ao 0x1a09a40: destroy
libxl_device_disk_add failed.
xc: debug: hypercall buffer: total allocations:8 total releases:8
xc: debug: hypercall buffer: current allocations:0 maximum allocations:2
xc: debug: hypercall buffer: cache current size:1
xc: debug: hypercall buffer: cache hits:6 misses:1 toobig:1



what did work:

[ ]# dd if=/dev/zero of=/path/to/zero.iso bs=4k count=20k
[ ]# xl -vvv block-attach templ-sl6 
format=raw,vdev=hdb,access=ro,backendtype=tap,devtype=cdrom,target=/path/to/zero.iso

output:
-------------
libxl: debug: libxl.c:3211:libxl_device_disk_add: ao 0x1040a40: create: 
how=(nil) callback=(nil) poller=0x1040aa0
libxl: debug: libxl_device.c:245:libxl__device_disk_set_backend: Disk vdev=hdc 
spec.backend=tap
DEBUG libxl__blktap_devpath 37 aio:/tmp/file.iso
DEBUG libxl__blktap_devpath 40 /dev/xen/blktap-2/tapdev1
libxl: debug: libxl_event.c:558:libxl__ev_xswatch_register: watch w=0x1040c18 
wpath=/local/domain/0/backend/vbd/43/5632/state token=3/0: register slotnum=3
libxl: debug: libxl.c:3211:libxl_device_disk_add: ao 0x1040a40: inprogress: 
poller=0x1040aa0, flags=i
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x1040c18 
wpath=/local/domain/0/backend/vbd/43/5632/state token=3/0: event 
epath=/local/domain/0/backend/vbd/43/5632/state
libxl: debug: libxl_event.c:646:devstate_watch_callback: backend 
/local/domain/0/backend/vbd/43/5632/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x1040c18 
wpath=/local/domain/0/backend/vbd/43/5632/state token=3/0: event 
epath=/local/domain/0/backend/vbd/43/5632/state
libxl: debug: libxl_event.c:642:devstate_watch_callback: backend 
/local/domain/0/backend/vbd/43/5632/state wanted state 2 ok
libxl: debug: libxl_event.c:595:libxl__ev_xswatch_deregister: watch 
w=0x1040c18 wpath=/local/domain/0/backend/vbd/43/5632/state token=3/0: 
deregister slotnum=3
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch 
w=0x1040c18: deregister unregistered
libxl: debug: libxl_device.c:933:device_hotplug: calling hotplug script: 
/etc/xen/scripts/block add
libxl: debug: libxl_event.c:1568:libxl__ao_complete: ao 0x1040a40: complete, 
rc=0
libxl: debug: libxl_event.c:1540:libxl__ao__destroy: ao 0x1040a40: destroy
xc: debug: hypercall buffer: total allocations:10 total releases:10
xc: debug: hypercall buffer: current allocations:0 maximum allocations:2
xc: debug: hypercall buffer: cache current size:2
xc: debug: hypercall buffer: cache hits:7 misses:2 toobig:1


what also worked:
----------------------------
xl -vvv block-attach templ-sl6 
format=raw,vdev=hdb,access=ro,backendtype=phy,devtype=cdrom,target=/dev/loop1


-- 
BA NV
IT & Security

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.