Debian Stretch in VirtualBox
Wed, Aug 8, 2018Installing Debian Stretch in a VirtualBox VM is pretty straight forward, but there are a few things to do to get the basic comforts of home.
-
Download a Debian image.
-
Use VirtualBox to create a new VM, and mount the Debian image as a CD.
-
Follow the GUI and install.
-
Start the VM, the rest of the commands are setting up the OS with what’s needed.
-
Install and setup sudo.
su - apt-get install -y sudo usermod -aG sudo <your-username>
-
Restart the VM.
-
Prepare for installing VirtualBox Guest Additions.
sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential module-assistant sudo m-a prepare
-
In VirtualBox select
Devices
>Insert Guest Additions CD image...
. -
Install VirtualBox Guest Additions.
sudo sh /media/cdrom/VBoxLinuxAdditions.run
-
Restart the VM.
You’ll now have a VM running Debian Stretch, with some of the basics setup.