[libvirt-users] Mount URL as cdrom/iso KVM/QEMU

Daniel P. Berrangé berrange at redhat.com
Wed Aug 8 13:22:22 UTC 2018


On Wed, Aug 08, 2018 at 12:11:22PM +0000, Inception Hosting wrote:
> Hi Folks,
> 
> 
> According to the examples in http://libvirt.org/formatdomain.html#elementsDisks it should be possible to mount an iso /url as a cdrom, the example given is:
> 
> 
> </disk>
>   <disk type='network' device='cdrom'>
>     <driver name='qemu' type='raw'/>
>     <source protocol="http" name="url_path">
>       <host name="hostname" port="80"/>
>     </source>
>     <target dev='hde' bus='ide' tray='open'/>
>     <readonly/>
>   </disk>
> 
> 
> I am unable to get this to work at all and wondered if I am just missing something obvious:
> 
> Boot failed: Could not read from CDROM (code 0003)
> 
> Actual XML in use snippet:
> 
> <disk type='network' device='cdrom'>
>     <driver name='qemu' type='raw'/>
>     <source protocol="http" name="/debian-cd/current/amd64/iso-cd/debian-9.5.0-amd64-netinst.iso">
>       <host name="mirror.bytemark.co.uk" port="80"/>
>     </source>
>     <target dev='hdb' bus='ide' tray='open'/>
>     <readonly/>
>   </disk>
> libvirtd (libvirt) 3.9.0 QEMU emulator version 2.10.0
> 
> Is anyone able to offer any assistance or tips?

This XML looks reasonable to me. There have been bugs in QEMU's curl driver
though, so it might be worth retesting with latest QEMU 2.12.0, or even the
3.0.0-rc4 release from yesterday, to check if its a bug in that version of
QEMU


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvirt-users mailing list