clone
limactl clone
克隆 Lima 实例
概述
克隆 Lima 实例。
不要与 ’limactl copy’ (’limactl cp’) 混淆。
limactl clone OLDINST NEWINST [flags]
选项
--cpus int [limactl edit] CPU 数量
--disk float32 [limactl edit] 磁盘大小(GiB)
--dns ipSlice [limactl edit] 指定自定义 DNS(禁用主机解析器) (default [])
-h, --help help for clone
--memory float32 [limactl edit] 内存大小(GiB)
--mount strings [limactl edit] 要挂载的目录,后缀 ':w' 表示可写(不要指定与现有挂载重叠的目录)
--mount-inotify [limactl edit] 为挂载启用 inotify
--mount-none [limactl edit] 移除所有挂载
--mount-type string [limactl edit] 挂载类型 (reverse-sshfs, 9p, virtiofs)
--mount-writable [limactl edit] 使所有挂载可写
--network strings [limactl edit] 附加网络,例如 "vzNAT" 或 "lima:shared" 来分配 vmnet IP
--rosetta [limactl edit] 启用 Rosetta(用于 vz 实例)
--set string [limactl edit] 使用 yq 语法就地修改模板
--video [limactl edit] 启用视频输出(对 QEMU 有负面性能影响)
从父命令继承的选项
--debug 调试模式
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl - Lima: Linux 虚拟机