Virtualbox, how do I start, shutdown and save a machine state using the terminal in Linux
ID: 358
Category: Ubuntu
Added: 28th of July 2023
Views: 987
To start a virtual machine from the terminal you need to find the uuid of the virtual machine you would like to start.
I have two virtual machines installed on my pc, Windows 2000 and Debian. To get the uuid enter the following command in the terminal
VBoxManage list vms
Output
"Windows 2000" {5d4270b1-fff5-43c8-8829-f96b63d51f7a}
"Debian" {e55fecee-f3b5-458d-841c-3ab40a740584}
To start the Windows 2000 virtual machine enter the following command in the terminal
VirtualBoxVM --startvm 5d4270b1-fff5-43c8-8829-f96b63d51f7a
To shutdown the Windows 2000 virtual machine enter the following command in the terminal
VBoxManage controlvm "Windows 2000" poweroff
To save the Windows 2000 machine state
VBoxManage controlvm "Windows 2000" savestate
Related Tips & Tutorials
➔ Oracle VirtualBox only displaying 32-bit version(s), when setting up new Virtual Machine on Linux➔ Oracle VirtualBox, Unable to insert virtual optical disk