awalol

awalol

github

Install Virtual DSM (vDSM) on Proxmox

Advantages of vDSM#

  • Supports dynamic adjustment of memory usage for virtual machines on the host using virtio-balloon.

Installation Steps#

1. Generate Images#

First, you need to generate the image for Virtual DSM. You can use the modified Docker vDSM installation script to complete this step.
Make sure that docker and fakeroot are installed on your system, and run the following command on a Linux system based on the amd64 architecture:

sudo bash -c "$(curl https://raw.githubusercontent.com/awalol/virtual-dsm-proxmox-qemu/main/install.sh)"

After execution, you will find two files ending with boot.img and system.img in the working directory, which will be used in the subsequent steps.

2. Create a Virtual Machine#

Create a new virtual machine in Proxmox, keeping the default settings for the most part. However, pay attention to the following points:

  1. Select VirtIO SCSI single in the SCSI controller option.

  2. Do not create any disks temporarily.

  3. Add a serial interface because the DSM console uses a serial connection.

After creation, your virtual machine settings should be similar to the following image:

image

3. Import Disks#

Connect to the host machine's shell, and then execute the following command to import the generated image files into the virtual machine:

qm importdisk <vmid> <source> <storage>

For example:

qm importdisk 104 DSM_VirtualDSM_69057.boot.img slot1-1T-DATA
qm importdisk 104 DSM_VirtualDSM_69057.system.img slot1-1T-DATA

Please note the order of importing the images, you need to add the disks in the correct order.
Set boot.img as scsi9 and system.img as scsi10, and add a new disk as a data disk set as scsi11.

image

Then, make sure that the boot option for scsi9 is enabled in "Options -> Boot Order".

4. Enable virtio-balloon#

To enable virtio-balloon, you have two methods:

Method 1: Use Task Scheduler#

Go to Control Panel -> Task Scheduler.
Create a new trigger task as shown in the following image:

image
image

Finally, restart the virtual machine to ensure that the settings take effect.

Method 2: Modify /usr/lib/modules-load.d#

You can refer to this article to modify /usr/lib/modules-load.d
SA6400 Kernel 5.10 Compilation TCP_BBR and Flow Control Fq / Cake Module

References#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.