Time for action – creating a virtual machine with VBoxManage
In this exercise, I'll show you how to create your first virtual machine in your Ubuntu headless server through the VBoxManage interface and how to customize it based on the guest operating system you plan to install.
Go to the Ubuntu Server PuTTY terminal window you opened in your Windows desktop PC, and type
VBoxManage createvm --name "UbuntuVB" --register
, followed by Enter. If Ubuntu asks for your password, type it, and press Enter to continue. VirtualBox will respond with the following output to indicate that your virtual machine was created successfully:The next step is to adjust your virtual machine's settings to match the guest operating system you plan to install on it. Type
VBoxManage modifyvm "UbuntuVB" --ostype "Ubuntu" --memory 384 --boot1 dvd --nic1 nat
, and hit Enter. VirtualBox will respond with the first three lines of the above message to indicate a successful command.Now let's create a new virtual hard drive...