查看硬盘信息:
ls /dev/disk/by-id
添加硬盘到虚拟机:
qm set 虚拟机ID -sata1 /dev/disk/by-id/硬盘识别符
示例:
qm set 101 --sata1 /dev/disk/by-id/ata-WDC_WD40EJRX-89T1XY0_WD-WCC7K4VKAR84
查看硬盘信息:
ls /dev/disk/by-id
添加硬盘到虚拟机:
qm set 虚拟机ID -sata1 /dev/disk/by-id/硬盘识别符
示例:
qm set 101 --sata1 /dev/disk/by-id/ata-WDC_WD40EJRX-89T1XY0_WD-WCC7K4VKAR84