User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

This article will show step by step how to install Synology DSM 6.1.5 on a Proxmox (KVM) Virtual Machine using a Xpenology DSM bootloader.

Requirements (at the time of the writing):

  • Proxmox 5.x installed
  • Xpenology Jun's Loader 1.02b for ds3615 (get "DS3615xs 6.1 Jun's Mod V1.02b.img" here)
  • DSM 6.1.5 PAT file (here)

(warning: images-intensive article)

 

Warning
This system is for testing or educational purpose, and It is NOT recommended for use in production environments.
For production, I'd recommend to go for an original Synology with a proper support.

We recommend ...
... at least 2GB RAM
... at least 16GB of free disk space

Please, click on pictures to zoom.

Create a new virtual machine

Install Xpenology DSM 6.1.x on Proxmox

General

Select :

  • VM ID: 103
  • Name: XpenoDsm61x

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

OS

Select : Do not use any media

For Guest OS, Select :

  • Type: Linux
  • Version: 4X/3X/2.6 Kernel

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

Hard Disk

Select :

  • Bus/Device: SATA 0
  • Storage: local
  • Disk size (GB): 16
  • Format: QEMU image format (qcow2)

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

CPU

Select :

  • Sockets: 1
  • Cores: 1
  • *
  • Enable NUMA: uncheck
  • Type: Default (kvm64)

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

Memory

Check Use fixed size memory

Select :

  • Memory (MB): 1024
  • Ballooning: uncheck

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

Network

Check bridged mode

Select

  • Model: Intel E1000

Click NEXT

 


Install Xpenology DSM 6.1.x on Proxmox

Confirm

Click FINISH

 


Install Xpenology DSM 6.1.x on Proxmox

BIOS

Select

  • SCSI Controller: Default (LSI 53C895A)
  • BIOS : OVMF (UEFI)

 


EFI Disk

Click on Add button
Then Select EFI Disk

Then on "Edit: EFI Disk" dialog, Select

  • Storage: local
  • Format : QEMU image format (qcow2)

 


Edit VM conf file

Open a shell on proxmox server as root, and execute the following command: (Substitute your <VM ID> if not 103)

# Add synoboot.img as USB drive 
[root]$ echo "args: -device 'piix3-usb-uhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/103/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'" >> /etc/pve/qemu-server/103.conf
 
# Change boot option in vm conf
# Little hack to get the UEFI BIOS persistent change
# UPDATE: This hack is no more needed from Proxmox 5.2
[root]$ sed -i 's/boot:.*/boot: z/g' /etc/pve/qemu-server/103.conf

 

In the end, /etc/pve/qemu-server/103.conf file should look like that:

args: -device 'piix3-usb-uhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/103/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'
balloon: 0
bios: ovmf
boot: c
bootdisk: sata0
cores: 1
efidisk0: local:103/vm-103-disk-1.qcow2,size=128K
ide2: none,media=cdrom
memory: 1024
name: XpenoDsm61x
net0: e1000=DE:CE:4A:E4:BD:FB,bridge=vmbr0
numa: 0
ostype: l26
sata0: local:103/vm-103-disk-2.qcow2,size=16G
smbios1: uuid=a3e9e6b6-ab2d-4634-980f-d593dea8e53f
sockets: 1

 


Transfert Jun's loader img to proxmox server

Copy Jun's loader previously downloaded on proxmox server as /var/lib/vz/images/103/synoboot.img.
For that you can use ftp (on port 22) or scp (or pscp for windows). By example:
pscp.exe "DS3615xs 6.1 Jun's Mod V1.02b.img" [email protected]:/var/lib/vz/images/103/synoboot.img

 

Now we are ready to install Synology DSM.

 

Install DSM

Start the VM and open a console.

Install Xpenology DSM 6.1.x on Proxmox

BIOS Boot order change

Enter the BIOS by quickly pressing F2 key

Install Xpenology DSM 6.1.x on Proxmox

Then Select Boot Maintenance Manager > Boot Options > Change Boot Order
Then Press Enter

Install Xpenology DSM 6.1.x on Proxmox

Highlight "QEMU USB" then press + key until it is on the top
Validate by pressing Enter
Then go down, and select Commit Changes and Exit

Press Esc key until you return on the first BIOS screen
Then select Reset

 


Install Xpenology DSM 6.1.x on Proxmox

Start Bootloader

In the GRUB menu, Choose the first one (Default)
Then the next screen will invite you to go to http://find.synology.com
If website cannot find you synology to install, Try the following instead:

  • Synology assistant (here), then double click on your synology
  • Find your synology local IP on your router with the following mac address: 00:11:32:2C:A7:85 . Then enter its ip address in a web browser.

 


Install Xpenology DSM 6.1.x on Proxmox

Click on Set up button

 

Install Xpenology DSM 6.1.x on Proxmox

Click on Manual Install

 

Install Xpenology DSM 6.1.x on Proxmox

Click on Browse and Select DSM 6.1.5 PAT file you have already downloaded

 

Install Xpenology DSM 6.1.x on Proxmox

Wait until installation complete.

 

Install Xpenology DSM 6.1.x on Proxmox

Enter your server name, credentials and uncheck the box.
Then click Next

 

Install Xpenology DSM 6.1.x on Proxmox

Click Next

 

Install Xpenology DSM 6.1.x on Proxmox

Check "Download DSM updates and install them manually" (let the download schedule by default)
Then click Next

 

Install Xpenology DSM 6.1.x on Proxmox

Click on skip this step

 

Install Xpenology DSM 6.1.x on Proxmox

Uncheck box, then Click Go

 

Install Xpenology DSM 6.1.x on Proxmox

That's it your synology is now ready to use!

 

HTH,
Michel.

 

Note
Sata controller card can be directly passtrough to the VM in order to get Synology DSM to have direct access to the sata disks.
This can be done by adding these kind of lines to the vm conf: (your pci port can be different)
   - machine: q35
   - hostpci0: 05:00,pcie=1

For VirtIO network, you may find on xpenology.com some jun's loader mod with VirtIO driver added.

To enable ACPI power in order to be able to shutdown the VM through Proxmox VE, check this post.

 

Reference
Forum Xpenology (xpenology.com)
Tutorial: DSM 6.x on Proxmox (Thread on xpenology.com)

Enjoyed this article? Please like it or share it.

Add comment

Please connect with one of social login below (or fill up name and email)

     


Security code
Refresh

Comments   

luis
# install without dhcp server?luis 2018-08-10 20:33
i donĀ“t undestaind how your VM xpenlogy is getting an ip via dhcp server cause proxmox not have dhcp by default.
Reply | Reply with quote | Quote
UxOra DBA
# RE: install without dhcp server?UxOra DBA 2018-08-12 00:26
True ... I forgot to mention that, in my case, my Proxmox server NIC eth0 (link with vmbr0 bridge) is connected to a router (with dhcp).

If you are not behind a router, I may advise to
- install/configure isc-dhcp-server as simple dhcp on proxmox
- or create a vm with pfsense as a powerful firewall/router
Reply | Reply with quote | Quote
Belokan
# Great article !Belokan 2018-08-07 07:53
Hi,

I've recently decommissioned my 2 "real" Synology (412+ & 415+) and replaced them by OMV VM running on Proxmox nodes. I've replaced Surveillance Station by ZoneMinder + ZmNinja.
But I was missing few DSM apps not that easily replaceable.

I was about to find a second hand 112j when I decided to give XPE a try. I've tried several tutorials but yours is the one that worked straightforward, thanks !

I just have a question about upgrades. Are they even possible ? Or must I stick to 6.1.5 forever ?

Thanks in advance !
Reply | Reply with quote | Quote
UxOra DBA
# RE: Great article !UxOra DBA 2018-08-07 15:35
Yes, It's possible.

First of all, I would recommend to disable automatic updates as follow:
- Go to Control Panel > Update and Restore
- On the "DSM Update" tab,
- ** click "Update Settings" then check "Important updates only"
- ** and select "Download DSM updates but let me choose whether to install them"

For minor update (i.e 6.1.x to 6.1.y):
- Check if there is no issue with the update on xpenology.com/forum/forum/78-critical-updates/
- Then if ok, just do a normal synology update as usual through "Control Panel > Update and Restore"

For major update (i.e 6.1.x to 6.2.y), it's a bit more stressful but possible:
- It usually requires to update the bootloader (check if bootloader is stable on xpenology.com/forum/forum/31-loaders/)
- Restart with the new bootloader and do a normal synology migration as if it is a new synology machine
Reply | Reply with quote | Quote
Belokan
# RE: Great article !Belokan 2018-08-08 09:43
Thanks for your answer Michel.

Looks like Jun's 6.2 loader has issue with EFI right now. As I'm just running regular Debian/CentOS VMs and various containers on my Proxmox environment, I've always used default Seabios BIOS and never played around with EFI apart from this XPE instance ...

Any idea/hint on how to get rid of EFI in your tuto ? Maybe a vm.conf file with required modifications ?

Thanks in advance
Reply | Reply with quote | Quote
UxOra DBA
# RE: Great article !UxOra DBA 2018-08-12 15:11
If EFI really does not work, you may want to try this:
- Rename loader (as root): $ mv synoboot.img synoboot_ds3615_v1.03b.raw
- Copy it in vm disk folder (ie. /var/lib/vz/images/103/.)
- Then use it as a drive by adding these lines in conf (ie. /etc/pve/qemu-server/103.conf)
bootdisk: ide0
ide0: local:103/synoboot_ds3615_v1.03b.raw,size=52429K

You may want to check this comment as well:
https://xpenology.com/forum/topic/12952-dsm-62-loader/?page=5&tab=comments#comment-93988

(edit1: choose ide to not mess with sata)
(edit2: do not need to convert to qcow2)
Reply | Reply with quote | Quote
Abdessamad
# QuestionAbdessamad 2018-06-18 22:51
Hello

Great guide , thanks,
i have 1 small problem, when i reboot the VM , proxmox load default boot order .. so i have to enter bios and re up USB
Reply | Reply with quote | Quote
UxOra DBA
# RE: QuestionUxOra DBA 2018-06-19 13:29
You're welcome. :)

For your boot order saving issue, make sure you have:
- Set VM BIOS to "OVMF UEFI"
- Added an EFI disk to your VM
- Set boot to z in /etc/pve/qemu-server/10x.conf
(UPDATE: This "z" boot trick is no more needed from Proxmox 5.2)

Then you should be able to save your bios boot order.

All theses steps are shown in this article.

Hope this helps.
Reply | Reply with quote | Quote