restart

limactl restart

Restart a running instance

limactl restart INSTANCE [flags]

Options

      --block-device strings          Host block devices to attach (macOS VZ), e.g. /dev/disk4; requires a protected helper and 'limactl sudoers --block-device' setup
      --cpus int                      Number of CPUs
      --disk float32                  Disk size in GiB
      --dns ipSlice                   Specify custom DNS (disable host resolver) (default [])
  -f, --force[=true|false]            Force stop and restart the instance
  -h, --help[=true|false]             help for restart
      --memory float32                Memory in GiB
      --mount strings                 Directories to mount, suffix ':w' for writable (Do not specify directories that overlap with the existing mounts)
      --mount-inotify[=true|false]    Enable inotify for mounts
      --mount-none[=true|false]       Remove all mounts
      --mount-only strings            Similar to --mount, but overrides the existing mounts
      --mount-type string             Mount type (reverse-sshfs, 9p, virtiofs)
      --mount-writable[=true|false]   Make all mounts writable
      --nested-virt[=true|false]      Enable nested virtualization
      --network strings               Additional networks, e.g., "vzNAT" or "lima:shared" to assign vmnet IP
      --param stringArray             Set a template parameter, e.g. name=value. Can be passed multiple times.
      --progress[=true|false]         Show provision script progress by tailing cloud-init logs
      --rosetta[=true|false]          Enable Rosetta (for vz instances)
      --set stringArray               Modify the template inplace, using yq syntax. Can be passed multiple times. See 'limactl help yq-restrictions' for limitations.
      --shell string                  User login shell in the guest (e.g. /bin/bash, /bin/zsh)
      --ssh-port uint16               SSH port (0 for random)
      --video[=true|false]            Enable video output (has negative performance impact for QEMU)
      --vm-type string                Virtual machine type

Options inherited from parent commands

      --debug[=true|false]   Debug mode
      --log-format string    Set the logging format [text, json] (default "text")
      --log-level string     Set the logging level [trace, debug, info, warn, error]
      --tty[=true|false]     Enable TUI interactions such as opening an editor. Defaults to true when stdout is a terminal. Set to false for automation.
  -y, --yes[=true|false]     Alias of --tty=false

SEE ALSO

  • limactl - Lima: Linux virtual machines