Tag Archives: Dsm

Home / Dsm
6 Posts

On this website there are several descriptions of how to create a virtual Synology DiskStation in VirtualBox. For every new release of DSM there was a new description. The reason to create these descriptions was that there was very little information about how to do this and the information was hard to find. Since then there became more and more sites that specialized them self in just this subject.

There are a couple of sites I use myself to figure out what to do to create a virtual DiskStation for testing purposes:

The descriptions there are more or less like those posted here. Making those descriptions is a couple of hours work and doesn’t bring any extras anymore. That’s why I decided not to create any new descriptions when a new release of DSM occurs. Instead of that you can visit the sources I use mentioned above.

The old descriptions will stay online and can be used for referential purposes. Most of the time the way to virtualize a new DSM more or less the same method of the previous version of DSM is being used. Feel free to use them to help you getting the newest version of DSM working.

Really soon after Synology’s release of DSM 5.2 the guys form XPEnology where able to release a DSM 5.2 that can be virtualized with VirtualBox. To obtain the bits to create a virtual DSM 5.2 you have to download the XPEnoboot boot image and the DSM 5.2 bits. Both can be found here at XPEnology.me

The installation description is the same as I wrote for the previous version: Synology Virtual DiskStation 5.1 with VirtualBox. You can start from the paragraph Preparing VirtualBox. Where in the article is being referred to the boot image by XPEnoboot_DS3615xs_5.1-5022.2.iso it must be replaced with the boot image you just downloaded. (XPEnoboot_DS3615xs_5.2-5565.2.iso).

In the paragraph Installing DSM 5.1 you are encouraged to use the installation method of DSM by downloading it from Synology by using the automatic installation. You also can choose for the Manual Installation. You are then able to use the DSM version downloaded from XPEnology.me.

When you also want to install updates for you virtual DSM then you have to restart your virtual DiskStation. In the boot menu of XPEnoboot you have to choose the option XPEnoboot 5.2-5565.1 Install/Upgrade at startup. After your virtual DIskStation is back online you can do a manual update through the Control Panel –> Update & Restore function of your virtual DiskStation. You can use the update file that also is available at the download location through XPEnology.me After the update is completed, you have to reboot to run your virtual DiskStation in normal mode again.

The description in this post leads to a working version of Synology DiskStation Manager 5.2. The intention of this post is to give you the opportunity to experiment with a DiskStation without risking your physical DiskStation. If you like DSM, consider buying one of their products http://www.synology.com/products/index.php?lang=enu

Source: XPEnology.me

A Virtual Synology DiskStation 5.2 is available. See here: Virtual Synology DiskStation 5.2 with VirtualBox

It took a while before the guys of XPEnology had figured out how to make version 5.1 of DSM working on other hardware than Synology’s. It must have been a tough job. Fortunately they announced a released of a new version of XPEnology witch is capable of running DSM 5.1. (Hurray)

Unfortunately, a couple of days later they felt that they have to withdraw the release because of major issues. It seems that the release looses it’s volumes, malfunctioning apps and widgets that does not work anymore after 12-24 hours of running. For the purpose of just testing something without jeopardizing your production DiskStation however this may not a big issue. I’ll keep monitoring the progress they make.

The description in this post leads to a working version of Synology DiskStation Manager 5.1. The intention of this post is to give you the opportunity to experiment with a DiskStation without risking your physical DiskStation. If you like DSM, consider buying one of their products http://www.synology.com/products/index.php?lang=enu


You have to have a working installation of VirtualBox. You can download VirtualBox at https://www.virtualbox.org/wiki/Downloads. Make sure you also install the VirtualBox Extension Pack.

You also need the latest ISO of XPEnology. Due to the issues they have. it’s currently withdrawn from the regular download location. For as long as it lasts, you can download the required image (XPEnoboot_DS3615xs_5.1-5022.0.iso) from DropBox here. When the people of XPEnology have fixed the issues and released a new version, the link here will be altered accordingly. There is a new XPEnology boot image (XPEnoboot_DS3615xs_5.1-5022.2.iso) available that fixes the serious issues in the previous version. You can download it form here.

I managed to install the Virtual DSM webbased (http://find.synology.com). During this installation it will download the DSM software and start installation. If you insist of using the Synology Assistant or want to do a custom installation, you’ll need to download the DSM software for the DS3615xs here.

Preparing VirtualBox

Before you can start installing DSM, you’ll need to have a VirtualBox session in place. The next steps explain how to do that. It assumes you have installed VirtualBox and the extension pack.

Create the virtual machine

Create a new Virtual Machine and make sure it’s type is Linux and has Linux 2.4 (64bit) as version. Click Next to continue.

Give the virtual machine enough memory to use. 1024 MB (1 GB) is a good start. Click Next to continue.

DO NOT add a virtual hard drive now. Click Create to create the new virtual Machine.

Configure the virtual machine

You have to configure the newly created virtual machine to make the virtual DiskStation work properly. The following steps describe how to do that.

Open the settings of your newly created virtual machine.

Select System and open the processor tab. Select the amount of CPU’s you want to use.

Select Storage and attach the downloaded XPEnology ISO image (XPEnoboot_DS3615xs_5.1-5022.2.iso) to the DVD/CD player attached tot the IDE controller.

Attach to the SATA controller the amount of ‘physical’ hard disks you want to use. A single disk will do if you just want to test some software. If you want to test stuff like SHR or RAID, then use multiple disks. Use disk sizes that suites your needs.

The picture above shows three virtual ‘physical’ disks attached to the virtual machine.

Select the Network section of the settings and select the first adapter. Set this adapter to Bridged Adapter. You can use more adapters if you want to by enabling Adapter 2 onwards.

Make sure you click the OK button to save the settings you just made.

You now are ready to start the virtual machine for the first time to install DSM 5.1.

For installation purposes you have to select XPEnoboot 5.1-5022.0 Install/Upgrade. When the startup is done, you will see a login prompt. You are now ready to start the installation of DSM 5.1

Installation of DSM 5.1

There are several ways to start the installation DSM. The most enhanced way is to use Synology Assistant. Synology Assistant can be downloaded from Synology’s website. It’s also possible to do the installation with Synology Web Assistant. To start the web assistant just enter http://find.synology.com in the address bar of your favorite browser.

Select the DiskStation you want to install (that is the one you just started in VirtualBox) if you have more DiskStations in your LAN. Click the Connect button.

Click the Set up button to start the installation.

You can do a manual installation if you want to. This gives you some options regarding the disk configuration. For simple testing you can use the common installation. Press the Install Now button.

You have to confirm that all data on your virtual disk(s) will be destroyed. Check the checkbox and click OK to confirm that you are OK with this.

Now the installation starts. During this installation the DSM software will be downloaded from Synology, the disks will be formatted and the DSM software will be installed. When the installation is done, it will reboot the virtual machine and returns with the screen below.

By clicking the Next button the configuration of your DiskStation starts. You can create an Admin account, set a password for it and some other mandatory stuff to start using the DiskStation. After that you are ready to start using your virtual DiskStation with DSM 5.1.

The next step is to start configuring your volumes and start installing additional software if you want to.

Source: XPEnology.nl

With the release of DSM 5.0 by Synology a while ago, I wondered how to get a virtual version of this in VirtualBox. The source for this is: http://xpenology.com. There are many articles about virtualizing Synology. There is also an article about gnoBoot. In the past they created all kinds of image to run DSM on. They now seem to have a generic platform to run Synology’s DSM on: gnoBoot. You can use a regular version of DSM that can be downloaded from the Download Center at Synology’s website.

The description in this post leads to a working version of Synology Disk Station Manager 5.0. The intention of this post is to give you the opportunity to experiment with a DiskStation without risking your physical DiskStation. If you like DSM, consider buying one of their products http://www.synology.com/products/index.php?lang=enu


You have to have a working installation of VirtualBox. You can download VirtualBox at https://www.virtualbox.org/wiki/Downloads. Make sure you also install the VirtualBox Extension Pack.

Another ‘tool’ that is needed is a live distribution CD (as iso) from any Linux distro that is able to act as a ftp-server. In this example Ubuntu desktop is being used.

To be able to transfer a file to the Live Ubuntu desktop virtual machine, you need a mechanism on your host machine to do so. If you haven’t any service in place, you can use the Baby FTP server. This can run as a single executable and can be downloaded from http://www.pablosoftwaresolutions.com/html/baby_ftp_server.html. Download this and extract the zip that contains the executable.

Next, you need a tool to extract a 7zip archive. You can download 7zip itself from http://www.7-zip.org/. After downloading 7zip, you have to install it to be able to extract the gnoboot-alpha10.5.7z archive you have to download next.

The main reason to do all this effort is gnoBoot itself. You have to download this via http://www.gnoboot.me. In the download section you can choose gnoboot-alpha-latest-mirror1 or gnoboot-alpha-latest-mirror2 to obtain the desired archive. After downloading the 58.5MB archive you have to extract it. It will ask for a password: 6n0boot-AlpHaTen.5

The final downloads (for now) you need are the DSM image for your virtual DiskStation and the Synology Assistant. This can be downloaded from the download center of Synology’s website. Select a 12-bay type and select RS3612xs as type.

Edit: Make sure you download the previous version (5.0.4458) of DSM. The current (5.0.4482) version does not work in gnoBoot. You can download the previous version here. Be aware that this version is vulnerable to SynoLocker ransomware. Do not use this in a production environment.

Putting the pieces together

This description is based on a Windows installation of VirtualBox. It assumes you have installed VirtualBox with the accompanying Extension Pack and you have extracted gnoBoot on a location you remembered.

Create a new virtual machine:


Give it a logical name, select Linux as type and select Linux 2.6/3.x (64-bit) as version.


Give the virtual machine sufficient memory.


Create a new virtual hard drive. Give it the size you intend to give all the virtual disk drives. In this example it will be 20GB. Click on Create to create the virtual machine. Right click on the just created virtual machine to add some more virtual hard disks. Select Settings… and go to the Storage menu. Select Controller: SATA and click the second icon with the +-symbol. Create a new disk of 20GB. Do this for each new virtual hard disk you want to add. Make sure you creatie at least two disks.

While you are still in the storage menu, you can attach the ISO file of Ubuntu desktop to the virtual CD/DVD player. Select the CD-icon with the text Empty next to it. Select the button next to IDE Secondary master and selct the ISO file. Click the OK button to save these settings.

This is the moment to start your new virtual machine. This will take a while. In the meantime we will setup the Baby FTP Server. Start the executable of the Baby FTP server on your physical machine. Click the Settings button and change the Home Directory to the folder you extracted the gnoBoot archive into and click OK to confirm the change. Click Start to start the ftp server on your host.

In your virtual machine start FireFox and browse to ftp://[ip_of_physical_machine]. Click on gnoboot-alpha10.5-ext2.img to start the file transfer to your virtual machine. (Save the file in the download folder.) When all this is done you can close FireFox in your virtual machine and you can stop the Baby FTP Server on your physical machine.

Open the terminal on your virtual machine and change to ~/Downloads to execute the following command:

sudo dd if=gnoboot-alpha10.5-ext2.img of=/dev/sda

When the command is executed successfully you can shutdown the virtual Ubuntu session. When the session has been turned of completely, you have to detach the ISO from the virtual machine. After that, you can start the virtual machine again.

The following image shows how your virtual machine looks like if your virtual DSM has been started:


Your virtual DiskStation now can be installed with the DSM software. Start the Synology Assistant.


Right click the discovered DS3612xs and click Install in the context menu.


Select the DSM image you downloaded from Synology’s Download Center. Click Next > to continue.


Enter a strong password for the Admin account and enter a unique Server name in your network. Click Next > to continue.


Click the OK button to confirm that you are destroying the data on all the hard disks.


Choose either a DHCP or a manual network configuration. Finish the network configuration an click the Finish button to start. When the installation is done it will reboot the virtual machine and the the virtual Synology with DSM 5.0 is ready to use.

Installing update 2

Synology released updates for DSM 5.0. It is not possible to install these updates with the update menu in DSM. This will result in a failure. However it is possible to install Update 2 manually.

To do this you need SSH access to your DiskStation. Enable this (Control panel -> Terminal & SNMP) when not already done and download and extract Putty. Start Putty and make a SSH connection to your DiskStation as root with the DSM admin password.

Download Update 2 to perform an manual update from http://ukdl.synology.com/download/criticalupdate/update_pack/4458-2/synology_bromolow_3612xs.pat. Open the update section in the Control Panel and click the Manual update button. Select the synology_bromolow_3612xs.pat file and click the OK button. When you see the pop up as shown below, then you have to switch to the Putty session.


Execute the following commands in Putty:

sed 's/flashupdateDeb/flashupdateDeb1/' /autoupd@te.info > /autoupd@te.info1
mv /autoupd@te.info1 /autoupd@te.info

After that you can close your putty session and proceed the installation of Update 2 by clicking the Yes button of the popup in DSM as shown above. After the installation the virtual DiskStation will reboot and when it comes up again it has Update 2 installed.

Recently I was looking for a way to make Synology’s DSM desktop accessible from the internet. It’s a controversial thing to do. Some people think the DSM desktop is an administrators tool and must never be accessed from outside the local network, other people think that with the appropriate measures the desktop can be accessed outside the local network for non administrative tasks. This post is about these measures. The DSM desktop gives me the opportunity to drag and drop files from the local machine trough the browser into FileStation. This makes me less dependent from FTP. I would like to be able to do some basic tasks like FileStation, AudioStation, VideoStation and DownloadStation. To achieve this I have to resolve some issues before I make the desktop available on the internet:

  1. Synology uses a fixed account name for the administrator: Admin. This account is also the one with root:root privileges on the DiskStation. There is no way to rename this account. It isn’t rocket science to find out that I use Synology and that it uses the account name Admin as administrator. As a hacker I only have to find the password from this account. An administrator account witch can have any account name makes it a lot more difficult to hack the Admin account.
  2. Only password authentication for the administrator account isn’t enough. This account needs an extra layer of authentication.
  3. The DSM desktop must be accessed through a HTTPS connection.
  4. For regular tasks there must be a locked down user account. Only the administrators account must be used to administer.

The ‘one size fits all’ solution seems to configure the VPN server on the DiskStation and use a VPN connection to access remotely the DiskStation’s desktop. The drawback of this is that it is not always possible to create a VPN tunnel and it seems to be an overkill to initialize the VPN connection just to start Audio Station. So, I have to address the previously mentioned issues to have the DSM desktop accessible on the internet.

This solution requires you to have a smartphone. It will use Google’s two-step verification (See 1.5). More information on: http://www.google.com/2step

1. Prerequisites

Before you can continue, you have to configure some components that will be used. You will need the following:

1.1 SSL certificate

You need to have a SSL certificate installed on your DiskStation. Your DiskStation already has a self signed certificate. This one is sufficient for this task. You may have installed a third party certificate to accommodate HTTPS on your Web server. This certificate is also usable. Depending on the installed root certificates on your computer (client) you might get a warning that the certificate cannot be verified. You can choose to trust this one, because you know the source is trustworthy. Synology wrote a tutorial about SSL certificates here.

You can force the DiskStation’s log in to a HTTPS connection. Go to Control Panel > DSM Settings and select the HTTP Service tab. Tick the check box in front of Enable HTTPS connection and the check box in front of Automatically redirect HTTP connections to HTTPS… Make sure you entered the correct ports for HTTP and HTTPS. The defaults are 5000 for HTTP and 5001 for HTTPS.

Click Apply to save these settings.

1.2 E-Mail notification

To be able to use the 2-step verification you’ll have to enable the e-mail notification service. To enable and configure this go to Control Panel > Notification > E-Mail on your DiskStation’s desktop. Make sure you checked Enable E-mail notifications. Enter a SMTP server to deliver the outgoing mail to. This may be the SMTP server of your internet service provider if you don’t operate a mail server yourself. You also have to enter a Primary email address. This is the reply to address that will be used in e-mail that is send as notification. If the account you use to administer the notifications has a valid e-mail address, you can send a test email. Just press the Send a test email button. Click Apply to save these settings.

1.3 NTP client

The next thing to have in place is the NTP client of your DiskStation. 2-step authentication is mechanism based on the current time. When the time of your DiskStation is to far out of sync, you will have problems to use the 2-way authentication: You cannot log in. The time has to be consistent and a NTP server will help you to do just this. Go to Control Panel – Regional Options. In the first tab you see the settings that must be set. Select the Time zone that applies for your own region. Also make sure you select the radio button Synchronize with a NTP server. The default Network Time server will do, but you can change this if you want to. Click the Update now button and press the Apply button to save these settings.

1.4 Port forwarding

You need to have access to the router you are using to set a port forwarding rule. Port 5001 (the default HTTPS port to the DiskStation’s desktop) must be forwarded to your DiskStation from the internet. Please refer to your manual of your router on how to do this. wait to forward the port until the rest of the configuration in this article is done.

1.5 Google Authenticator

To use the 2-way authentication, you’ll need to install an app on your smartphone. Google offers for all major brands an app.

Scan the QR code for your device:

Google Play

Apple AppStore

Microsoft Phone Store


Click on the button to go to the Store of your device to install the Google Authenticator. Follow the instructions during the installation of the app on the screen of your device. Make sure you have a Google account:

Google Play
Apple Store
Windows Phone Store

1.6 A regular user account

You will need to have a regular user account to work with your DiskStation. Create one if you haven’t already.

2. Implementation

With all the prerequisites in place you now can start putting the pieces together. This section describes the steps to do this.

2.1 The admin account

As mentioned before, Synology has a fixed admin account. There is no way to change this without breaking something. To minimize the risk of a successful brute force attack of this account, it has to have a very strong password and the Auto Block feature must be turned on. Besides that you should stop using this administrative account. (Only use this when a job can’t be done otherwise.) But before doing that, you have to create a new account that is being used to do the common administrative tasks. The default Admin account is the equivalent of a root account on a Linux system. The new administrative account will have administrative privileges on you DiskStation, but isn’t that powerful as the default Admin account.

2.1.1 create new admin account

Before you can stop using the default Admin account you have to create a new account on your DiskStation. Go to Control Panel > Users and click the Create button:

Enter a name for the account. In this example I’ll use ShadowAdmin. Provide the account with a strong password that you can remember. Make sure it contains a mix of character (uppercase and lowercase), numbers and special characters. It also should be at least 8 positions long. The account also should have a valid and working e-mail address. (This is the address Synology uses to send an emergency verification code when you lost your phone.). Click Next to continue.

In the second screen of the wizard will give you the opportunity to make the ShadowAdmin account member of the administrators group. This group provides the administrative privileges to the account.

Tick the box behind administrators and click the Next button.

Continue with the defaults of the wizard by clicking the Next button until you arrive in the last screen of the wizard. Click Apply in the last screen to create the account for ShadowAdmin. When the account is created you can log off the Admin from the DiskStation’s desktop.

2.1.2 configure 2-way for the new admin

Log on with the credentials of the ShadowAdmin account in the DiskStation. Click the user symbol in the upper right corner to open the user menu and click Options:

This is the part where your smartphone with the Google authenticator is needed. In the first tab (Account) check the box in front of Enable 2-step verification. This will start a wizard.

In the first screen you can change the e-mail address of the ShadowAdmin account if you want to. This address has to be valid and working. Click Next to continue.

On the next screen you will see a QR code. This code contains a secret key that must be entered into the Google Authenticator installed on your smartphone. You can choose to enter it manually or let Google Authenticator scan it for you from the monitor. Either way you have to tell the app you want to add a new account. Depending on if you already using Google Authenticator or not and on the type of device you are using you might have to give the app the command to add a new account. There you can choose if you want to enter the secret key manually or by reading the QR code from the screen. This description reads the QR code.

When the smartphone has read the QR successfully you can click the Next button.

Your phone will reply with a verification code you have to enter:

Enter the code and click Next.

The following screen will confirm that you have successfully set up the 2-step verification for your ShadowAdmin account.

2.1.3 Test the new Admin account

Now it is a good time to test the ShadowAdmin account. You still have the opportunity to access your DiskStation as a administrator by using the Admin account. Log off the current session and log in as ShadowAdmin. It uses the regular Username/Password screen. Enter the credentials and click the arrow to log in.

If you entered valid credentials the DiskStation sees that the account has a 2-step authentication.

Enter the 6 digits generated by the Google Authenticator app on your smartphone and click the arrow.

When you did all the steps correctly, you’ll get to the DiskStation’s desktop. If you set the group membership correct for this account you must see the Control Panel icon on the desktop. You are now good to go! (Otherwise log on as Admin an correct the membership of the ShadowAdmin account and make it a member of the administrators group.)

2.1.4 Creating a regular user account

If you haven’t done so, now it is the moment to create a regular user account for accessing your DiskStation for daily tasks like using Audio Station or accessing the shares. This seems to be more complicated for you, but it actually protects you! Keep in mind that administering has to be done with an administrative account and using functionality must be done with a regular user account with just enough privileges to do just that. Make this your way of life! Make sure this regular user account has a fairly strong password that is better than your pet’s name but good enough to remember. I’ve read elsewhere that it is not a good idea to use 2-step verification on this account, because not all services can handle the 2-step verification. A strong password will do. To avoid brute force attacks enable the Auto Block feature.

Go to Control Panel > Users and create a regular user account if you haven’t already. Assign the applications the account is granted to use.

2.1.5 The default Admin account

Because it is not possible to rename the default admin account there is a new account created with administrative privileges. (ShadowAdmin). There is explicitly chosen not to apply 2-step verification to the default Admin account. This can make the account unusable when the mechanism fails. Therefore the account must have an extremely strong password. The extremely strong password is useful in combination with the Auto Block feature enabled. This reduces the risk of being hacked by a brute force attack by limiting the attempts. After you set up the default Admin account as described, you should disable the default Admin account. (You can still use the root account if you have to access your DiskStation over SSH.)

For the default Admin account you need a complex password. There are a lot of sites you can use to generate a password. You can use any of them as long as they allow you to include extended characters, numbers and characters (uppercase and lower case) and let you generate a password with at least 32 characters. You will probably get something like: $P0+e~69KKoH*l5u75X+KO@J%K7xi@q2%~0^FMW^l9#+^Z3P

Make sure you make a copy on paper and store this on a safe place. When you also choose to save this in a text file somewhere, then make sure you put it in a password protected zip archive or an electronic vault. (You may want to copy and paste this in the future.) Keep in mind that this is less safe than retype the password from a paper every time you need it. (You shouldn’t use this account until you can’t do the task otherwise.)

Change the default Admin account’s password in the one you just generated by entering the password in the Admin account. Click the OK button to make the new password persistent. (You may want to test this to by logging on with the new password. Make sure when you tested this you log on as ShadowAdmin again.)

Log on to DSM with your newly created administrator account (ShadowAdmin) with the 2-way authentication and disable the default Admin account. (You can’t disable an account that is logged on to DSM. So, you have to do this with the newly created Admin (ShadowAdmin) account.) If you ever run into problems with the new Admin account (e.g. the 2-way authentication fails or you cannot use the ShadowAdmin account to login to DSM any more.), you can perform a reset that leaves your DSM installation (including the installed packages) in place. The description on how to perform a reset can be found here: http://www.synology.com/en-global/support/tutorials/493.

2.2 The auto block function

To reduce the risks being hacked by a brute force attack on one of the accounts, Synology implemented an Auto Block function. It is a good idea to activate this. Go to Control Panel > Auto Block. There are two tabs that need some attention.

Enable the Auto Blocker by ticking the check box in front of Enable auto block. The default of 5 login attempts in 5 minutes will be sufficient. You can change this if you want to. You can lift the IP block by ticking the check box in front of Enable block expration. You don’t have to if you want the block to be permanent.

The second tab is the Allow list tab.

In this tab you can define IP addresses that should never be blocked. This is useful for those IP addresses that are in use on your local network. By entering them here you’ll always have access to your DiskStation, even when violating the Auto Block rule. You can enter the IP address per host (i.e. or per network. (

2.3 The final step

There is one thing left to do: Forward port 5001 from the internet to the DiskStation. (See 1.4 Port forwarding) When you completed this step, you are good to go. Your DiskStation’s desktop can now be used from the internet.