"use client" import Image from "next/image" import { Wrench, Target, CheckCircle, Github, Server, HardDrive, Download, Settings, Cpu, Zap, Sliders, } from "lucide-react" import { useState } from "react" export default function Page() { const [activeLoader, setActiveLoader] = useState("arc") return (

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:

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

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:

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.

{/* Selector de loader global */}

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.

{activeLoader === "arc" && (

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.

)} {activeLoader === "rr" && (

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

Terminal interface, Access it directly from the VM's console output by typing menu.sh on the screen

)} {activeLoader === "tinycore" && (

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

Terminal interface, Access it directly from the VM's console output. Keep an eye on the screen, as at some point it may prompt you to press a key to continue or ask if you want to change the language.

)}

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.

{activeLoader === "arc" && (
)} {activeLoader === "rr" && (
)} {activeLoader === "tinycore" && (
)}

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.

{activeLoader === "arc" && (
)} {activeLoader === "rr" && (
)} {activeLoader === "tinycore" && (
)}

Select Addons

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

{activeLoader === "arc" && (

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:

)} {activeLoader === "rr" && (
)} {activeLoader === "tinycore" && (
)}

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.

{activeLoader === "arc" && (
)} {activeLoader === "rr" && (
)} {activeLoader === "tinycore" && (
)}

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.

{activeLoader === "arc" && (
)} {activeLoader === "rr" && (
)} {activeLoader === "tinycore" && (
)}
{/* STARTING DSM INSTALLATION */}

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.

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

) } function ImageWithCaption({ src, alt, caption }: { src: string; alt: string; caption: string }) { return (
{alt}
{caption}
) } function StepNumber({ number }: { number: number }) { return ( ) }