read
  1. Check in the GUI the serial number of the HDD (navigation: Proxmox URL > Notes > Disks > copy Serial)

  2. Check in the GUI the VM number (e.g. 107) (navigation: Proxmox URL > Virtual Machine >number and name of vm

  3. Write it down

  4. Used the shell of the node (navigation: Proxmox URL > node > Shell)

  5. Used this command to navigate to the disk folder (by-id):

    cd /dev/disk/by-id/
  6. This to list the Disks (by-id)

    ls
  7. This comment to attach the disk to the vm. The 101 is the number of the vm and the numbers and letters behind by-id/ is the disk. The -scsi5 number could be anything. You could add more scsi disks in this way.

    qm set 107 -scsi5 /dev/disk/by-id/ata-ST8000DM004-2CX188_WCT2Z8PX
  8. If i was done (e.g. finised with my backup) then I used this comment:

    qm unlink 107 --idlist scsi5
  9. Automate the steps by this new script: SCRIPT LINK

Blog Logo

Vincentde Koning

The world is a playground!


Published

Image

DE KONING

Projects, Adventures and Experiments

Back to Overview