Skip to content
This is the documentation for main, which is not released yet. Read the latest.

Hypervisors

Each instance runs under a hypervisor: the virtual machine monitor that runs its guest. Dicer carries two, built into dicerd:

Both run the same images and kernels. Both support pausing, standby, snapshots, forks and rate limits. The few things that differ are listed under Differences.

Versions

A daemon carries more than one version of a hypervisor, so that a new one can be tried without giving up the old. dicer info lists them, the default first:

$ dicer info
    Hypervisors: cloud-hypervisor v53.0.0 (default), v49.0.0 (deprecated), v48.0.0 (deprecated)
                 firecracker v1.17.0

An instance runs the default version of its hypervisor unless it names one with --hypervisor-version. When the default changes, an instance that names no version moves to the new one the next time it boots. Resuming it from standby, or restoring or forking a memory snapshot, does not move it, because only the version that froze the guest can resume it.

Support and deprecation

  • The default is the newest release Dicer supports. A new hypervisor release is added, as the default, once it passes Dicer’s end-to-end tests. A patch release is a version of its own.
  • An older version is deprecated once it is no longer the default, and kept for what still uses it: instances that name it, guests running or frozen on it, and memory snapshots it took.
  • A deprecated version is kept for at least two minor releases of Dicer after the one that deprecated it. One deprecated in 0.4.0 is still there in 0.5 and 0.6, and is removed in 0.7.0 at the earliest. The release notes say when a version is deprecated, and list its removal among the breaking changes.
  • A version with a security flaw its project will not fix may be removed sooner, in any release, whose notes say so.

Dicer says when something uses a deprecated version. dicer info marks it, and the API reports it in HypervisorInfo.deprecated_versions. dicer run, dicer create, dicer update and dicer compose up warn when an instance names it. The daemon logs a warning whenever it boots an instance on it. Each time the daemon starts, it also logs a warning for each instance, guest and memory snapshot that still uses it.

The versions this release of Dicer carries:

HypervisorVersionStatus
Cloud Hypervisorv53.0.0Default
Cloud Hypervisorv49.0.0Deprecated in 0.4.0
Cloud Hypervisorv48.0.0Deprecated in 0.4.0
Firecrackerv1.17.0Default

Before a version is removed

Move off a deprecated version before upgrading to a release without it. After the upgrade, what still uses it is stuck:

Still on the versionAfter the upgradeBefore it
An instance that names itRefuses to startName another with dicer update --hypervisor-version, or --hypervisor-version "" for the default
A running instanceKeeps running, but cannot be paused, resized, snapshotted or put on standby, and stopping it ends its hypervisor without a clean shutdownRestart it
An instance on standbyCannot be resumed; stopping it discards the guestStart it, then restart it
A memory snapshotCannot be restored or forkedRestore or fork it, restart the instance, and take a new snapshot

Disk snapshots need no hypervisor and are unaffected.

Differences

Cloud HypervisorFirecracker
Resizing vCPUs with dicer resizeOn x86_64. KVM on arm64 cannot add vCPUs to a running guestNo: it cannot add vCPUs to a running guest
Resizing memory with dicer resizeReturns without waiting, as it cannot tell when the guest has taken the changeWaits for the guest to take the change
Restoring a memory snapshotv53: on demand, then the rest in the background. v48 and v49: all of the memory before the guest resumesOn demand, only the pages the guest uses
Kernel command lineconsole=ttyS0 reboot=k panic=1 memory_hotplug.online_policy=auto-movableThe same, and pci=off
How the guest ends its hypervisorIt powers offIt resets, as Firecracker has no power button
Directory mountsYes, through the virtiofsd that dicerd carriesNo

How a guest ends its hypervisor is dicer-init’s business, so that difference does not show: an instance ends the same way under either.

Firecracker places the memory a guest can grow into at 512 GiB in the guest’s address space. A host CPU with fewer than 40 bits of physical address cannot reach it, so there Firecracker’s guests cannot be given more memory. See Resizing a running instance and How fast a restore is.