---
---
Starting a Linux instance
Run limactl start <INSTANCE>
to create and start the first instance. The <INSTANCE>
name defaults to "default".
Choose Proceed with the current configuration
, and wait until "READY" to be printed on the host terminal.
For automation, --tty=false
flag can be used for disabling the interactive user interface.
Customization
To create an instance "default" from a template "docker":
See also the command reference:
Executing Linux commands
Run limactl shell <INSTANCE> <COMMAND>
to launch <COMMAND>
on the VM:
See also the command reference:
For the "default" instance, this command can be shortened as lima <COMMAND>
.
The lima
command also accepts the instance name as the environment variable $LIMA_INSTANCE
.
SSH can be used too:
Using SSH without the -F
flag
To connect directly without specifying the config file, add this to your ~/.ssh/config
:
Then you can connect directly:
Shell completion
To enable bash completion, add
source <(limactl completion bash)
to~/.bash_profile
.To enable zsh completion, see
limactl completion zsh --help