Control VirtualBox from console. VBoxManage

11. februńĀris, 2020

Add port forwarding

Bash
VBoxManage modifyvm "name-of-vm" --natpf1 "guestssh,tcp,,6379,,6379"

List all available virtual machines

Bash
VBoxManage list vms

Start virtual machine in headless mode

JavaScript
VBoxManage startvm "name-of-vm" --type headless