DTechs

VirtualBox Command Line Samples — List

vboxmanage controlvm <VM Name> acpipowerbutton
vboxmanage startvm <VM Name> --type headless
vboxmanage modifyvm <VM Name>--cpuhotplug on
vboxmanage modifyvm <VM Name> --unplugcpu 1
vboxmanage modifyvm <VM Name> --cpus 1

To check the guest configuration from inside of the guest with command line::

VBoxControl guestproperty enumerate
Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 6.0.2
(C) 2008-2019 Oracle Corporation
All rights reserved.

Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1548657641487373700, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1548657641495929300, flags: <NULL>
Name: /VirtualBox/HostInfo/GUI/LanguageID, value: tr_TR, timestamp: 1548657977230321500, flags: RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 0800272FBD94, timestamp: 1548657641497438702, flags: <NULL>
Name: /VirtualBox/GuestInfo/OS/ServicePack, value: , timestamp: 1548657641487878102, flags: <NULL>
Name: /VirtualBox/HostInfo/VBoxVerExt, value: 6.0.2, timestamp: 1548656903710056401, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/1/Status, value: Up, timestamp: 1548657641497942505, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/1/V4/Broadcast, value: 192.168.56.255, timestamp: 1548657641497942502, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1548657641497438701, flags: <NULL>
Name: /VirtualBox/VMInfo/ResumeCounter, value: 2, timestamp: 1548657977094694800, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/1/V4/Netmask, value: 255.255.255.0, timestamp: 1548657641497942503, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/1/MAC, value: 08002736B9D9, timestamp: 1548657641497942504, flags: <NULL>
Name: /VirtualBox/GuestInfo/OS/Version, value: #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018, timestamp: 1548657641487878101, flags: <NULL>
Name: /VirtualBox/GuestAdd/VersionExt, value: 6.0.2, timestamp: 1548657641487878104, flags: <NULL>
Name: /VirtualBox/GuestAdd/Revision, value: 128162, timestamp: 1548657641487878105, flags: <NULL>
Name: /VirtualBox/HostGuest/SysprepExec, value: , timestamp: 1548656903656341701, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, timestamp: 1548657656629862100, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1548657641497438703, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/0/Name, value: enp0s3, timestamp: 1548657641497942500, flags: <NULL>
Name: /VirtualBox/HostGuest/SysprepArgs, value: , timestamp: 1548656903656341701, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestAdd/Version, value: 6.0.2, timestamp: 1548657641487878103, flags: <NULL>
Name: /VirtualBox/VMInfo/ResetCounter, value: 2, timestamp: 1548657611825358601, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/HostInfo/VBoxRev, value: 128162, timestamp: 1548656903710056402, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 10.0.2.255, timestamp: 1548657641497438700, flags: <NULL>
Name: /VirtualBox/HostInfo/VBoxVer, value: 6.0.2, timestamp: 1548656903710056400, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: sguney, timestamp: 1548657656614099500, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/1/V4/IP, value: 192.168.56.102, timestamp: 1548657641497942501, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/1/Name, value: enp0s8, timestamp: 1548657641497942506, flags: <NULL>
Name: /VirtualBox/GuestInfo/Net/Count, value: 2, timestamp: 1548658148984735400, flags: <NULL>
Name: /VirtualBox/GuestInfo/OS/Release, value: 4.18.0-13-generic, timestamp: 1548657641487878100, flags: <NULL>
Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false, timestamp: 1548657656629862101, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestAdd/HostVerLastChecked, value: 6.0.2, timestamp: 1548657682370178400, flags: <NULL>