Skip to content

Instantly share code, notes, and snippets.

@DevWellington
Last active August 29, 2015 14:05
Show Gist options
  • Save DevWellington/ae234975e607adfe7399 to your computer and use it in GitHub Desktop.
Save DevWellington/ae234975e607adfe7399 to your computer and use it in GitHub Desktop.
Commands VirtualBox.
#Variables:
ServerName - String (Example: Server01)
macAddress - String (Example: 000027D15bE8)
# Commands
# verificar VMs ativas
vboxmanage list runningvms
# status VMs
VBoxManage list vms -l | grep -e ^Name: -e ^State | sed s/\ \ //g | cut -d: -f2-
# ligar VM
VBoxManage startvm ServerName --type headless
# desligar VM
VBoxManage controlvm ServerName poweroff
# Alterar mac
vboxmanage modifyvm VMName --macaddress1 macAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment