Rob van Hamersveld.nl My digital life

21Jan/1353

Install and test Synology DSM in a virtual machine

For my blog I do a lot of testing on my own 'production' Synology DS410. Because I'm hosting all my media and personal documents on this DS it will be very annoying if anything went wrong. I was thinking of buying a low priced DS (like the DS 212j) for testing when I discovered a community project called XPEnology. XPEnology is a modified Synology DSM firmware which runs on virtual hardware (and some physical hardware to), of course without any support from Synology but great for testing.

In this post I'll guide you to the process of installing Synology DSM inside a virtual machine.

Installing the hypervisor

First we need some virtualisation software to run the virtual machine. I work a lot with VMware products but because VMware doesn't support virtualized SATA controllers I can't use that. A (free) alternative is Oracle VM VirtualBox, this piece of software from Oracle does support virtualized SATA controllers and disks and the XPEnology download contains a pre-configured virtual disk for VM VirtualBox. You can download Oracle VM VirtualBox at https://www.virtualbox.org/

Get XPEnology

You can download XPEnology at http://xpenology.com, the download link is available in one of the forum posts. In this guide I'm using the patched DS3612xs 4.2 Beta build 3161 pat file. After downloading and unpacking the package you'll find 3 files;

  1. DSM_DS3612xs_3161.pat
    This is the modified DSM firmware to run on your virtual Synology DS (based on the Synology DS3612xs)
  2. SynoBoot_3612xs_4.2b.img
    This is a boot image witch emulate your hardware to be a Synology DS
  3. SynoBoot_3612xs_4.2b.vdi
    This is a virtual disk for Oracle VM VirtualBox containing the above image

Creating the virtual machine

Now we're ready to create the VM. Open VirtualBox and click at the 'New' button.

vm_new

The wizard which will guide you trough the configuration of the VM will open. Select 'Linux' as type, 'Linux 2.6 (64-bit)' as version and click 'Next'.

create_new_vm_step01

Choose an amount of RAM memory for the VM (minimal 512MB, I'm using 2048MB, the same minimum amount of the DS3612xs) and click 'Next'.

create_new_vm_step02

In the next step we need to create a new virtual disk, this disk will represent the usable storage for your media and the Synology DSM operating system.

create_new_vm_step03

Choose your favorite type of disk.

create_new_vm_step04

Choose for 'Dynamically allocated' (Thin provisioned) or 'Fixed size'.

create_new_vm_step05

Select a location, name and size for the disk and click 'Create' to create the VM and virtual harddisk.

create_new_vm_step06

Configure the VM for DSM

Now we've created the VM it's time to change some settings, select the VM in VirtualBox and click 'Settings'.

XPEnology_settings

Select 'Storage' and click the button next to 'Controller IDE' to add the XPEnology boot disk.

XPEnology_settings_step01

Click 'Choose existing disk'.

XPEnology_settings_step02

Browse to and open the SynoBoot virtual disk.

XPEnology_settings_step03

Finally we need to alter the networking configuration. Click on 'Network' and set the adapter to 'Bridged Adapter'. Change the 'MAC Address' to 00113208D62A, this is necessary for DS Assistant to detect the VM as Synology hardware. After you've changed the settings click 'OK'.

XPEnology_settings_step04

The configuration part of the VM is now completed.

Installing DSM

The VM is now ready for DSM installation. For the installation process we use the Synology DS Assistant (the same way you would if you've to install a regular Disk Station). Download DS Assistant from the Synology Download Center (choose a random model, the DS Assistant is the same for all models).

Before we can detect and install DSM we have to power on the VM. Select the VM in VirtualBox and click 'Start'.

XPEnology_startVM

The VM is ready when you see 'Booting the kernel.'.

XPEnology_startVM02

Now you've to start the DS Assistant application and if you've done everything right it should detect the VM as a Synology DS3612xs.

DSA_step01

Now right-click the detected DiskStation and click 'Install'.

DSA_step02

Select the .pat file from the XPEnology archive (don't try an official Synology .pat file, it won't work!) and click 'Next'.

DSA_step03

Enter a password for the admin user and provide a name for your XPEnology.

DSA_step04

Accept the warning by clicking 'OK'.

DSA_step05

Enter the network settings and click 'Finish'.

DSA_step06

Sit back while DSM is being installed.

DSA_step07

And a few minutes later the installation is completed.

DSA_step08

Logon to DSM

Open a webbrowser and browse to the ip-address you've configured in DS Assistant. Logon with the username 'admin' and the password you've chosen during the installation and hit 'Enter'. Enjoy testing Synology DSM!

Please note, this is a fully working version of Synology Disk Station Manager but not usable for production purpose. If like DSM consider buying one of there products http://www.synology.com/products/index.php?lang=enu.

DSM_login

DSM

Comments (53) Trackbacks (10)
  1. Thank you for the great article and the immense effort in this.

  2. I am trying to cross-compile MPD (www.musicpd.org) from source for my Synology DS410 but so far, a big nothing.
    Have you ever tried this?
    Could you be able to compile it for me?

    Dank U,
    Thank you.

  3. als ik eenmaal dsm wil installeren gaat er iets mis met de internet instellingen deze werken niet en er kan geen verbinding gemaakt worden. ik heb gewoon een willekeurig ip adres gekozen. wat kan er mis zijn???

    • Hi raydekok,

      Je mag je ip address settings niet veranderen bij het installeren, je moet het pas verander nadat je NAS geïnstalleerd is.
      Ik had ook dit probleem.

      Met vriendelijke groeten,
      Daan

  4. please send the links to download .img,.vdi,.pat files

  5. hi friends could you please send me the links of img and vdi files.i searched a lot but i am not getting them could please help me with that

  6. thanks a lot mate a wonderful instructions and brilliant honestly

  7. Fired right up! No problems. Great instructions, thank you.
    BTW, do you know how the single MAC address will affect things? Such as everyone using the same MAC?

  8. http://xpenology.com/forum/viewtopic.php?f=2&t=17 ->solve me problem / error connection -> problem in “synoboot”

  9. Hello three, i have problem “No disk manage” for test packet on DSM.Can u help me for solve problem? -> i used vmware.

  10. select “Linux 2.4 (64bit)” for the VM, and not “Linux 2.6” as shown in this tutorial.

  11. Hello,
    I had this problem too: ““This kernel requires an X86-64 CPU, but only detected an i686 CPU. Uanble to boot – please use a kernel appropriate for your CPU.”
    And yes, VT-x was activated in the BIOS.

    My solution: select “Linux 2.4 (64bit)” for the VM, and not “Linux 2.6” as shown in this tutorial.
    It magically solved the boot problem of XPE.

  12. Fantastic tutorial! Followed the directions and my xpenology came right up. Now ont testing …

  13. Great summary of the work done at the website… I personally just followed the instructions above and had it up and running on my Mac Book with VirtualBox in a matter of minutes.

    This will be very handy for me as I’ll now create a Vagrant base box – http://www.vagrantup.com/ – to use for development purposes.

    thanks again.

  14. I get the following error when installing on VirtualBox, I tried the bridge mode and the host only adapter on the VM , both times i get the same error when running the installation process on the Synology Assistant. “The telnet service of diskstation is turned on for error determination. Please configure your router to forward port 23 to Diskstation and contact Synology online support.”

  15. anyone tried this with the DSM 4.3? I am looking for a vmware esxi image for latest version DSM 4.3

  16. Realy Great!!!

    I dit it with the XPEnology_trantor_v1.2_DSM_DS3612xs_3211 package.
    Also thanks to microb because i have needed boath hints to solve problems.

  17. Two notes:
    1) When you have issues with the DSM installation step (DSM install wizard says it cannot connect to the DS at the end of wizard step 1), make sure that the Macaddress in the VirtualBox VM’s network adapter matches the Mac address discovered by the synology assistent. If not, stop the VM and change the macaddress so that the addresses match and try again.
    2) When you get a Grub error 22 during the first reboot after the DSM install, just restore/overwrite the boot-image disk with the image inside the downloaded archive. The boot image partition sometimes gets overwritten/deleted during DSM install.

    That did it for me. I have a working DSM virtual machine I can test with.

    • Step 1 worked for me. Thank you.

      • step 2. You need to add the boot image before you remove the old one in virtualbox. I started with both attached. Started the virtual pc Still got the grub message. Removed the original. Restarted and all I had to do was reconfigure the network settings. Thanks again for your advice.

        This is with version synoboot-trantor-4.3-3810-v1.0

  18. fantastisch , heb op lenovo desktop met i7 processor geinstalleerd met 2 x 2 terabyte.. werkt perfect en super snel….

  19. Enter the network settings and………………………………………………….. NOT SO EASY….got stuck and didn´t connect……….. them,only them…….. click ‘Finish’.

  20. Wow! this is awesome. Thank you.

  21. Fijn dat een ieder vergeet te vermelden wat de oplossing is voor de melding:
    This Kernel Requires an x86-64 CPU, but only detected an i686 CPU Unable to boot

    Voor mij was de oplossing : Dar dit voor virtualbox een bekend probleem was !!!
    Start je computer en ga naar het BIOS screen en enable the virtualization voor je PC CPU.

  22. Hi, will it also run on my DS213+?

  23. can it be updated to 4.2 ?

  24. Ik krijg een melding dier ik niet kan plaatsen. als ik de Vm opstart dan krijf ik de volgende mededeling te zien:
    “This kernel requires an X86-64 CPU, but only detected an i686 CPU. Uanble to boot – please use a kernel appropriate for your CPU.

    Ik heb een C2D E7300 64 bits processor, Win7 64 bits geïnstalleerd en maak gebruik van Virtualbox. Ik heb de instructies opgevolgd, maar het lukt me niet om de machine aan de praat te krijgen.

    Wie kan mij in de juiste richting duwen voor de oplossing?

  25. in mijn .zip van het forum van xenology zit geen .vdi alleen die andere 2 bestanden,
    hoe kan ik de goede krijgen inclusief de .vdi

  26. Any hints on whats up with the website? http://xpenology.com/forum/
    “An sql error occurred while fetching this page. Please contact an administrator if this problem persists.”

  27. can i install i freebsd or other os?

  28. Hi My computer dosnt support Viritualbox ( the bios on the main board) The CPU is 64bit but the problem is in the Bios, is there possible to install the Synology DSM on a PC a diferent way? with a Linux OS? Any guides on the internett?

    Best regards JH

  29. Toevallig ook een mogelijkheid om het op een fysieke machine te installeren anders dan op een standaard synology machine?

  30. Hello, my vbox says the cpu dosent supported 64bit. but it is a 64bit cpu. d2700 atom.

    can anybody help with the settings

    best regards

    rene

  31. het is gelukt met de packages ik kan ze niet downloaden vanuit de nas, hij geeft dan aan dat de gebruikersnaam of ww niet klopt ik kan daarmee wel inloggen op de site.
    als ik ze handmatig download en installeer dan werkt het goed dus bedankt voor die info.

    weet iemand ook waarom ik in file station bij iedere map de melding krijg “bewerking mislukt”.
    Ik kan dus in de mappen geen bestanden zien, komt dit door de beta versie? bij gedeelde mappen staat verborgen niet aan.

  32. Topper! BeautifulSoup graag op de NAS gehad, dus ipkg nodig. Maar net als jij geen zin om de productieversie te verkloten. Bedankt voor het online zetten!

  33. werkt leuk maar kan iemand ook vertellen of ik packedges kan testen of moet ik daarvoor een serie nummer registreren

  34. Geweldig. Kan ik zaken testen, voordat ik in productie aan de slag ga. Ga deze week XBMC library op de NAS plaatsen. Ga zo door.

  35. Dank voor deze tip. Ga dit meteen morgen proberen.


Leave a Reply