liquidmetal-dev / flintlock

Lock, Stock, and Two Smoking MicroVMs. Create and manage the lifecycle of MicroVMs backed by containerd.
Mozilla Public License 2.0
522 stars 32 forks source link

Kill firecracker on shutdown if CtrlAltDel action did not work (ARM) #152

Closed yitsushi closed 2 years ago

yitsushi commented 2 years ago

Known issues and Limitations

The SendCtrlAltDel API request is not supported for aarch64 enabled microVMs.

Source: https://github.com/firecracker-microvm/firecracker#known-issues-and-limitations

Read more: https://github.com/firecracker-microvm/firecracker/blob/main/docs/api_requests/actions.md#intel-and-amd-only-sendctrlaltdel

Suggested approach:

  1. Send CtrlAltDel action
  2. Wait maybe 1 second
  3. If it's still running, kill the process
richardcase commented 2 years ago

And some discussions around this: https://github.com/firecracker-microvm/firecracker/issues/1370 https://github.com/firecracker-microvm/firecracker/pull/1534