Vermin基于 Go 的智能虚拟机管理器

联合创作 · 2023-10-01 08:38

Vermin 是一款适用于 Linux、Windows 和 macOS 的智能、简单且功能强大的命令行工具。它专为开发人员/测试人员和其他 IT 工作人员而设计,可以通过一个命令获得全新的 VM 环境。它使用 VirtualBox 来运行 VM。Vermin 将代表你获取镜像。

可以将 Vermin 视为 Vagrant Boxes 的现代 CLI。当你需要一种简单的方法在几分钟内启动并运行 Linux 环境时,可以使用 Vermin。

安装

Vermin 使用 VirtualBox v6.0 或更高版本作为底层管理程序来创建和运行虚拟机。所以你需要先下载并安装它。

要在 macOS 和 Linux 上安装/更新,请运行:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/mhewedy/vermin/master/install.sh)"

要在 Windows (PowerShell) 上安装/更新,请运行:

# Should run as Administrator
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/mhewedy/vermin/master/install.ps1'))

用法:

Create, control and connect to VirtualBox VM instances

Usage:
  vermin [command]

Examples:

You can use vermin by creating a VM from an image.

To list all images available:
$ vermin images

Then you can create a vm using:
$ vermin create <image>


Available Commands:
  commit      Commit a VM into a new Image
  completion  Generates shell completion scripts
  cp          Copy files/folders between a VM and the local filesystem or between two VMs
  create      Create a new VM
  exec        Run a command in a running VM
  gui         open the GUI for the VM
  help        Help about any command
  hypervisor  print the name of the detected hypervisor
  images      List remote and cached images
  ip          Show IP address for a running VM
  mount       Mount local filesystem inside the VM
  port        Forward port(s) from a VM to host
  ps          List VMs
  restart     Restart one or more VMs
  rm          Remove one or more VM
  rmi         Remove one or more Image
  ssh         ssh into a running VM
  start       Start one or more stopped VMs
  stop        Stop one or more running VMs
  tag         Add or remove tag to a VM
  update      Update configuration of a VM

Flags:
  -h, --help      help for vermin
  -v, --version   version for vermin

Use "vermin [command] --help" for more information about a command.

可以在安装后开始使用 Vermin 使用:

$ vermin create <vagrant image name>

# example using ubuntu focal image
$ vermin create hashicorp/focal64

# also you can use rhel8 using:
$ vermin create generic/rhel8

随着时间演变的 Stars 数量

浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报