book
  • README
  • cheatsheet
    • bash
      • builtin
      • syntactic sugar
      • cmd
      • havefun
    • text-processing
      • awk
      • sed
      • html
      • json
      • regex
      • unicode
    • osx
    • curl
    • tricky
    • widget
    • proxy
    • colors
    • math
    • media
    • ssl
      • keystore
      • verification
      • server
      • client
      • tricky
    • windows
      • powershell
      • choco
      • wsl
      • wt
      • shortcut
      • clsid
      • env
      • shell:folder
  • vim
    • nvim
    • install
    • color
    • plugins
      • usage
      • other plugins
      • deprecated
    • tricky
    • viml
    • windows
    • troubleshooting
  • devops
    • admin tools
    • ssh
    • git
      • config
      • alias
      • submodule
      • eol
      • example
      • gerrit
        • gerrit API
      • github
      • troubleshooting
      • tricky
      • statistics
    • pre-commit
    • release-tools
    • tmux
      • cheatsheet
    • ansible
    • vault
    • artifactory
      • api
      • cli
      • aql
      • nginx cert
    • klocwork
      • kwadmin
      • kwserver
      • api
      • q&a
    • elk
    • mongodb
    • android
    • mobile
  • jenkins
    • config
      • windows
    • appearance
    • troubleshooting
    • jenkinsfile
      • utility
      • parallel
      • build
      • envvar
      • properties
      • trigger
      • node
    • script
      • job
      • build
      • stage
      • agent
      • security & authorization
      • exception
      • monitor
      • tricky
    • api
      • blueocean
    • cli
    • plugins
      • kubernetes
      • docker
      • shared-libs
      • lockable-resource
      • ansicolor
      • badge
      • groovy-postbuild
      • simple-theme
      • customizable-header
      • artifactory
      • jira-steps
      • job-dsl
      • build-timeline
      • crumbIssuer
      • coverage
      • uno-choice
      • tricky
  • virtualization
    • kubernetes
      • init
        • kubespray
        • kubeadm
          • environment
          • crio v1.30.4
          • docker v1.15.3
          • HA
        • addons
        • etcd
      • kubectl
        • pod
        • deploy
        • replicasets
        • namespace
        • secrets
      • node
      • certificates
      • events
      • kubeconfig
      • kubelet
      • troubleshooting
      • cheatsheet
      • auth
      • api
      • tools
        • monitor
        • helm
        • network
        • minikube
    • docker
      • run & exec
      • voume
      • remove
      • show info
      • dockerfile
      • dockerd
      • tricky
      • troubleshooting
      • windows
    • crio
    • podman
  • ai
    • prompt
  • osx
    • apps
      • init
      • brew
    • defaults
    • system
    • network
    • script
    • tricky
  • linux
    • devenv
    • util
      • time & date
      • output formatting
      • params
      • tricky
    • nutshell
    • disk
    • network
    • troubleshooting
    • system
      • apt/yum/snap
      • authorization
      • apps
      • x11
    • ubuntu
      • systemctl
      • x
    • rpi
  • programming
    • groovy
    • python
      • config
      • basic
      • list
      • pip
      • q&a
    • others
    • archive
      • angular
      • maven
      • mysql
        • installation
        • logs
      • ruby
        • rubyInstallationQ&A
  • tools
    • fonts
    • html & css
    • Jira & Confluence
    • node & npm
      • gitbook
      • hexo
      • github.page
      • code themes
    • app
      • microsoft office
      • vscode
      • virtualbox
      • iterm2
      • browser
      • skype
      • teamviewer
      • others
  • quotes
  • english
Powered by GitBook
On this page
  • install from commandline
  • uninstall
  • install vms
  • vboxmanager
  • troubleshooting

Was this helpful?

  1. tools
  2. app

virtualbox

PreviousvscodeNextiterm2

Last updated 1 year ago

Was this helpful?

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

install vms

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"

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'
    • $ csrutil status
      $ csrutil disable
  • $ 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
    • $ 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

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

disable first

uninstall
VirtualBox_Uninstall.tool)
Run Windows 10 on Mac with VirtualBox for Mac OS X
troubleshooting
Result Code: NS_ERROR_FAILURE (0x80004005)
test builds
System Integrity Protection
macOS
solution
and
install from commandline
uninstall
install vms
Run Windows 10 on Mac with VirtualBox for Mac OS X
vboxmanager
list
run
delete vms
troubleshooting
collect debug report
Result Code: NS_ERROR_FAILURE (0x80004005)
uninstall