WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Proxmox Disk Passtrough

    Linux
    1
    2
    14
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by

      Disks suchen:

      lsblk -o +MODEL,SERIAL,WWN
      
      ls -l /dev/disk/by-id/
      

      Beispiel Output:

      lrwxrwxrwx 1 root root  9 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MQYC -> ../../sda
      lrwxrwxrwx 1 root root 10 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MQYC-part1 -> ../../sda1
      lrwxrwxrwx 1 root root 10 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MQYC-part2 -> ../../sda2
      lrwxrwxrwx 1 root root  9 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MRCN -> ../../sdb
      lrwxrwxrwx 1 root root 10 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MRCN-part1 -> ../../sdb1
      lrwxrwxrwx 1 root root 10 Nov 28 12:26 ata-ST2000VN004-2E4164_Z528MRCN-part2 -> ../../sdb2
      

      VM Updaten:

      qm set 114  -scsi2 /dev/disk/by-id/ata-ST2000VN004-2E4164_Z528MQYC
      qm set 114  -scsi3 /dev/disk/by-id/ata-ST2000VN004-2E4164_Z528MRCN
      

      DONE!

      DerMeldosD 1 Reply Last reply Reply Quote 0
      • DerMeldosD
        DerMeldos @DerMeldos
        last edited by

        UPDATE!!

        find Drive:

        find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12
        

        Update VM:

        qm set 592 -scsi2 /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F41BLC
        

        Complete Example:
        f075efab-6e75-4a23-af17-4104275881b8-image.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors