brew cask install virtualbox virtualbox-extension-pack
# For RHEL 7
yum install VirtualBox
vboxmanage 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_64
vboxmanage 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.118
VBoxManage createvm --name "windows_10" --register
VBoxManage list vms
vboxmanage showvminfo "windows_10"
vboxmanage guestproperty enumerate "windows_10"
VBoxManage modifyvm "windows_10" --memory 2048
VBoxManage startvm "windows_10"
VBoxManage startvm "windows_10" --type headless
VBoxManage list runningvms
OUTPUT
"windows_10" {fa38d6fe-f302-48f3-aa88-86c49115ea3c}
VBoxManage controlvm "windows_10" poweroff soft
VBoxManage 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 none
vboxmanage 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 = allow
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg
VBoxManage modifyvm "windows_10" --autostart-enabled on
VBoxManage setproperty autostartdbpath /etc/vbox
# RHEL or SYSTEMCTL systems
sudo systemctl restart vboxautostart-service
# Other older systems
sudo service vboxautostart-service restart
VirtualBox 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