Skip to content

Instantly share code, notes, and snippets.

@olijf
Last active January 13, 2023 09:54
Show Gist options
  • Save olijf/d3adaa103121fd95c3673b143cd911e0 to your computer and use it in GitHub Desktop.
Save olijf/d3adaa103121fd95c3673b143cd911e0 to your computer and use it in GitHub Desktop.
virtualbox tips and tricks

bcdedit /set hypervisorlaunchtype off

from: https://martinvanbeurden.nl/blog/virtualbox-numlock-weirdness/

set path=%path%;C:\Program Files\Oracle\VirtualBox
cd "%HOMEPATH%\VirtualBox VMs"

:: Set numlock boot
for /f "tokens=*" %G in ('dir /b /a:d ".\*"') do (VBoxManage setextradata "%G" GUI/HidLedsSync "0")

:: Set nested hw virt
for /f "tokens=*" %G in ('dir /b /a:d ".\*"') do (VBoxManage modifyvm "%G" --nested-hw-virt on)

within vm to get file sharing to work: sudo adduser $USER vboxsf or sudo usermod --append --groups vboxsf $USER (debian: su - and then adduser $USER sudo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment