# 使用 Homebrew, MacPorts, Nix 安装 vfkit

查看 vfkit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:vfkit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vfkit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vfkit
```

  证据: MacPorts ports tree: sysutils/vfkit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#vfkit
```

  证据: nixpkgs package indexes: pkgs/by-name/vf/vfkit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:vfkit
- **软件包管理器:** Homebrew
- **版本:** 0.6.4
- **来源摘要:** Command-line hypervisor using Apple's Virtualization Framework
- **主页:** <https://github.com/crc-org/vfkit>
- **仓库:** <https://github.com/crc-org/vfkit>
- **最后更新:** 2026-07-07T19:15:06Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vfkit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.6.4
## 项目历史与用法

vfkit is a small command-line virtual-machine monitor for macOS built on Apple's Virtualization framework. It was created in the crc-org ecosystem to provide a native, Go-oriented hypervisor path for local container and OpenShift workflows on Apple Silicon Macs.

### 项目历史

The vfkit repository was created in January 2022, during the period when local VM-based developer tools were adapting to Apple Silicon. CRC had historically used HyperKit on macOS, but the CRC team documented two pressures in 2022: HyperKit was x86_64-only and lacked M1 support, while maintaining QEMU builds would bring a much larger codebase and maintenance surface.

vfkit's design uses Apple's Virtualization framework through Code-Hex/vz Go bindings. Conference material from FOSDEM and Container Plumbing Days in 2023 described the project as a native macOS hypervisor written in Go, intended to wrap Apple's framework in a long-lived CLI process and a Go configuration API.

### 采用历史

vfkit's first clear adoption niche was CRC and podman-machine style local container virtualization on macOS. Container Plumbing Days 2023 explicitly described vfkit as a good fit for crc and podman-machine because Apple's framework offered modern Linux VM features on macOS while keeping the hypervisor codebase small.

The tool has also become visible as a standalone package in developer package managers, but its main significance remains as infrastructure beneath higher-level local development environments rather than as a general desktop VM application.

### 使用方式

Users invoke vfkit with explicit VM resources, a bootloader, disk images, and devices such as virtio-serial, virtio-fs, virtio-blk, virtio-rng, and virtio-net. The process starts the VM when vfkit starts and terminates it when vfkit exits, which fits supervisor-driven tools that need a controllable VM process.

The project also exposes github.com/crc-org/vfkit/pkg/config so Go programs can generate vfkit command lines programmatically. That API is useful for tools such as CRC that want to own the user workflow while delegating the macOS VM monitor layer to vfkit.

### 为什么软件包爱好者会关心

vfkit is one of the small command-line answers to a packaging-era problem created by Apple's architecture transition: how to ship local Linux VM support on macOS without bundling a large cross-platform emulator stack. Its importance is mainly in the Mac developer-tooling layer where container engines and Kubernetes distributions need reproducible VM startup.

### 时间线

- 2022-01: crc-org/vfkit was created on GitHub.
- 2022-06: CRC documented the need to move beyond HyperKit for M1 support and evaluated Apple's Virtualization framework.
- 2023-02: vfkit was presented in the FOSDEM Go devroom as a native macOS hypervisor written in Go.
- 2023: Container Plumbing Days presented vfkit as a minimal hypervisor using Apple's Virtualization framework and suitable for crc and podman-machine.
- 2026-01: GitHub releases show vfkit v0.6.x releases.

### Related projects

- vfkit is closely related to crc-org/crc, Podman machine, Apple's Virtualization framework, HyperKit, QEMU, and Code-Hex/vz. In this family, vfkit is the narrow CLI layer over Apple's framework rather than a broad emulator or a full user-facing VM manager.

### 来源

- <https://api.github.com/repos/crc-org/vfkit>
- <https://api.github.com/repos/crc-org/vfkit/releases?per_page=3>
- <https://archive.fosdem.org/2023/schedule/event/govfkit/attachments/slides/5847/export/events/attachments/govfkit/slides/5847/fosdem2023_go_devroom_vfkit.pdf>
- <https://containerplumbing.org/sessions/2023/vfkit_a_minimal_.html>
- <https://crc.dev/blog/posts/2022-06-15-vfkit/>
- <https://github.com/crc-org/vfkit>
- <https://github.com/crc-org/vfkit/blob/main/doc/usage.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 其他软件包管理器记录

- Nix - vfkit: normalized package name match | nixpkgs package indexes: pkgs/by-name/vf/vfkit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - vfkit: normalized package name match | MacPorts ports tree: sysutils/vfkit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/vfkit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/vfkit.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
