install from commandline
$ hdiutil attach VirtualBox-6.0.24-139119-OSX.dmg
$ sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /
# or
$ usr/bin/sudo -E -- /usr/bin/env LOGNAME=marslo USER=marslo USERNAME=marslo \
/usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox-beta/6.1.0_BETA2,134221/VirtualBox.pkg \
-target / \
-applyChoiceChangesXML /var/folders/s3/mg_f3cv54nn7y758j_t46zt40000gn/T/choices20201221-6005-wroatz.xml
uninstall
install vms
Run Windows 10 on Mac with VirtualBox for Mac OS X
vboxmanager
setup VboxManager
completion
$ git clone https://github.com/alexandregz/VBoxManage-completion.git \
~/.marslo/completion
$ cat >> ~/.marslo/.marslorc << EOF
[ -f ~/.marslo/completion/VBoxManage-completion.bash ] \
&& source ~/.marslo/completion/VBoxManage-completion.bash
EOF
list
$ VBoxManage list vms
run
$ VBoxManage startvm ubuntu --type gui
delete vms
$ VBoxManage unregistervm --delete "Name of Virtual Machine"
troubleshooting
collect debug report
$ VBoxBugReport
Oracle VM VirtualBox Bug Report Tool 6.1.16
(C) 2020 Oracle Corporation
All rights reserved.
0% - collecting VBoxSVC.log...
20% - collecting VBoxSVC.log.1...
40% - collecting VirtualBox.xml...
60% - collecting HostUsbDevices...
80% - collecting HostUsbFilters...
100% - compressing...
Report was written to '2020-12-21-11-03-22-bugreport.tgz'
Result Code: NS_ERROR_FAILURE (0x80004005)
-
disable System Integrity Protection first
- macOS
$ csrutil status $ csrutil disable
- macOS
-
$ csrutil enable --without debug --without fs $ VBOX_KEXT_DESTINATION=/Library/Apple/System/Library/Extensions $ sudo cp -a "/Library/Application Support/VirtualBox/VBoxDrv.kext" "$VBOX_KEXT_DESTINATION"/VBoxDrv.kext $ sudo cp -a "/Library/Application Support/VirtualBox/VBoxNetFlt.kext" "$VBOX_KEXT_DESTINATION"/VBoxNetFlt.kext $ sudo cp -a "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" "$VBOX_KEXT_DESTINATION"/VBoxNetAdp.kext $ sudo cp -a "/Library/Application Support/VirtualBox/VBoxUSB.kext" "$VBOX_KEXT_DESTINATION"/VBoxUSB.kext $ sudo kextload -b org.virtualbox.kext.VBoxDrv $ sudo kextload -b org.virtualbox.kext.VBoxNetFlt $ sudo kextload -b org.virtualbox.kext.VBoxNetAdp $ sudo kextload -b org.virtualbox.kext.VBoxUSB
- and
$ sudo kextload -b org.virtualbox.kext.VBoxDrv $ sudo kextload -b org.virtualbox.kext.VBoxNetFlt $ sudo kextload -b org.virtualbox.kext.VBoxNetAdp $ sudo kextload -b org.virtualbox.kext.VBoxUSB
- and
other info
$ sudo kmutil showloaded | grep org.virtualbox
No variant specified, falling back to release
196 3 0xffffff7fa2336000 0xb2000 0xb2000 org.virtualbox.kext.VBoxDrv (6.1.16) DAF044F0-5043-3B8E-8758-5A462567BDAA <8 6 5 3 1>
197 0 0xffffff7fa2408000 0x2000 0x2000 org.virtualbox.kext.VBoxNetAdp (6.1.16) 76200407-D2F0-3D84-BCCF-7EEA18F16654 <196 6 5 1>
199 0 0xffffff7fa2413000 0x5000 0x5000 org.virtualbox.kext.VBoxUSB (6.1.16) CA33FA52-5933-3F0E-9B40-8B1ECF4D6A36 <198 196 64 8 6 5 3 1>
200 0 0xffffff7fa240e000 0x4000 0x4000 org.virtualbox.kext.VBoxNetFlt (6.1.16) C93EAF6A-676F-3370-BAE2-BDFD2BF16582 <196 8 6 5 3 1>
$ sudo kmutil load -b org.virtualbox.kext.VBoxDrv
$ sudo dmesg