LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vboxmanage-controlvm

Control running VirtualBox virtual machines

TLDR

Pause VM
$ vboxmanage controlvm [vmname] pause
copy
Resume VM
$ vboxmanage controlvm [vmname] resume
copy
Reset VM
$ vboxmanage controlvm [vmname] reset
copy
Power off VM
$ vboxmanage controlvm [vmname] poweroff
copy
Save state
$ vboxmanage controlvm [vmname] savestate
copy
Send ACPI shutdown signal (graceful)
$ vboxmanage controlvm [vmname] acpipowerbutton
copy
Take screenshot
$ vboxmanage controlvm [vmname] screenshotpng [file.png]
copy
Set shared clipboard mode
$ vboxmanage controlvm [vmname] clipboard mode bidirectional
copy
Connect/disconnect network cable
$ vboxmanage controlvm [vmname] setlinkstate1 [on|off]
copy

SYNOPSIS

vboxmanage controlvm vmname command [options]

DESCRIPTION

vboxmanage controlvm controls running virtual machines. Manage VM state, send input, modify settings on running VMs. Central command for VM runtime control.

PARAMETERS

pause

Suspend VM execution.
resume
Resume paused VM.
reset
Hard reset VM.
poweroff
Force power off.
savestate
Save and stop VM.
acpipowerbutton
Send ACPI shutdown.
screenshotpng file
Capture screen.
setvideomodehint w h bpp
Set video mode.
clipboard mode disabled|hosttoguest|guesttohost|bidirectional
Set shared clipboard mode.
setlinkstateN on|off
Connect or disconnect virtual network cable N.
nicN null|nat|bridged|intnet|hostonly
Change the type of network adapter N.
nicpromiscN deny|allow-vms|allow-all
Set promiscuous mode for network adapter N.
draganddrop disabled|hosttoguest|guesttohost|bidirectional
Set drag and drop mode.

CAVEATS

The poweroff and reset commands are equivalent to pulling the power cord — use acpipowerbutton for graceful shutdown. The VM must be in a running state for most commands. Network-related changes (nic, setlinkstate) take effect immediately on the running VM.

SEE ALSO

Copied to clipboard
Kai