Open ghost opened 3 years ago
qemu supports this directly with the -kernel, -initrd, and -append command line options. You don't need to use iPXE as qemu will boot directly into the kernel when specified. Adding support for this will allow for much smaller download sizes when creating Linux images. Canonical provides the kernel, initrd, and a SquashFS image at https://images.maas.io/ephemeral-v3/stable/
Very interesting feature ! CentOS supports such installation. Which is way more efficient than downloading that 600M netinstall. It's a common way of bootstraping a VM with virt-install/virt-manager.
This issue was originally opened by @kpostrup as hashicorp/packer#5503. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Currently Packer supports booting QEMU builders from ISO files (
iso_url
).I propose a new feature that enables Packer to install directly from
kernel
andinitrd
. Technically this could be by means of injecting iPXE config or similar.The
virt-install
tool provides a similar--location
option. See: http://manpages.ubuntu.com/manpages/xenial/man1/virt-install.1.htmlWhat I am looking for is perhaps a little more flexible, where we can define
kernel
,initrd
and kernel parameters.This would greatly simplify e.g. Ubuntu installations.