Update 'docs/proxmox/vm-passthrough-harddrives.md'
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8e5843ea9a
commit
616cbbbae1
@ -1,38 +1,27 @@
|
|||||||
# Passthrough Harddisks to Proxmox VM's
|
# Passthrough Harddisks to Proxmox VM's
|
||||||
|
```
|
||||||
1. In Proxmox terminal install `lshw`:
|
1. In Proxmox terminal install `lshw`:
|
||||||
```
|
|
||||||
apt-get update && apt-get install -y lshw
|
apt-get update && apt-get install -y lshw
|
||||||
```
|
|
||||||
|
|
||||||
2. Look and copy harddisk `product`:
|
2. Look and copy harddisk `product`:
|
||||||
```
|
|
||||||
lshw -class disk -class storage
|
lshw -class disk -class storage
|
||||||
```
|
|
||||||
|
|
||||||
3. Get the full id with, replace `{{product id you copied}}` with the product id you copied from last command:
|
3. Get the full id with, replace `{{product id you copied}}` with the product id you copied from last command:
|
||||||
```
|
|
||||||
ls -l /dev/disk/by-id/ | grep {{product id you copied}}
|
ls -l /dev/disk/by-id/ | grep {{product id you copied}}
|
||||||
```
|
|
||||||
|
|
||||||
4. Add it to your VM:
|
4. Add it to your VM:
|
||||||
```
|
|
||||||
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
|
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
|
||||||
```
|
|
||||||
|
|
||||||
`-scsi2` this is assuming VM only has 1 Harddisks
|
`-scsi2` this is assuming VM only has 1 Harddisks
|
||||||
If you are adding multiple Harddisks `-scsi2` should always increase +1.
|
If you are adding multiple Harddisks `-scsi2` should always increase +1.
|
||||||
|
|
||||||
EG:
|
EG:
|
||||||
First Disk:
|
First Disk:
|
||||||
```
|
|
||||||
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
|
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
|
||||||
```
|
|
||||||
Second Disk:
|
Second Disk:
|
||||||
```
|
|
||||||
qm set {{VM ID}} -scsi3 /dev/disk/by-id/{{Full ID copied from last command}}
|
qm set {{VM ID}} -scsi3 /dev/disk/by-id/{{Full ID copied from last command}}
|
||||||
```
|
|
||||||
Third Disk:
|
Third Disk:
|
||||||
```
|
|
||||||
qm set {{VM ID}} -scsi4 /dev/disk/by-id/{{Full ID copied from last command}}
|
qm set {{VM ID}} -scsi4 /dev/disk/by-id/{{Full ID copied from last command}}
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user