环境

  • Proxmox 7
  • dsm7.1

编译引导文件

注册github,fork项目

https://github.com/tossp/redpill-tool-chain

修改配置

  • 获取SataPortMap和DiskIdxMap

    # 下载地址
    # https://github.com/pocopico/tinycore-redpill

    # 获取
    ./rploader.sh satamap now
  • sample_user_config.json

# "DiskIdxMap": "0100",第一个sata控制器的磁盘编号01,02,03,04,第二个sata控制器的磁盘编号00
# "SataPortMap": "41",两个sata控制器,分别可以叉4个硬盘和1个硬盘
{
"extra_cmdline": {
"pid": "0x0001",
"vid": "0x46f4",
"DiskIdxMap": "0100",
"SataPortMap": "41",
"SasIdxMap": "0",
"sn": "1234XXX123",
"mac1": "XXYYXXYYXXYY"
},
"synoinfo": {},
"ramdisk_copy": {},
"extensions": []
}

添加驱动

  • 驱动仓库

    https://github.com/pocopico/rp-ext
  • 修改文件添加驱动 .github/workflows/text.yml

    个人测试bnx2驱动不生效,建议直接使用intel网卡

    - name: 添加扩展驱动
    if: matrix.platform != 'dva3221'
    run: |
    ./redpill_tool_chain.sh add https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-boot-wait.json
    ./redpill_tool_chain.sh add https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-acpid.json
    ./redpill_tool_chain.sh add https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-virtio.json

    # 新增内容
    ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/bnx2/rpext-index.json
    ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/igb/rpext-index.json

提交代码,github仓库执行actions编译,然后下载

PVE虚拟机

虚拟机配置

  • /etc/pve/qemu-server/104.conf
    bios: ovmf
    boot: order=sata0
    cores: 4
    cpu: host
    hostpci0: 0000:08:00.0
    hostpci1: 0000:03:00.1,pcie=1
    machine: q35
    memory: 8192
    meta: creation-qemu=6.1.1,ctime=1651237325
    name: NAS
    numa: 0
    ostype: l26
    sata0: local:104/vm-104-disk-0.raw,size=160M
    smbios1: uuid=26cff932-b709-4ffc-a292-92d20b03cfd7
    sockets: 1
    vmgenid: 3b99a19a-7d2a-4551-993b-1e80fa6783be

安装群晖系统

  • 下载地址
    https://archive.synology.cn/download/Os/DSM

参考