Skip to content

Instantly share code, notes, and snippets.

@PetrGlad
Created February 14, 2025 09:51
Show Gist options
  • Save PetrGlad/2b55db22fa3998e47dafe6a99ae8b21f to your computer and use it in GitHub Desktop.
Save PetrGlad/2b55db22fa3998e47dafe6a99ae8b21f to your computer and use it in GitHub Desktop.
Virtualbox tips
# See https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/changenat.html#nat-adv-dns
$env:PATH = $env:PATH + ";C:\Program Files\Oracle\VirtualBox"
VBoxManage list runningvms
VBoxManage startvm <VM-NAME>
# DNS resolver options
VBoxManage modifyvm <VM-NAME> --natdnshostresolver1 on
# or
VBoxManage modifyvm <VM-NAME> --natdnsproxy1 on
# Type in from clipboard (helps entering secrets from a password manager)
VBoxManage controlvm <VM-NAME> keyboardputstring (Get-Clipboard)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment