first commit

This commit is contained in:
2022-06-12 12:40:40 +02:00
parent db59715d36
commit 255f1b8e8c
6 changed files with 65 additions and 1 deletions

12
docs/proxmox/Debian-VM.md Normal file

@ -0,0 +1,12 @@
```
df -h
```
sudo fdisk -l
sudo apt-get install -y parted
sudo parted /dev/sda
print
resizepart 2 100%

@ -21,6 +21,6 @@ lxc.mount.entry: /dev/tty7 dev/tty7 none bind,create=file
```
```
lxc.cgroup.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
```

@ -0,0 +1,12 @@
```
df -h
```
sudo fdisk -l
sudo apt-get install -y parted
sudo parted /dev/sda
print
resizepart 2 100%

@ -0,0 +1,38 @@
# Passthrough Harddisks to Proxmox VM's
1. In Proxmox terminal install `lshw`:
```
apt-get update && apt-get install -y lshw
```
2. Look and copy harddisk `product`:
```
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:
```
ls -l /dev/disk/by-id/ | grep {{product id you copied}}
```
4. Add it to your VM:
```
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
```
`-scsi2` this is assuming VM only has 1 Harddisks
If you are adding multiple Harddisks `-scsi2` should always increase +1.
EG:
First Disk:
```
qm set {{VM ID}} -scsi2 /dev/disk/by-id/{{Full ID copied from last command}}
```
Second Disk:
```
qm set {{VM ID}} -scsi3 /dev/disk/by-id/{{Full ID copied from last command}}
```
Third Disk:
```
qm set {{VM ID}} -scsi4 /dev/disk/by-id/{{Full ID copied from last command}}
```