Synology VM Creator Script

Introduction

ProxMenux provides an automated script that creates and configures a virtual machine (VM) to install Synology DSM (DiskStation Manager) on Proxmox VE. This script simplifies the process by downloading and adding one of the available loaders to the VM boot, giving you the option between four different choices:

The script simplifies the VM creation process by offering the following options:

  • Selection of default or advanced configuration
  • Configuration of CPU, RAM, BIOS, and machine type
  • Choice between virtual disk or physical disk passthrough

Default and Advanced Configuration

The script offers two configuration modes:

Default Configuration

If you select default configuration, the script will automatically apply the following values:

ParameterDefault Value
Machine Typeq35
BIOS TypeOVMF (UEFI)
CPU TypeHost
Core Count2
RAM Size4096 MB
Bridgevmbr0
MAC AddressAutomatically generated
Start VM on CompletionNo

If you want to customize the configuration, select the Advanced Settings option in the menu.

Advanced Configuration

If you select advanced configuration, the script will allow you to customize each parameter:

ParameterOptions
Machine Typeq35 or i440fx
BIOS TypeOVMF (UEFI) or SeaBIOS (Legacy)
CPU TypeHost or KVM64
Core CountNumber of CPU cores
RAM SizeAmount of memory allocated to the VM
BridgeNetwork bridge for connection
MAC AddressCustom MAC address
VLANVLAN tag (if used)
MTUMaximum Transmission Unit size

Disk Selection

The storage plan lets you add virtual disks, physical disks, and PCI controllers or NVMe devices. The disk options are explained below.

Virtual Disk

  • The script lists the storage options available in Proxmox
  • The user selects the disk and size in GB
  • Virtual disks are attached as SATA (sata0, sata1, etc.). Virtual and physical data disks share the six SATA slots numbered 0–5; the loader uses a separate IDE slot.

Physical Disk Passthrough

  • The script detects all available physical disks
  • The user selects the physical disk or disks they want to use.
  • Physical disks are attached as SATA devices. They share the six SATA slots numbered 0–5 with virtual data disks; this is not a separate allowance of six physical disks.

Loader Installation

The script automatically downloads and extracts the loader from the developer's repository. If the download fails, the script will display an error message.

AuxXxilium Arc, RedPill RR, and Alpine RedPill M-shell are downloaded and extracted automatically.

For Custom Loader, the script searches for files in /var/lib/vz/template/iso. If multiple files are found, you will be prompted to select the desired file.

You can upload custom loaders from the local storage options:

Add Custom Loader
Add Custom Loader

VM Creation

Once the loader is downloaded, the script creates the VM using the following commands:

  • qm create – Creates the virtual machine with the configured parameters
  • qm importdisk imports the loader image to Proxmox storage. The script then attaches that image to the VM as ide0 for compatibility.
  • qm set – Assigns configuration values such as CPU, RAM, and storage
  • qm set VMID --boot order=ide0 configures the loader as the boot device. Replace VMID with the VM ID.

Step-by-Step Boot Loader Configuration Guide

Each loader has its own menus and configuration methods. The six steps below explain the common process; follow the current loader’s prompts when they differ. The M-shell screenshots show an earlier TinyCore interface, while the current script downloads Alpine RedPill M-shell.

Select your loader type:

Step 1

Start the VM and Access the Main Menu

Once the VM is created, start it. The first time you boot the VM, you'll access the loader's main menu to select and configure the DSM model you want to build. Once the loader is created, this step will be skipped unless you manually force a reconfiguration from the boot monitor. All loaders also have the option to configure the loader via a web interface.

Web interface, To access the web interface, simply open a web browser and enter the IP address shown in the VM's console output. For example, in our case: http://192.169.0.32.

Arc Loader Web Interface
Arc Loader Web Interface

Terminal interface, Access it directly from the VM's console output.

Arc Loader Terminal Interface
Arc Loader Terminal Interface
Step 2

Select Model

After loading the menu, select the Synology DSM model you want to install. Depending on the loader, you may sometimes need to expand the options to see more models.

Arc Model Selection
Arc Model Selection

In our example, we'll choose the SA6400 model.

Step 3

Select DSM Version

After selecting the model, you need to choose the DSM version you want to install.

Arc Version Selection - Step 1
Arc Version Selection - Step 1
Arc Version Selection - Step 2
Arc Version Selection - Step 2
Step 4

Select Addons

This step allows you to add additional features or custom configurations to the loader.

Arc gives you the option to configure automatically or manually adjust the settings. If automatic configuration is selected, the loader will start applying the necessary settings and will automatically reboot once the process is complete.

Arc Auto Configuration
Arc Auto Configuration

If we choose not to use automatic mode, we enter the menu to configure different options necessary for the loader:

Arc Manual Configuration
Arc Manual Configuration
Arc SN/Mac Configuration
Arc SN/Mac Configuration
Arc Sata Portmap
Arc Sata Portmap (use the recommended option)
Arc Addons Selection
Arc Addons Selection
Step 5

Build the Loader

Once you have selected the model, DSM version, and addons, proceed to build the loader. This process might take a few minutes depending on the loader and the selected configuration. To start, select the "Build the Loader" option.

Arc Build Loader
Arc Build Loader
Step 6

Boot the Loader

Once the loader has been built, it will prompt you to boot. The VM will restart with the configuration you've created and start the DSM installation.

Arc Boot Loader
Arc Boot Loader

Starting the DSM Installation

Once the loader is booted, you can find your Synology device using:

https://finds.synology.com

Follow the on-screen steps to complete the DSM installation.

DSM Setup
DSM Setup Screen

Please be patient – The process may take a few minutes to complete. The progress percentage will update automatically as the setup progresses. A countdown will start once the installation is nearing completion.

Installation Complete
Installation Complete

Tips

  • Keep in mind that available options may change depending on the loader version and developer updates. If you encounter issues during the loader creation process, consult the loader documentation:
  • Some older DSM models may have issues recognizing disks or the network card. It is recommended to use more recent models.
  • Update:

    Some loaders offer the option to update the loader directly from the menu.

    Important:

    ProxMenux does not provide support for the different loaders.