Linux command
vboxmanage-controlvm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Pause VM
vboxmanage controlvm [vmname] pause
Resume VM
vboxmanage controlvm [vmname] resume
Reset VM
vboxmanage controlvm [vmname] reset
Power off VM
vboxmanage controlvm [vmname] poweroff
Save state
vboxmanage controlvm [vmname] savestate
Send ACPI shutdown
vboxmanage controlvm [vmname] acpipowerbutton
Take screenshot
vboxmanage controlvm [vmname] screenshotpng [file.png]
Set shared clipboard mode
vboxmanage controlvm [vmname] clipboard mode bidirectional
Connect/disconnect network cable
vboxmanage controlvm [vmname] setlinkstate1 [on|off]
说明
vboxmanage controlvm controls running virtual machines. Manage VM state, send input, modify settings on running VMs. Central command for VM runtime control.
参数
- 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.
- setlinkstate_N_ _on|off_
- Connect or disconnect virtual network cable N.
- nic_N_ _null|nat|bridged|intnet|hostonly_
- Change the type of network adapter N.
- nicpromisc_N_ _deny|allow-vms|allow-all_
- Set promiscuous mode for network adapter N.
- draganddrop _disabled|hosttoguest|guesttohost|bidirectional_
- Set drag and drop mode.
FAQ
What is the vboxmanage-controlvm command used for?
vboxmanage controlvm controls running virtual machines. Manage VM state, send input, modify settings on running VMs. Central command for VM runtime control.
How do I run a basic vboxmanage-controlvm example?
Run `vboxmanage controlvm [vmname] pause` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does pause do in vboxmanage-controlvm?
Suspend VM execution.