From f7e7ce5d9b5f721a38b3c40d21bb6acc398eb1b6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 15 May 2021 14:15:58 -0700 Subject: c2vm: fix kernel boot options By specifying these options we can speed up the boot process from 0.9 second to 0.15 seconds. Without these options, the linux kernel spends a few milliseconds probing the device, which is useless in our context (see https://github.com/firecracker-microvm/firecracker/blob/main/docs/api_requests/actions.md#intel-and-amd-only-sendctrlaltdel) --- cmd/c2vm/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/c2vm/main.go b/cmd/c2vm/main.go index 37a7704..9b7567e 100644 --- a/cmd/c2vm/main.go +++ b/cmd/c2vm/main.go @@ -255,7 +255,7 @@ func bootVM(ctx context.Context, rawImage, linuxKernel, firecrackerBinary string LogLevel: "debug", SocketPath: firecrackerSock, KernelImagePath: linuxKernel, - KernelArgs: "console=ttyS0 reboot=k panic=1 pci=off init=/init.sh random.trust_cpu=on", + KernelArgs: "console=ttyS0 reboot=k panic=1 acpi=off pci=off i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd init=/init.sh random.trust_cpu=on", Drives: devices, MachineCfg: models.MachineConfiguration{ VcpuCount: firecracker.Int64(1), -- cgit 1.4.1