Synology have made a name for themselves over the past few years as one of the preferred home lab NAS solutions. In particular, they were one of the first consumer vendors to support VAAI in VMware environments and also one of the first to support SSD caching. If you ever wanted to checkout their DSM 5.0 software without purchasing any hardware, the following outlines how you can spin up their DSM software in a VM for testing purposes. Obviously this is not going to give you an exact comparison to hardware, but it’s a great way to test it in your lab. If you want to skip the “build” section and just spin one of these up right away, simply download and import this OVF file to your virtual environment and move on to “Installing the DSM software”.
How to Build the DSM Virtual Machine
There are a number of quick steps that you’ll need to perform to be able to spin up your own DSM VM. First of all, you will want a couple of bits of software:
- Bootloader – to emulate the Synology “hardware”
- Image utility – to modify the bootloader
- Conversion utility – to produce the boot loader VMDK
- Synology DSM – software to load on the virtual NAS (DS214 Play 5.0 4482)
Once you have all the tools, you need to modify the nonoboot image boot loader.
- Using WinImage, open the nanoboot file and find syslinux.cfg
- Extract and edit the syslinux.cfg file, find the lines that start with “kernel /ZImage” and add the following to the end of the line:
- Save the cfg file and inject it back to the nanoboot image overriding the exiting file.
- Next use Starwind to convert the nanoboot IMG file to an IDE pre-allocated VMDK
- Create a new VM and use these VMDKs as an “existing hard drive” IDE 0:0.
- Set the disk to “independent non-persistent”. Continue with Step 12 below
Installing the the DSM software
After you have a working bootable VM that emulates Synology hardware, its time to install the DSM software itself. You can add additional hardware to the VM at any time after this point (SCSI Disks, NICs, vCPU or Memory)
- Add SCSI based virtual hard disks to the VM for how much space you would like available for the virtual NAS
- Attach the network card in the VM to the correct network. DHCP must be enabled on the network.
- Power on the VM
- Select the 3rd option in the boot menu labeled “Upgrade / Downgrade”
- Once the IP is shown, use a web browser to the IP address listed on the console
- Follow the onscreen instructions to complete the installation wizard with the following options:
- Install the DSM version from disk (SD214 DSM 5.0 4482)
- Do not create a Synology Hybrid volume
- After some time the VM will reboot, and then power off.
- Power the VM back on and you will have a working Synology DSM Virtual Machine.
The guys at xpenology.com have a whole site dedicated to this stuff.