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

Inception Hosting inbox at inceptionhosting.com
Wed Aug 8 12:11:22 UTC 2018


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?

I have tried putting the complete path including fqdn in the url_path as well, with and without http://

Many Thanks.

Anthony.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20180808/a6e728fb/attachment.htm>


More information about the libvirt-users mailing list