about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-05-15 14:15:58 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 13:57:42 -0700
commitd1748cdb2704dcb06aa787bdb0d5bbae6295f4e1 (patch)
tree0de8ea8afe91c0d2547facb35c48905833a77fd3 /users/fcuny
parentreadme: update instructions (diff)
downloadworld-d1748cdb2704dcb06aa787bdb0d5bbae6295f4e1.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)
Diffstat (limited to 'users/fcuny')
-rw-r--r--users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go b/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go
index 37a7704..9b7567e 100644
--- a/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go
+++ b/users/fcuny/exp/containerd-to-vm/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),