Creating an Ubuntu Server VM on Synology NAS

A step by step guide to creating an Ubuntu Server virtual machine on a Synology NAS.

Creating an Ubuntu Server VM on Synology NAS
Photo by Gabriel Heinzer / Unsplash

1) Download the ISO

To begin, let's download the relevant Ubuntu Server ISO file from the official Ubuntu website: https://ubuntu.com/download/server.

Ubuntu Server download page

Download it to your desktop or use the built in download manager within Synology DSM.

2) Install Virtual Machine Manager

While that's downloading, log on to your NAS and open up Package Center, then  search for Virtual Machine Manager (VMM) and click Install.

Synology DSM > Package Manager > Virtual Machine Manager

Now open up VMM and go through the initial setup wizard, once done you'll be greeted with a window that looks very much like the screenshot above.

Synology DSM > Virtual Machine Manager > Overview

3) Create an Ubuntu image

Go to the Image tab and click on Add:

Synology DSM > Virtual Machine Manager > Image > ISO File

Depending on how you downloaded the Ubuntu ISO file, click either From computer or From Synology NAS, and then select the file.

Synology DSM > Virtual Machine Manager > Image > ISO File > Add

Next, select the storage medium for your Virtual Machine and this step is complete.

Synology DSM > Virtual Machine Manager > Image > ISO File > Add > Select Storage

4) Create the Ubuntu Virtual Machine

Now go to the Virtual Machine tab and click Create

Synology DSM > Virtual Machine Manager > Virtual Machine > Create

Select the relevant storage for your VM:

Synology DSM > Virtual Machine Manager > Virtual Machine > Select Storage

Enter the relevant info for your VM (I gave mine 2 CPU and 4GB RAM, generally enough for most VMs)

Synology DSM > Virtual Machine Manager > Virtual Machine > Configure General Specifications

Give it as much Disk Space as you think you'll need

Synology DSM > Virtual Machine Manager > Virtual Machine > Storage

Select a network

Synology DSM > Virtual Machine Manager > Virtual Machine > Network

On the next window, select the image that we created earlier in the "ISO file for bootup" field. The rest can be left as default.

Synology DSM > Virtual Machine Manager > Virtual Machine > Other settings

User permissions for power management - select the users that will need to be able to power on / off your virtual machine:

Synology DSM > Virtual Machine Manager > Virtual Machine > Permissions

On the final page, make sure to tick "Power on the virtual machine after creation".

Synology DSM > Virtual Machine Manager > Virtual Machine > Summary

Your Ubuntu Virtual Machine should now be powering on

Synology DSM > Virtual Machine Manager > Virtual Machine

5) Initial bootup

Click on Connect within the Virtual Machine Manager and a new window will open up.

You can now access the Virtual Machine and go through the usual installation steps.

Synology DSM > Virtual Machine Manager > Virtual Machine > Connect.

If you have followed this guide previously to setup all your SSH keys within Github, then during the VM installation you have the option to bring in all these keys to enable access via SSH with keys only.

It's recommended that you install the Synology Guest Tool after your VM has been setup, read more about it here: https://kb.synology.com/en-global/DSM/tutorial/How_to_install_Synology_Guest_Agent_for_VMM_on_your_virtual_machine