中文 English

img2KVM, Convert IMG Format to KVM Format, Install DSM Synology Virtual Machine

Published: 2021-01-20
img2kvm img kvm dsm PVE Proxmox VE

Install img2kvm

cd /root
wget -c https://download.margrop.net/d/oneindex/network/PVE/img2kvm -O img2kvm
chmod +x img2kvm

Using img2kvm

img2kvm <img_name> <vm_id> <vmdisk_name> [storage]

The specific parameter descriptions are as follows: img_name: The IMG file name. Generally in the format of “xxx.img” or “xxx.img.gz”. img2kvm can directly recognize and convert “img.gz” compressed format firmware files. For “xxx.img.gz”, you only need to input “xxx.img” as the name, without adding “.gz” separately. vm_id: The ID of the created virtual machine. Generally a number sequence starting with non-zero, such as 100. vmdisk_name: The disk name to be used by the virtual machine. It is recommended to use the vm-<vm_id>-disk-<disk_id> naming format, such as vm-100-disk-1. storage: The ID of the storage pool used for importing, defaulting to “local-lvm”, which is automatically created when installing PVE. This item is optional; if not specified, the default value will be used. Next, you only need to assign the hard disk in the panel.