# GhostVM

在 Apple Silicon Mac 上创建和管理相互隔离的 macOS 工作区，可通过图形应用或 \`vmctl\` 命令行工具操作。

> 这是 OpenNavo 上 GhostVM 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/ghostvm>

- **最新版本**: `2.11.0`
- **开发者**: GhostVM
- **主页**: <https://ghostvm.org/>
- **分类**: [虚拟化与容器](https://opennavo.com/zh/categories/virtualization)
- **安装**: `brew install --cask ghostvm`
- **近 30 天安装**: 16
- **Homebrew**: Homebrew 仍提供，OpenNavo 已暂停推荐
- **下载地址**: <https://github.com/groundwater/GhostVM/releases/download/v2.11.0/GhostVM-2.11.0.dmg>
- **SHA-256**: `c974493ca79cf8c0071dbb72da39cedd5e35ab87f19cbd72de542989e619432d`
- **附带命令**: vmctl

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "GhostVM.app"
      ],
      "target": "/Applications/GhostVM.app"
    },
    "phase": "install",
    "sources": [
      "GhostVM.app"
    ],
    "target": "/Applications/GhostVM.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/GhostVM.app/Contents/PlugIns/Helpers/vmctl.app/Contents/MacOS/vmctl"
      ],
      "target": "$HOMEBREW_PREFIX/bin/vmctl"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/GhostVM.app/Contents/PlugIns/Helpers/vmctl.app/Contents/MacOS/vmctl"
    ],
    "target": "$HOMEBREW_PREFIX/bin/vmctl",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "/Library/Logs/DiagnosticReports/GhostVM_*.diag",
            "~/Library/Application Support/GhostVM",
            "~/Library/Application Support/org.ghostvm.GhostVM",
            "~/Library/Caches/org.ghostvm.ghostvm",
            "~/Library/HTTPStorages/org.ghostvm.ghostvm",
            "~/Library/Preferences/org.ghostvm.ghostvm.helper.plist",
            "~/Library/Preferences/org.ghostvm.ghostvm.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

GhostVM 是一款 macOS 虚拟机应用，可在 Mac 上创建独立工作区。其官网介绍，工作区彼此隔离，也与主机隔离，并可控制每个工作区能够访问哪些主机数据。应用提供图形界面，随附的 `vmctl` 命令行工具则支持在终端管理工作区。

- 通过剪贴板同步、共享文件夹、文件传输和端口转发连接工作区与主机；剪贴板访问需要权限提示，传输的文件默认会被隔离。
- 创建快照和克隆，也可将工作区挂起到磁盘，以便之后恢复。
- 默认使用 NAT 网络，也可选择桥接网络；每个工作区都有独立的网络堆栈。
- 工作区以独立的 `.GhostVM` 文件夹形式保存，可复制、移动或备份。

使用 `brew install --cask ghostvm` 安装。该 cask 会将 `GhostVM.app` 安装到 `/Applications`，并提供命令行工具 `vmctl`。GhostVM 需要 macOS 15（Sequoia）或更高版本以及 Apple Silicon Mac；官网指定为 M1 或更新机型。它采用 Apple 的 Virtualization.framework，官网称其可在不进行模拟的情况下提供接近原生的速度。

[GhostVM 官方网站](https://ghostvm.org/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/g/ghostvm.rb)

## 系统要求

- macOS 15 起 · 应用版本: 2.11.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 核查于 2026-12-06
  - <https://github.com/groundwater/GhostVM/releases/download/v2.11.0/GhostVM-2.11.0.dmg>
  - SHA-256: `c974493ca79cf8c0071dbb72da39cedd5e35ab87f19cbd72de542989e619432d`

## 卸载

- `brew uninstall --cask ghostvm`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask ghostvm`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `/Library/Logs/DiagnosticReports/GhostVM_*.diag` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/GhostVM` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/org.ghostvm.GhostVM` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/org.ghostvm.ghostvm` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/org.ghostvm.ghostvm` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/org.ghostvm.ghostvm.helper.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/org.ghostvm.ghostvm.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 3.0.20260601003045-prerelease (2026-06-01)

#### Highlights
- Compatible with macOS 15 and later.
- Adds disk image format selection when creating VMs, with Sparse File and ASIF options.
- Adds `vmctl init --disk-format sparse-file|asif`.
- Preserves ASIF as the default on supported macOS versions while allowing backwards-compatible sparse-file disks for macOS 15+ hosts.
- Adds safeguards for ASIF migration so the source VM is not reused as the destination and existing destination bundles are rejected instead of overwritten.
- Left-aligns the Create VM Disk Format and Restore Image dropdowns.

#### Verification
- `xcodegen generate`
- `VMMigrationServiceTests` and `InitOptionsTests` passed
- `GhostVM` Debug build passed
- `make debug-dmg` completed, notarized, and stapled

#### Artifact
- `GhostVM-3.0.20260601003045.dmg`
- SHA-256: `8901a650b7ec249f1a8ea1fab3c0bc5c321f59b5d4ddc1e0591aba28b1c1c471`

## 资料与来源

- <https://opennavo.com/zh/apps/ghostvm>
- <https://opennavo.com/zh/apps/ghostvm/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostvm.rb> · 核查于 2026-12-06
- <https://formulae.brew.sh/cask/ghostvm>
