[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 16:41:47 schreef Ian Campbell:
> On Wed, 2013-07-31 at 17:17 +0200, Maarten Vanraes wrote:
> > 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/t
> > o/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
> 
> Weird. There were some oddities with cdrom and/or blktap in 4.2, which
> may be improved in 4.3.
> 
> Can you try without the backendtype=tap bit (just say nothing). I hope
> this will cause libxl to automatically pick something which actually
> works.
> 
> Unless you know you have some specific requirement for blktap this is
> good advice in general.

Well, it's because not specifying it, that i tried specifying it...

when i didn't specify it, there were 2 extra lines:

the first was: 
"libxl: debug: libxl_device.c:245:libxl__device_disk_set_backend: Disk 
vdev=hdb spec.backend=unknown"

i don't remember the second one, but the 3rd one was the one with backend=tap


but, this is really some oddity, i never thought that the contents of a file 
was inspected before actually adding it to the guest...

even hybrid iso files had this issue...

i was trying to use pvgrub's cdrom boot specification to install a machine...

i'm now gonna use loop mode... which is the only thing that works
-- 
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®.