Premier VM TrueNAS

Dabord pour cettte premier vm je souhaite tester la monté de drive ,c’est pour cela que jJe formate mes 2 disques usb ssd de recup (husk (300go) et penance (500go) ) et je les attaches au serveur.

Apres avoir telecharger l’iso de TrueNAS-12.0-U6.iso on crée une nouvelle VM

Passthrough Physical Disk to Virtual Machine (VM)

https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)

Recupere la liste des disks sur le serveur

lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT DEVICE-ID(S)
sda                            8:0    0 111.8G  0 disk   /dev/disk/by-id/wwn-0x50026b738058fd3e /dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B738058FD3E
sdb                            8:16   0   1.8T  0 disk   /dev/disk/by-id/wwn-0x50014ee2b5e069bb /dev/disk/by-id/ata-WDC_WD20EZRX-22D8PB0_WD-WCC4M7UHY201
sdc                            8:32   0 465.8G  0 disk   /dev/disk/by-id/ata-HGST_HTS545050A7E680_RBF50FM52MY7UR /dev/disk/by-id/wwn-0x5000cca7a3e53fde
sdd                            8:48   0 931.5G  0 disk   /dev/disk/by-id/wwn-0x50014ee261364daf /dev/disk/by-id/ata-WDC_WD10EZRX-00D8PB0_WD-WCC4M0EE37RE
sde                            8:64   0 298.1G  0 disk   /dev/disk/by-id/usb-JMicron_Generic_0123456789ABCDEF-0:0
sdf                            8:80   0   3.6T  0 disk   /dev/disk/by-id/wwn-0x50014ee26394dace /dev/disk/by-id/ata-WDC_WD40EZRZ-00GXCB0_WD-WCC7K5HL7SHY

puis on attache un disk a la vm

qm set 102 -scsi1 /dev/disk/by-id/ata-HGST_HTS545050A7E680_RBF50FM52MY7UR

Leave a Comment