Skip to content

Explore options for graceful shutdown of Linux-based VMs #336

@cmainas

Description

@cmainas

When we deploy Linux-based containers over Linux VMs, we strongly encourage the use of urunit as an init process for the VM. When the container's application exits inside the VM, then urunit will perform a graceful shutdown of the VM. However, in all other cases we do not perform a graceful shutdown, which in some cases might cause issues (e.g. corruption of block devices without unmounting) . A very typical such scenario is in a deployment where a container needs to restart or stop. In that scenario urunc will simply kill the VM and therefore no graceful shutdown takes place.

In that context, it would be helpful to explore ways we can notify urunit to perform the graceful shutdown for both Qemu and Firecrakcer in all supported architectures (x86 and arm64).

For example, in Firecracker, we can use SendCtrlAltDel bu this only works for x86 architectures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExplorationIssues requiring further explorationMonitorsMonitors and their executionenhancementNew feature or request

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions