diff options
author | Franck Cuny <franck@fcuny.net> | 2021-05-15 14:15:58 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:57:42 -0700 |
commit | d1748cdb2704dcb06aa787bdb0d5bbae6295f4e1 (patch) | |
tree | 0de8ea8afe91c0d2547facb35c48905833a77fd3 | |
parent | readme: update instructions (diff) | |
download | world-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)
-rw-r--r-- | users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go | 2 |
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), |