RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1201198 - [RFE] Support HTTP for kernel and initrd paths
Summary: [RFE] Support HTTP for kernel and initrd paths
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 7.3
Assignee: Markus Armbruster
QA Contact: Yiqian Wei
URL:
Whiteboard:
Depends On:
Blocks: 971308 1444027
TreeView+ depends on / blocked
 
Reported: 2015-03-12 09:56 UTC by Ján Tomko
Modified: 2017-10-17 15:20 UTC (History)
28 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 971308
Environment:
Last Closed: 2017-10-17 15:20:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1054419 0 unspecified CLOSED RFE: Allow remote installs with remote download from URL 2021-02-22 00:41:40 UTC

Description Ján Tomko 2015-03-12 09:56:09 UTC
-kernel and -initrd parameters do not support http:

qemu: could not load kernel 'http://127.0.0.1/kernel': No such file or directory

But it works for read-only drives.


This would make remote installs easier, see bug 1054419.

Comment 2 Markus Armbruster 2017-01-27 12:47:41 UTC
-kernel and -initrd take a file name argument.  "Read-only drives" are
much more than files, they're block backends.  I doubt block backends
make sense with -kernel and -initrd.

We could extend -kernel and -initrd to optionally use curl.  I guess
all that'll have in common with the existing HTTP support in block
subsystem is use of curl.  I can't quite see why it needs to be
integrated into QEMU, though; the curl command exists.

I think we could make -kernel and -initd support file descriptors
defined with -add-fd.  Might be convenient for containing qemu-kvm
further.  Libvirt could set up the file descriptor as a pipeline from
curl.

Opinions?

Comment 3 Daniel Berrangé 2017-01-27 12:55:59 UTC
I think having support for the full set of block backend driver is in fact very useful. For example, one common deployment method for OpenStack is to use RBD storage for both the glance image repository and the nova VM images. The kernel and initrd are stored in glance in the same way as images. Currently Nova has to pull the kernel+initrd out of glance to local storage and pass a file path to QEMU.  If the -kernel/-initrd  supported block backend drivers, then Nova could instruct QEMU to load the kernel+initrd straight from the RBD server, avoiding local storage. This would significantly simplify Nova as it would not have to deal with caching of initrd/kernel locally, and the complexity in figuring out when it is safe to purge them from the cache.  The same scenario applies to other network storage backends nova will use like glusterfs, iscsi.

Just passing a file descriptor from libvirt, or implementing curl doesn't really provide a satisfactory solution - as both options would require nova todo multiple copies of the data, rather than just having QEMU directly access the original storage backend.

Comment 4 Ján Tomko 2017-10-17 15:20:08 UTC
This has been open for years and there does not seem to be much demand for it.


Note You need to log in before you can comment on or make changes to this bug.