Category Archives: VirtualBox

View VirtualBox Available OS Templates

Type this command to view a list of OS templates recognised by VirtualBox: VBoxManage list ostypesVBoxManage list ostypes Here is an example output: ID: Windows7 Description: Windows 7 (32-bit) Family ID: Windows Family Desc: Microsoft Windows 64 bit: false   ID: Windows7_64 Description: Windows 7 (64-bit) Family ID: Windows Family Desc: Microsoft Windows 64 bit: […]

Run a Program Inside a VirtualBox Guest VM from Host via Command-line

With VboxManage you can execute programs inside the guest VM from the host: VBoxManage guestcontrol Win7-64bit-VM1 start –exe C:\Path\To\Program.exe –verbose –username admin –password 123VBoxManage guestcontrol Win7-64bit-VM1 start –exe C:\Path\To\Program.exe –verbose –username admin –password 123 If you need to run a program with parameters do like this: VBoxManage guestcontrol Win7-64bit-VM1 start –exe Z:\cmd.exe –verbose –username admin […]

How to Clone a Virtual Machine on VirtualBox via Command-Line

First you need to list the available VMs: VBoxManage list vmsVBoxManage list vms Option 1: Clone the VM (Faster) To clone a VM just type this command: VBoxManage clonevm Win7-64bit-VM1 –name Win7-64bit-VM2 –registerVBoxManage clonevm Win7-64bit-VM1 –name Win7-64bit-VM2 –register Now try to list again your VMs: VBoxManage list vmsVBoxManage list vms You should see your cloned […]

How to Install VirtualBox Guest Additions on Windows Guest

From your Windows VM open Internet Explorer and open: http://download.virtualbox.org/virtualbox/6.0.10/http://download.virtualbox.org/virtualbox/6.0.10/ *** http://download.virtualbox.org/virtualbox/ -> View all VirtualBox versions *** Then download the file: VBoxGuestAdditions_6.0.10.isoVBoxGuestAdditions_6.0.10.iso Then download and install 7-zip: https://www.7-zip.org/download.htmlhttps://www.7-zip.org/download.html Now right-click on VBoxGuestAdditions_6.0.10.iso and select: 7-Zip -> Extract Here7-Zip -> Extract Here This will extract the files from the ISO file. Now click on VBoxWindowsAdditions-amd64.exe […]

Add Shared Folder on VirtualBox VM via Command-Line on Debian

Lets say you have created a shared folder in your Linux Debian host, i.e: /vms/shared_folder/vms/shared_folder Now you want to add that shared folder on VM named “Win7-64-bit-VM1”: VBoxManage sharedfolder add Win7-64bit-VM1 –name srv –hostpath "/vms/shared_folder" –transientVBoxManage sharedfolder add Win7-64bit-VM1 –name srv –hostpath "/vms/shared_folder" –transient The “–transient” makes sure the mapping will not persist over the […]

Install VirtualBox 6.0 on Debian 10 Buster

Tutorial to install VirtualBox 6.0 on Debian 10 Buster: First add this line to /etc/apt/sources.list deb https://download.virtualbox.org/virtualbox/debian buster contribdeb https://download.virtualbox.org/virtualbox/debian buster contrib Then download and register the Oracle public keys: wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add – wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | apt-key add -wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add – wget -q […]

Install Windows 7 Guest on VirtualBox Debian Host (Command-Line)

To install Windows 7 guest on a VirtualBox Debian host type: VBoxManage createhd –filename Win7-64bit-VM1.vdi –size 32768 VBoxManage createvm –name Win7-64bit-VM1 –ostype Windows7_64 –register VBoxManage storagectl Win7-64bit-VM1 –name "SATA Controller" –add sata –controller IntelAHCI VBoxManage storageattach Win7-64bit-VM1 –storagectl "SATA Controller" –port 0 –device 0 –type hdd –medium Win7-64bit-VM1.vdi VBoxManage storagectl Win7-64bit-VM1 –name "IDE Controller" –add […]