@openstrap/virtualbox
v0.2.0
Published
OpenStrap VirtualBox provider plugin
Readme
@openstrap/virtualbox
The VirtualBox provider for openstrap: a blueprint says provider: virtualbox, and the machine it
describes is made, started, reached and, when asked, removed through VBoxManage.
What it does with a blueprint's target:
- fetches the image openstrap resolved (a cloud image in a Vagrant box), turns it into a VDI disk
with
qemu-img, and grows it to the size the blueprint asks for; - makes an EFI machine on the ARM or x86 platform, with a virtio NAT card, and forwards SSH and
every port of a
publicservice to the same port on this computer; - seeds it with cloud-init: the
openstrapuser and its key, password login off; - publishes a port on a machine that already exists without restarting it, because VirtualBox takes a NAT rule while the machine runs.
It needs VirtualBox 7.1 or newer and qemu-img (brew install --cask virtualbox, brew install qemu).
On Apple silicon VirtualBox runs ARM guests only.
