Virtualbox Desktop Sanallaştırma için CLI Komnutları
VBoxManage list vms -l
How to start virtual machines from command line
Now that you know which virtual machines are already installed, let’s see how to start them.
VBoxManage startvm “slackware”
VBoxManage startvm f65d5b26-6491-4523-8c06-970cbe6844d5
You can add those commands to your startup scripts, so virtual machines are started when you to boot your primary Linux server.
How to stop a virtual machine from command line
Now we know how to start virtual machines, we need to know how to stop them, there are some options.
Pause the virtual machine
This will just put the virtual machine on hold, until un-paused.
VBoxManage controlvm “slackware” pause
Resume the paused virtual machine
VBoxManage controlvm “slackware” resume
Reset -restart- the virtual machine
VBoxManage controlvm “slackware” reset
This will close the virtual machine, and restart immediately, you unsaved data on the virtual machine will not be saved, and will be lost! you have been warned.
Poweroff or shut down the virtual machine
VBoxManage controlvm “slackware” poweroff
This will poweroff the virtual machine, and once again any unsaved data will be lost.
Stop virtual machine, and save data
VBoxManage controlvm “slackware” savestate
This will save current state of the virtual machine and stop it, I think of this more or less, like hibernate the virtual machine.
Create a new virtual machine
You can also create new virtual machines from command line:
VBoxManage createvm -name “LinuxMint” -register
This create a new virtual machine, with default options.
Change Settings on the virtual machine from command line
Now we have a new virtual machine created, let’s change some of its default settings, like the allocated RAM:
VBoxManage modifyvm “LinuxMint -memory “1024MB”
Check the complete set of parameters