Skip to content

Commit

Permalink
feat: enable plex
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevader committed Dec 30, 2023
1 parent 196628b commit 3b0c98d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-media-apps/plex/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plex:
controller:
enabled: false
enabled: true
env:
# cat /config/Library/Application\ Support/Plex\ Media\ Server/Preferences.xml | tr " " "\n" | \
# sed -n '/<Preferences/,$p' | tail -n +2 | sed 's,/>,,g' | \
Expand Down
28 changes: 28 additions & 0 deletions docs/proxmox-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,33 @@ sudo apt-get install qemu-guest-agent
```


### Disk passthrough

The disks for longhorn, especially the slower ones like HDD, should be attached to the VM directly.
Unfortunately there is no way to do this in the Web UI at the moment but proxmox provides quite a
[good guide][proxmox-passthrough] for it.

Go through the following steps

1. Find right disk

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

2. Add drive as new virtual drive

```bash
qm set 592 -scsi2 /dev/disk/by-id/ata-...
```
Replace *592* with the correct VM id and -scsi*2* with the next scsi id.

3. Remove drive

```bash
qm unlink 592 --idlist scsi2
```

## Tips & Trick

### Resize disk
Expand All @@ -183,6 +210,7 @@ sudo lvresize -l +100%FREE --resizefs /dev/mapper/ubuntu--vg-ubuntu--lv
## References

[tt-proxmox]: https://docs.technotim.live/posts/first-11-things-proxmox/
[proxmox-passthrough]: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)



Expand Down

0 comments on commit 3b0c98d

Please sign in to comment.