From a6b9c681b156bd10da86ca5476b65a8e38d8ad6d Mon Sep 17 00:00:00 2001 From: Florian Wilhelm <52838694+fwilhe2@users.noreply.github.com> Date: Tue, 5 Sep 2023 22:26:00 +0200 Subject: [PATCH] lima, limactl: add page (#10648) Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/lima.md | 9 +++++++++ pages/common/limactl.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pages/common/lima.md create mode 100644 pages/common/limactl.md diff --git a/pages/common/lima.md b/pages/common/lima.md new file mode 100644 index 000000000..2a2e34f6b --- /dev/null +++ b/pages/common/lima.md @@ -0,0 +1,9 @@ +# lima + +> This command is an alias of `limactl shell` for the default VM instance. +> You can also set the `$LIMA_INSTANCE` environment variable to work on a different instance. +> More information: . + +- View documentation for the original command: + +`tldr limactl` diff --git a/pages/common/limactl.md b/pages/common/limactl.md new file mode 100644 index 000000000..d3f8b3d6c --- /dev/null +++ b/pages/common/limactl.md @@ -0,0 +1,33 @@ +# limactl + +> Virtual machine manager for Linux guests, with multiple VM templates available. +> Can be used to run containers on macOS, but also for generic virtual machine use cases on macOS and Linux hosts. +> More information: . + +- List VMs: + +`limactl list` + +- Create a VM using the default settings and optionally provide a name and/or a template (see `limactl create --list-templates` for available templates): + +`limactl create --name {{vm_name}} template://{{debian|fedora|ubuntu|…}}` + +- Start a VM (this might install some dependencies in it and take a few minutes): + +`limactl start {{vm_name}}` + +- Open a remote shell inside a VM: + +`limactl shell {{vm_name}}` + +- Run a command inside a VM: + +`limactl shell {{vm_name}} {{command}}` + +- Stop/shutdown a VM: + +`limactl stop {{vm_name}}` + +- Delete a VM: + +`limactl remove {{vm_name}}`