Skip to content

Instantly share code, notes, and snippets.

@icyleaf
Forked from Neonox31/install-dsm-6-on-proxmox-5.md
Last active January 21, 2021 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icyleaf/5a970e963ae59001ce1660218bf7716c to your computer and use it in GitHub Desktop.
Save icyleaf/5a970e963ae59001ce1660218bf7716c to your computer and use it in GitHub Desktop.
Install DSM 6.X on Proxmox 5.0.X

草稿

准备资源

步骤

  • 在 Proxmox 创建虚拟机:

    • OS 类型: Linux 4.x
    • CD/DVD: 无需
    • 硬盘: virtIO, local, 1GB, raw disk image
    • CPU: 2 cores
    • 内存 : dynamiclly allocate between 2048 Mo and 4096 Mo
    • 网络 : Intel E1000, MAC auto
  • 通过任意方式把 synoboot.img 上传到 proxmox 节点的 /tmp 路径: scp synoboot.img user@proxmox-host:/tmp

  • 使用可以访问 SSH 的终端登录并切换到 /tmp 路径: cd /tmp

  • 检查 synoboot.img 镜像 EFI 分区的 start block 数值: fdisk -lu synoboot.img (见下面附录可知是 2048)

  • 挂载镜像文件: mount -t auto -o loop,offset=[start block * 512] synoboot.img /mnt/tmp ([start block * 512] = 2048 * 512 = 1048576)

  • 编辑 /mnt/tmp/grub/grub.cfg 中的 vid 和 mac address (使用群晖虚拟机可以半洗白)

  • 把镜像烧录到刚刚创建的虚拟机硬盘: dd if=synoboot.img of=/dev/pve/vm-100-disk-1 (其中 100 指的是虚拟机 ID,disk-1 指的是硬盘数)

  • 创建至少 1-2 个磁盘,其中一个可以是 DSM 的安装磁盘,额外的其他磁盘是数据存储盘,当然你可以只用一个盘(直通或虚拟都行)

  • 其他工作(调整 CPU、内存等)

  • 虚拟机开机

  • 打开浏览器访问 http://find.synology.com/ 查看局域网找到虚拟机,记住 IP

  • 安装完成!

附录

~ fdisk -lu /tmp/synoboot.img
Disk /tmp/synoboot.img: 50 MiB, 52428800 bytes, 102400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B3CAAA25-3CA1-48FA-A5B6-105ADDE4793F

Device             Start    End Sectors Size Type
/tmp/synoboot.img1  2048  32767   30720  15M EFI System
/tmp/synoboot.img2 32768  94207   61440  30M Linux filesystem
/tmp/synoboot.img3 94208 102366    8159   4M BIOS boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment