Manage VirtualBox Virtual Machines from command line

Code

Manage VirtualBox Virtual Machines from command line.
List, Start VMs from the command line

List

vboxmanage list vms
"NextCloud" {00000000-0000-0000-0000-000000000000}
"HomeAssistant" {00000000-0000-0000-0000-000000000001}

Start

vboxmanage startvm --headless "NextCloud"
Oracle VM VirtualBox Command Line Management Interface Version 9.8.99
(C) 2005-2033 Oracle Corporation
All rights reserved

Stop

boxmanage  controlvm "NextCloud" poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Register

VBoxManage registervm /home/user/VirtualBoxVMs/Windows/Windows.vbox

Rename

VBoxManage modifyvm OldName --name NewName