<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Daniel,</p>
<p><br>
</p>
<p>I have noticed that it will fail exactly as you said if <cdrom> is first in the boot order, if <hd> is first in the boot order the XML validates and it starts as usual.</p>
<div><br>
</div>
first in log except below is with cdrom set to first in boot order, second is with hd set first.
<div><br>
</div>
<div>
<div>2018-08-09 11:39:28.625+0000: starting up libvirt version: 3.9.0, package: 14.el7_5.6 (CentOS BuildSystem <http://bugs.centos.org>, 2018-06-27-14:13:57, x86-01.bsys.centos.org), qemu version: 2.10.0(qemu-kvm-ev-2.10.0-21.el7_5.4.1), hostname: devnode9.com</div>
<div>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name guest=kvm104,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-82-kvm104/master-key.aes -machine
 pc-i440fx-rhel7.5.0,accel=kvm,usb=off,dump-guest-core=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 5827d6a9-ef0e-4331-9d0e-fa742c70d596 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-82-kvm104/monitor.sock,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=http://distro.ibiblio.org:80/puppylinux/puppy-xenial/32/xenialpup-7.5-uefi.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on
 -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=2 -drive file=/dev/Kvmvol/kvm104_img,format=raw,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -netdev tap,fd=30,id=hostnet0,vhost=on,vhostfd=32 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:16:3c:07:e0:c9,bus=pci.0,addr=0x3 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:4,password -device cirrus-vga,id=video0,bus=pci.0,addr=0x2
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on</div>
<div>2018-08-09T11:39:28.690350Z qemu-kvm: -drive file=http://distro.ibiblio.org:80/puppylinux/puppy-xenial/32/xenialpup-7.5-uefi.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on: Driver 'http' is not whitelisted</div>
<div>2018-08-09 11:39:28.699+0000: shutting down, reason=failed</div>
<div><br>
</div>
<div><br>
</div>
<div>2018-08-09 11:40:04.963+0000: starting up libvirt version: 3.9.0, package: 14.el7_5.6 (CentOS BuildSystem <http://bugs.centos.org>, 2018-06-27-14:13:57, x86-01.bsys.centos.org), qemu version: 2.10.0(qemu-kvm-ev-2.10.0-21.el7_5.4.1), hostname: devnode9.com</div>
<div>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name guest=kvm104,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-83-kvm104/master-key.aes -machine
 pc-i440fx-rhel7.5.0,accel=kvm,usb=off,dump-guest-core=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 5827d6a9-ef0e-4331-9d0e-fa742c70d596 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-83-kvm104/monitor.sock,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive if=none,id=drive-ide0-0-1,readonly=on -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=2
 -drive file=/dev/Kvmvol/kvm104_img,format=raw,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=30,id=hostnet0,vhost=on,vhostfd=32 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:16:3c:07:e0:c9,bus=pci.0,addr=0x3
 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:4,password -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on</div>
<br>
So my best guess based on the logs is that http is simply being ignored when it is not set to primary, not sure if that is the desired behavior.</div>
<div><br>
</div>
<div>Cheers.<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Daniel P. Berrangé <berrange@redhat.com><br>
<b>Sent:</b> 09 August 2018 12:27<br>
<b>To:</b> Inception Hosting<br>
<b>Cc:</b> Vasiliy Tolstov; libvirt-users@redhat.com<br>
<b>Subject:</b> Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Thu, Aug 09, 2018 at 10:50:46AM +0000, Inception Hosting wrote:<br>
> Just a quick correction and apologies, the actual issue is that http<br>
> will not work, https will so I dont think this is a bug as such I<br>
> think this is by design likely for security.<br>
> <br>
> <br>
> Looking at the man page for qemu-kvm it states http will work with<br>
> examples given however only https works, my best guess from looking<br>
> at the spec file from the srpm is that it has only been enabled in<br>
> the centos qemu-kvm-ev with https:<br>
<br>
Yes, the qemu RPMs in centos & RHEL have disabled support for http://<br>
protocol, however, I expect that to immediately fail when trying to<br>
start the guest. eg<br>
<br>
# /usr/libexec/qemu-kvm  -drive file=http://example.com/foo/bar -accel tcg<br>
qemu-kvm: -drive file=http://example.com/foo/bar: Driver 'http' is not whitelisted<br>
<br>
so I'm puzzelled why your guest successfully started at all with a<br>
http protocol in use.<br>
<br>
Are you able to share your QEMU log from /var/log/libvirt/qemu/$GUESTNAME.log<br>
from a VM that fails to launch with http ?<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" id="LPlnk387394" previewremoved="true">https://berrange.com</a>      -o-   
<a href="https://www.flickr.com/photos/dberrange" id="LPlnk620376" previewremoved="true">
https://www.flickr.com/photos/dberrange</a> :|
<div id="LPBorder_GT_15338148992930.6558926289622655" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15338148992900.4522176108418592" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_15338148992910.0703164042614044" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_15338148992910.3884357051014058" style="background-color: rgb(255, 255, 255); height: 166px; position: relative; margin: auto; display: table; width: 250px;">
<a id="LPImageAnchor_15338148992910.19828023157147112" href="https://www.flickr.com/photos/dberrange" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." id="LPThumbnailImageID_15338148992910.5544926814747586" style="display: inline-block; max-width: 250px; max-height: 250px; height: 166px; width: 250px; border-width: 0px; vertical-align: bottom;" width="250" height="166" src="https://c1.staticflickr.com/1/873/40602347890_5a83293856_b.jpg"></a></div>
</td>
<td id="TextCell_15338148992910.33735942853661394" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15338148992910.05351213062258031"></div>
<div id="LPTitle_15338148992910.445684480876928" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15338148992910.8091742913670903" href="https://www.flickr.com/photos/dberrange" target="_blank" style="text-decoration: none;">Daniel | Flickr</a></div>
<div id="LPMetadata_15338148992920.13400218968391742" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.flickr.com</div>
<div id="LPDescription_15338148992920.6535196099099363" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Explore Daniel's 1,578 photos on Flickr!</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
|: <a href="https://libvirt.org" id="LPlnk613422" previewremoved="true">https://libvirt.org</a>         -o-           
<a href="https://fstop138.berrange.com" id="LPlnk69999" previewremoved="true">https://fstop138.berrange.com</a> :|
<div id="LPBorder_GT_15338149272470.4949025608201594" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15338149272460.7962311099867831" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15338149272470.9727558347630039" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15338149272470.7047875551076241"></div>
<div id="LPTitle_15338149272470.6246415774171521" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15338149272470.30603514542592447" href="https://libvirt.org/" target="_blank" style="text-decoration: none;">libvirt: The virtualization API</a></div>
<div id="LPMetadata_15338149272470.3568452254594323" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
libvirt.org</div>
<div id="LPDescription_15338149272470.5736245546553134" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
libvirt, virtualization, virtualization API</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
|: <a href="https://entangle-photo.org" id="LPlnk476740" previewremoved="true">https://entangle-photo.org</a>    -o-   
<a href="https://www.instagram.com/dberrange" id="LPlnk568323" previewremoved="true">
https://www.instagram.com/dberrange</a> :|
<div id="LPBorder_GT_15338149581610.04340023299353013" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15338149581590.7791598005932867" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_15338149581590.4903878160207782" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_15338149581590.16277653959365335" style="background-color: rgb(255, 255, 255); height: 150px; position: relative; margin: auto; display: table; width: 150px;">
<a id="LPImageAnchor_15338149581600.28016506352664505" href="https://www.instagram.com/dberrange" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." id="LPThumbnailImageID_15338149581600.23342706287193082" style="display: inline-block; max-width: 250px; max-height: 250px; height: 150px; width: 150px; border-width: 0px; vertical-align: bottom;" width="150" height="150" src="https://scontent-cdt1-1.cdninstagram.com/vp/4ba54fb8119ad17c3b0a98321c357a2d/5BF2CDF5/t51.2885-19/s150x150/20968587_481132782267587_5503861153710735360_a.jpg"></a></div>
</td>
<td id="TextCell_15338149581600.13145818842494106" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15338149581600.23228880911649208"></div>
<div id="LPTitle_15338149581600.3657703658299283" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15338149581600.3888724117342146" href="https://www.instagram.com/dberrange" target="_blank" style="text-decoration: none;">Daniel Berrangé (@dberrange) • Instagram photos and videos</a></div>
<div id="LPMetadata_15338149581600.8309841958552355" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.instagram.com</div>
<div id="LPDescription_15338149581600.3105202461440897" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
178 Followers, 60 Following, 136 Posts - See Instagram photos and videos from Daniel Berrangé (@dberrange)</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>