VirtualBox Commands List

Valic —  February 14, 2013 — 1 Comment

If you installed VirtualBox following this guide Run Virtual Machines and you are new to VirtualBox, then the following commands will help you to gather information and control your Virtual machines:

1. How to show the VirtualBox VM info:

[email protected]:~# VBoxManage showvminfo

Where <vmname> is the name of your Virtual Machine

2. How to show the VM Harddrive info:

[email protected]:~# VBoxManage showhdinfo

<filename> is the name of your .vdi file

3. How to list running VM:

[email protected]:~# VBoxManage list runningvms

4. How to list available VM:

[email protected]:~# VBoxManage list vms

5. How to list available VM Harddrives:

[email protected]:~# VBoxManage list hdds

6. How to list all available ISO images:

[email protected]:~# VBoxManage list dvds

7. How to Start a Virtual Machine:

Here you need to use the nohup command and add & to the end of command to run process in background so Virtual Machine will continue to run if you are closing the console. Continue Reading…

In this tutorial I will show you how you can run virtual machines with VirtualBox  on a Debian Squeeze server and how to manage your virtual machines with phpvirtualbox.
Phpvirtualbox is a web based VirtualBox front-end written in PHP that allows you to access and control remote VirtualBox machines.

Step1. First we need to create an user called Administrator and group with the same name.

[email protected]:~# groupadd administrator
[email protected]:~# useradd -d /home/administrator -m -g administrator -s /bin/bash administrator
[email protected]:~# passwd administrator
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Step2. Install VirtualBox
Add the VirtualBox repository in your sources.list file and download the VirtualBox public key:

echo “deb squeeze contrib non-free” >> /etc/apt/sources.list
wget -q -O- | apt-key add -

Now install VirtualBox using the following command: Continue Reading…

First create he folder you want to share:

mkdir /mnt/shared_folder
Then open to edit the rc.local file:
nano /etc/rc.local
And add the following line:
  mount -t vboxsf -w -o uid=1000,gid=1000 my_shared_folder /mnt/shared_folder

And the last step: save, quit. Reboot


Page 1 of 11