上传镜像
上传完后获得文件路径
/var/lib/vz/template/iso/DS3615xs.img
进入虚拟机配置文件
nano /etc/pve/qemu-server/101.conf
以上代码中101对应群晖虚拟机ID
代码中 /var/lib/vz/template/iso/DS3615xs.img 对应的是上传的路径
添加以下代码把群晖引导转换为虚拟U盘
args: -device 'qemu-xhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/template/iso/DS3615xs.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=5'