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:
- AuxXxilium Arc
- RedPill RR
- Alpine RedPill M-shell (TinyCore project)
- Custom Loader – option to use a custom loader if you prefer to modify or create your own configuration
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:
| Parameter | Default Value |
|---|---|
| Machine Type | q35 |
| BIOS Type | OVMF (UEFI) |
| CPU Type | Host |
| Core Count | 2 |
| RAM Size | 4096 MB |
| Bridge | vmbr0 |
| MAC Address | Automatically generated |
| Start VM on Completion | No |
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:
| Parameter | Options |
|---|---|
| Machine Type | q35 or i440fx |
| BIOS Type | OVMF (UEFI) or SeaBIOS (Legacy) |
| CPU Type | Host or KVM64 |
| Core Count | Number of CPU cores |
| RAM Size | Amount of memory allocated to the VM |
| Bridge | Network bridge for connection |
| MAC Address | Custom MAC address |
| VLAN | VLAN tag (if used) |
| MTU | Maximum 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:
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 parametersqm importdiskimports 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 storageqm set VMID --boot order=ide0configures 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:
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.
Terminal interface, Access it directly from the VM's console output.
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.
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.
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.
If we choose not to use automatic mode, we enter the menu to configure different options necessary for the loader:
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.
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.
Starting the DSM Installation
Once the loader is booted, you can find your Synology device using:
https://finds.synology.comFollow the on-screen steps to complete the DSM installation.
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.
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.