From c15577565edcc811e4ec2e0a7a4062525cb70995 Mon Sep 17 00:00:00 2001 From: Manohar Castelino Date: Thu, 2 May 2019 20:39:06 +0000 Subject: [PATCH] Firecracker: Fix kernel command line parameters Firecracker does not support pci. It also uses kbd to implement reboot/reset. Fix the kernel boot params to address this. It also does not have good entropy at startup. Use the hardware random number generator to support entropy. Fixes: #1620 Signed-off-by: Manohar Castelino --- virtcontainers/fc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/virtcontainers/fc.go b/virtcontainers/fc.go index dddcfd031d..1c323e418e 100644 --- a/virtcontainers/fc.go +++ b/virtcontainers/fc.go @@ -57,6 +57,13 @@ const ( var fcKernelParams = []Param{ // The boot source is the first partition of the first block device added {"root", "/dev/vda1"}, + {"pci", "off"}, + {"reboot", "k"}, + {"panic", "1"}, + {"iommu", "off"}, + {"8250.nr_uarts", "0"}, + {"net.ifnames", "0"}, + {"random.trust_cpu", "on"}, // Firecracker doesn't support ACPI // Fix kernel error "ACPI BIOS Error (bug)"