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

Once the machine is configured, the script allows you to choose between two types of disks:

Virtual Disk

  • The script lists the storage options available in Proxmox
  • The user selects the disk and size in GB
  • The virtual disk is automatically assigned to the VM. If more disks are configured, they will be added as SATA (e.g., sata0, sata1, etc.), up to a maximum of 6 virtual disks.

Physical Disk Passthrough

  • The script detects all available physical disks
  • The user selects the physical disk or disks they want to use.
  • The physical disk is directly assigned to the VM via passthrough. If more disks are configured, they will be added as SATA (e.g., sata0, sata1, etc.), up to a maximum of 6 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 TinyCore RedPill M-shell.Downloads and extracts 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 boot loader disk to the VM. For greater compatibility the loader is imported as an IDE disk
  • qm set – Assigns configuration values such as CPU, RAM, and storage
  • qm set -boot – Configures the boot order

Step-by-Step Boot Loader Configuration Guide

While all loaders share similarities, each one has its own structure and configuration methods. This section provides a basic guide covering the 6 steps involved in setting up a Synology DSM loader. The exact steps may vary depending on the loader and any changes introduced by the developer. Therefore, understanding these common basic steps is crucial to correctly building and configuring the loader of your choice for proper Synology DSM functionality.

Select your loader type:

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

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.

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

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

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

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.