VirtualBox General Notes

Check version of installed Guest Additions:

modinfo vboxguest

Running VirtualBox as a service on Windows: http://techgenix.com/start-virtualbox-service/

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonehd --format VDI "C:\Users\Chris\VirtualBox VMs\centos7-vtatdb2-w\CENTOS7-vtatdb2-disk001.vmdk" "C:\Users\Chris\VirtualBox VMs\centos7-vtatdb2-w\CENTOS7-vtatdb2-disk001.vdi"

How to convert VMDK to VDI

See notes at https://www.bonusbits.com/wiki/HowTo:Convert_VMDK_to_VDI

How to resize a Virtual Drive

# VBoxManage modifyhd /path/to/file.vdi --resize 30000

Note, if you have a vmdk file you need to follow this (see this link) and then update the UUID following this link or navigating to $HOME/.VirtualBox/VirtualBox.xml and updating the information there (make a backup first):

# VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
# VBoxManage modifyhd "cloned.vdi" --resize 51200
# mv source.vmdksource.vmdk.BAK 
# VBoxManage clonehd "cloned.vdi" "source.vmdk" --format vmdk

Possible mouse unresponsiveness issue in 5.1.18 https://forums.virtualbox.org/viewtopic.php?f=3&t=79034

Running in Headless Mode

# List virtual machines
VBoxManage list vms
"MyVM" {e4b0c92c-4301-4a7d-8af8-fe02fed00451}

# Start VM in headless mode
VBoxManage startvm MyVM –type headless

# Power off VM
VBoxManage controlvm MyVM poweroff

Run VirtualBox Headless at Startup in Windows 10

February 2015

Updated October 2016 for wodim issues

Installing Guest Additions in run-level 3 on CentOS6, CentOS7, CentOS8 Stream:

Updated 18 March 2019