hyperkit

Lightweight hypervisor for running virtual machines on macOS

brewmacoslinux
Try with needOr install directly
Source

About

Toolkit for embedding hypervisor capabilities in your application

Commands

hyperkit

Examples

start a virtual machine with specified cpu and memory$ hyperkit -c 2 -m 2G -d /path/to/disk.img
run a linux vm with network and serial console access$ hyperkit -c 4 -m 4G -s 0:0,hostbridge -s 31,lpc -l com1,stdio -d /path/to/disk.img
boot vm from iso image file$ hyperkit -c 2 -m 1G -d /path/to/disk.img -f /path/to/boot.iso
create a virtual machine with disk and network interfaces$ hyperkit -c 2 -m 2G -s 2:0,virtio-net -s 3:0,virtio-blk,/path/to/disk.img
check hyperkit version and available options$ hyperkit -h