Inception Hosting
2018-Aug-09 10:20 UTC
Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU
Resolved this morning, the issue is that the qemu-kvm-ev rpm's released by centos have not been compiled with curl support, I rebuild it myself from source with curl support and it works fine now. Thanks you for your input everyone. ________________________________ From: Vasiliy Tolstov <v.tolstov@selfip.ru> Sent: 09 August 2018 10:32:07 To: Inception Hosting Cc: libvirt-users@redhat.com Subject: Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU ср, 8 авг. 2018 г. в 15:11, Inception Hosting <inbox@inceptionhosting.com>:> > 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: >Usually such errors because url not available from host system. Can you try curl this host and address from node? -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru
Daniel P. Berrangé
2018-Aug-09 10:29 UTC
Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU
On Thu, Aug 09, 2018 at 10:20:54AM +0000, Inception Hosting wrote:> Resolved this morning, > > > the issue is that the qemu-kvm-ev rpm's released by centos have not > been compiled with curl support, I rebuild it myself from source with > curl support and it works fine now.Hmm that's bad, because if curl was disabled, we really want to have QEMU refuse to startup, rather than start & give you an inaccessible file. So this feels like a QEMU bug to me that ought to be reported. 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 :|
Inception Hosting
2018-Aug-09 10:50 UTC
Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU
Just a quick correction and apologies, the actual issue is that http will not work, https will so I dont think this is a bug as such I think this is by design likely for security. Looking at the man page for qemu-kvm it states http will work with examples given however only https works, my best guess from looking at the spec file from the srpm is that it has only been enabled in the centos qemu-kvm-ev with https: except from spec file: - Resolves: bz#1132569 (RFE: Enable curl driver in qemu-kvm-rhev: https only) example working XML except: <disk type='network' device='cdrom'> <driver name='qemu' type='raw'/> <source protocol="https" name="/debian-cd/current/amd64/iso-cd/debian-9.5.0-amd64-netinst.iso"> <host name="mirror.bytemark.co.uk" port="443"/> </source> <target dev='hdb' bus='ide' tray='closed'/> <readonly/> I have tested this on a base install with the regular packages and can confirm that it works fine over https. Thanks again and sorry for any confusion caused. ________________________________ From: Daniel P. Berrangé <berrange@redhat.com> Sent: 09 August 2018 11:29:25 To: Inception Hosting Cc: Vasiliy Tolstov; libvirt-users@redhat.com Subject: Re: [libvirt-users] Mount URL as cdrom/iso KVM/QEMU On Thu, Aug 09, 2018 at 10:20:54AM +0000, Inception Hosting wrote:> Resolved this morning, > > > the issue is that the qemu-kvm-ev rpm's released by centos have not > been compiled with curl support, I rebuild it myself from source with > curl support and it works fine now.Hmm that's bad, because if curl was disabled, we really want to have QEMU refuse to startup, rather than start & give you an inaccessible file. So this feels like a QEMU bug to me that ought to be reported. 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 :|