brew cask install virtualbox virtualbox-extension-pack# For RHEL 7
yum install VirtualBoxvboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.14-112924.vbox-extpack vboxconfig
# VBox Config might recommend to update the kernel, for my box:
yum install kernel-devel-3.10.0-327.el7.x86_64vboxmanage import vm.ovf --dry-run
# See if any of the settings need to be changed
vboxmanage import prevalent.ovf --vsys 0 --memory 10240# vboxmanage modifyvm vm --vrde on --vrdeport <PORT> --vrdeaddress <HOST IP>
vboxmanage modifyvm vm --vrde on --vrdeport 5012 --vrdeaddress 10.254.30.118VBoxManage createvm --name "windows_10" --registerVBoxManage list vmsvboxmanage showvminfo "windows_10"vboxmanage guestproperty enumerate "windows_10"VBoxManage modifyvm "windows_10" --memory 2048VBoxManage startvm "windows_10"VBoxManage startvm "windows_10" --type headlessVBoxManage list runningvmsOUTPUT
"windows_10" {fa38d6fe-f302-48f3-aa88-86c49115ea3c}VBoxManage controlvm "windows_10" poweroff softVBoxManage snapshot "windows_10" take "Aug 1 - windows_10"VBoxManage snapshot "windows_10" restore "Aug 1 - windows_10"# Remove from vbox
vboxmanage unregistervm "windows_10"
# Remove from vbox and filesystem
vboxmanage unregistervm "windows_10" --delete- Can Modify the VM in any state.
- Requires poweroff of the VM.
vboxmanage modifyvm "windows_10" --audio nonevboxmanage modifyvm "windows_10" --nic1 bridged --bridgeadapter1 eno1
# or add promisc mode (deny|allow-vms|allow-all)
vboxmanage modifyvm "windows_10" --nic1 bridged --nicpromisc1 allow-all --bridgeadapter1 eno1- RHEL or SYSTEMCTL systems
# If you are the only user set it to allow
default_policy = allowVBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfgVBoxManage modifyvm "windows_10" --autostart-enabled onVBoxManage setproperty autostartdbpath /etc/vbox# RHEL or SYSTEMCTL systems
sudo systemctl restart vboxautostart-service
# Other older systems
sudo service vboxautostart-service restartVirtualBox Useful Commands · GitHub
VBox CLI · GitHub
VirtualBox Download
VBoxManage Manual
Virtualbox in Terminal
VRDE Romote managment
https://www.virtualbox.org/manual/ch07.html#vboxheadless
https://www.virtualbox.org/manual/ch08.html