VZ

⚡ 要求Lima >= 0.14, macOS >= 13.0

“vz” 选项使用 macOS Virtualization.Framework 提供的原生虚拟化支持。

“vz” has been the default driver for macOS hosts since Lima v1.0.

An example configuration (no need to be specified manually):

limactl start --vm-type=vz
vmType: "vz"

base:
- template://_images/ubuntu
- template://_default/mounts

注意事项

  • “vz” 选项仅在 macOS 13 或更高版本上受支持
  • Virtualization.framework 不支持运行"intel 客户机在 arm 上",反之亦然

已知问题

  • “vz” 不支持 legacyBIOS: true 选项,因此像 centos-streamoraclelinux-8 这样的客户机在 Intel Mac 上无法工作。
  • 使用 “vz” 运行 lima 时,${LIMA_HOME}/<INSTANCE>/serial.log 将不包含内核启动日志
  • 在 macOS 13.5 之前的 Intel Mac 上,Linux 内核 v6.2(由 Ubuntu 23.04、Fedora 38 等使用)已知在 vz 上无法启动。 kernel v6.3 及更高版本应该可以启动,只要它是通过 GRUB 启动的。 https://github.com/lima-vm/lima/issues/1577#issuecomment-1565625668 该问题在 macOS 13.5 中已修复。