firecracker-microvm / firecracker-microvm/firectl

Extract kernel and cmdline from guest disk

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
644
Forks
91
PR merge metrics
No merged PRs in 30d

Description

As firecracker itself requires the kernel to be provided from the host, firectl relays this requirement. This is okay for environments where either one controls both the hypervisor and the guest, or where it is not desired that the VM itself may provide a kernel[1].

I would however like to be able to pass only a root drive to firectl and have it extract the kernel and/or cmdline from a well-defined path (e. g. `/boot/vmlinux` and `/boot/cmdline`). For example, I stumbled upon this issue when I created a VM with the kernel configured as per [the sample config](https://github.com/firecracker-microvm/firecracker/blob/1a325f4/resources/microvm-kernel-config), and it wouldn’t mount my XFS root.

I am going to implement this anyway, but I’m glad to submit a patch if you’re not opposed to this feature per se.

[1]: I’m not sure whether kexec would work from inside, though …

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.