Lima快速起步
安装
Lima依赖 QEMU 7.0或更高版本,不过只在使用QEMU驱动时需要
推荐使用 Homebrew 安装:
使用
快速启动:
执行
limactl
启动limactl start
此时会进入一个交互菜单页面,使用上下键来选择菜单:
执行
limactl
启动进入交互菜单> Proceed with the current configuration
Open an editor to review or modify the current configuration
Choose another template (docker, podman, archlinux, fedora, ...)
Exit
选则默认的
Proceed with the current configuration
就会下载ubuntu-24.10
服务器镜像进行运行选择
Choose another template (docker, podman, archlinux, fedora, ...)
就可以选择不同的 Lima操作系统模版
备注
为了方便起停虚拟机,可以安装 xbar 来方便交互
定制
使用以下命令从
docker
模版(参考 Lima操作系统模版 )创建一个default
会话:
从模版选择定制启动
limactl create --name=default template://docker
limactl start default
模版
lima
通过模版来指导启动的虚拟机镜像获得、文件系统挂载等。 Lima操作系统模版 提供了官方支持的发行版莫辨,以及容器、 Kubernetes 模版