firecracker-microvm / firecracker-demo

A demo running 4000 Firecracker microVMs.
http://firecracker-microvm.io
Apache License 2.0
247 stars 56 forks source link

boot-time: disable keyboard probing from cmdline #45

Closed acatangiu closed 2 years ago

acatangiu commented 2 years ago

Used kernel probes for keyboards and wastes 500ms on boottime:

...
[    0.032012] IP-Config: Complete:
[    0.032014]      device=eth0, hwaddr=02:fc:00:00:00:00, ipaddr=169.254.0.1, mask=255.255.255.252, gw=169.254.0.2
[    0.032015]      host=169.254.0.1, domain=, nis-domain=(none)
[    0.032015]      bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
[    0.544946] input: AT Raw Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    0.545852] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
[    0.545860] VFS: Mounted root (ext4 filesystem) readonly on device 254:0.
...

Since firecracker doesn't emulate a keyboard anyway, also tell the kernel to skip looking for one using the cmdline.

Fixes https://github.com/firecracker-microvm/firecracker-demo/issues/44