summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-05-15 14:15:58 -0700
committerFranck Cuny <franck@fcuny.net>2021-05-15 14:15:58 -0700
commitf7e7ce5d9b5f721a38b3c40d21bb6acc398eb1b6 (patch)
tree04c1ec75f66462bce987ed4db2c58990dcf2022d
parentreadme: update instructions (diff)
downloadcontainerd-to-vm-f7e7ce5d9b5f721a38b3c40d21bb6acc398eb1b6.tar.gz
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)
-rw-r--r--cmd/c2vm/main.go2
1 files changed, 1 insertions, 1 deletions
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),