Using a virtual machine for development can work if you are not able to set up a development environment on your main machine for any reason.

Virtualbox is a good option for the VM host software, as it is reliable, free, and open source.

Installing Virtualbox

  • Arch/Manjaro: sudo pacman -S virtualbox
  • Fedora: sudo dnf install virtualbox
  • KDE Neon/Kubuntu/Ubuntu/Debian: sudo apt install virtualbox
  • openSUSE Leap & Tumbleweed: sudo zypper install virtualbox
  • Windows/macOS: https://www.virtualbox.org/wiki/Downloads

Once Virtualbox is installed, launch it.


Setting up the guest OS

Now it's time to install an operating system inside Virtualbox. For the purposes of this tutorial, we will use KDE Neon Developer Edition, as it is specifically made for this purpose. Download it from here: https://files.kde.org/neon/images/developer/current/neon-developer-current.iso

The OS inside Virtualbox is called the "guest OS" (as distinct from the "host OS" which is the OS running on your computer). It's time to set it up now.

Click the "New" button in the toolbar and go through the wizard, entering the following recommended settings:

1- New OS.png

2- RAM.png

3- hard disk 1.png

4- hard disk 2.png

5- hard disk 3.png

6- hard disk 4.png

Now click the "Start" button in the toolbar. This will prompt you to select an ISO file for the guest OS. Select the Neon Development ISO that you downloaded earlier:

7- Select the OS.png

The OS will boot up! How exciting. Launch the installer and install the OS. When asked to create a user account, just pick any name (e.g. "dev").

After the OS has been installed, reboot the guest OS and then install some extra drivers and such from the "Guest Additions CD Image". Download and mount it like so:

8- download it.png

9- insert it.png

10- open in file manager.png

Now press F4 to open the Terminal view and install by running the following command:

sudo ./VBoxLinuxAdditions.run

11- install.png

Now restart the guest OS again. Once it starts up, you're ready to do your development in a VM!


This page was last edited on 27 February 2020, at 21:09. Content is available under Creative Commons License SA 4.0 unless otherwise noted.