vfkit README

The project's README from github.com/crc-org/vfkit. As one markdown file: README.md.

vfkit - Command-line tool to start VMs on macOS

Introduction

vfkit offers a command-line interface to start virtual machines using the macOS Virtualization framework. It also provides a github.com/crc-org/vfkit/pkg/config go package. This package implements a native Go API to generate the vfkit command line.

Usage

See https://github.com/crc-org/vfkit/blob/main/doc/usage.md

Presentations

vfkit has been presented at a few conferences:

Adopters

Installation

vfkit can be installed via brew.

brew install vfkit

Building

From the root direction of this repository, run make.

vfkit (crc-org/vfkit)

Searching Database…

431 ·GitHub
这是什么?vfkit 是一个命令行工具,使用 Apple 内置的 Virtualization 框架在 macOS 上启动虚拟机,它还附带一个 Go 包,可以用编程方式生成 vfkit 命令行。
这只是一个命令行工具,还是也能当库用?两者都有:既有 vfkit CLI 二进制,也有独立的 github.com/crc-org/vfkit/pkg/config Go 包,提供原生 Go API,让你自己构建 vfkit 命令行。
怎么安装 vfkit?最简单的方式是 Homebrew。你也可以从源码自行构建,在仓库根目录运行 make 即可。
实际有哪些人在用 vfkit?它在底层被 minikube(1.35.0+)、Podman(5.0+)、用于本地 OpenShift/MicroShift 集群的 crc,以及通过 Oomol Studio 在 macOS 上运行 Linux 容器的 ovm 所使用。
vfkit 支持哪些平台?仅限 macOS,因为它直接构建在 Apple 的 Virtualization 框架之上,而不是跨平台的虚拟机监控层。
为什么我要直接用 vfkit,而不是直接用 Podman 或 minikube?大多数人用不着:Podman、minikube 和 crc 之类的工具已经在内部嵌入 vfkit 来运行它们的 macOS 虚拟机。只有当你在开发自己的工具、需要在 macOS 上启动和管理 Virtualization 框架虚拟机时,才会直接用到 vfkit。
pkg/config 这个 Go 包用来做什么?它让你用 Go 以编程方式构建 vfkit 虚拟机配置(设备、磁盘、网络等)并生成等价的 vfkit 命令行,而不用手写命令行参数。
vfkit 在哪些场合被介绍过?有,它曾在 Containers Plumbing 2023 和 FOSDEM 2023 上被介绍。
Creator
crc-org
Size
1.3 MB
Stars
431
Age
4y
Commits · 90 Days