Last active
August 29, 2015 14:05
-
-
Save DevWellington/ae234975e607adfe7399 to your computer and use it in GitHub Desktop.
Commands VirtualBox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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