To Proxmox or not to Proxmox

access done even from my office now. i have only to set up devices. what you use to protect port from external access?

I donโ€™t expose it, but if you do, use Nginx Proxy Manager

@tteck I migrated Plex from my Nvidia Shield Pro to LXC using your script. As soon as I created the container, I noticed it was Ubuntu, then I installed Intel drivers through the script.

I then installed vainfo and checked versions:

root@plex:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD

Then I went on my docker LXC where I migrated frigate and had to manually passthrough the intel gpu with some modifications to the container config file, it is based on your LXC debian script:

root@traefik:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD

Versions are probably more updated on debian 11 because itโ€™s a lot newer than Ubuntu 20.04. But it was nice to see that /dev/dri/renderD128 was already passed-through without modifications in the container, you accomplished that in the installation script? Does Plex support Ubuntu 21.x?

On my docker container, I didnโ€™t install all those intel drivers, just did an apt install va-driver-all and debian installed all the latest intel driversโ€ฆI think this should work on Ubuntu tooโ€ฆ

root@traefik:~# apt info va-driver-all
Package: va-driver-all
Version: 2.10.0-1
Priority: optional
Section: video
Source: libva
Maintainer: Debian Multimedia Maintainers <[email protected]>
Installed-Size: 24.6 kB
Depends: i965-va-driver | i965-va-driver-shaders, intel-media-va-driver | intel-media-va-driver-non-free, mesa-va-drivers
Homepage: https://01.org/linuxmedia/vaapi
Download-Size: 15.3 kB
APT-Manual-Installed: no
APT-Sources: http://ftp.debian.org/debian bullseye/main amd64 Packages
Description: Video Acceleration (VA) API -- driver metapackage
 This package depends on the full suite of drivers for the Video Acceleration
 API (VA API). It does not provide any drivers itself, and may be removed if
 you wish to only have certain drivers installed.

Thanks for the info! I personally donโ€™t have Intel CPU on my laptop so I couldnโ€™t test. Testing was done by a few in the issues-feature request from my repo the script originally was using Debian but someone mentioned that Ubuntu 20 would work. Once I got it working, and no way to test myself, I just left it. May give you a shout later if youโ€™re willing to test.

Ubuntu was advised probably because Plex officially supports only Ubuntu & Fedora: Using Hardware-Accelerated Streaming | Plex Support

But I read that the best Ubuntu version, with latest driver packages, is 21.x, and it also has a newer kernel that provides some benefit for the Plex container.

If you can prepare the same container, but with Ubuntu 21.x with all the needed modifications you did for 20.x, I can also test if installing only the va-driver-all metapackage is enough, so you can skip the extra intel drivers script.

If we want to have fun, we could also test the same container, but based on Debian 11. I bet it would work fine.

Ready for testing in dev branch. Ubuntu 21.10 with va-driver-all pre installed

My install with Ubuntu 21.10 and va-driver-all

root@plex:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.10.0)
vainfo: Driver version: Mesa Gallium driver 21.2.2 for AMD KABINI (DRM 2.50.0, 5.13.19-3-pve, LLVM 12.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileNone                   : VAEntrypointVideoProc

Great! As I imagined, Ubuntu 21.10 is way better in terms of updates. Youโ€™re on AMD? Howโ€™s HW encoding/decoding doing with Plex?

Can I update my container to 21.10 or do I have to restart from scratch? All data is in the containerโ€ฆdonโ€™t want to start scraping my 3800 movies againโ€ฆ

Yes AMD. I still use Nvidia Shield for my PMS, havenโ€™t tried it on Proxmox as my main PMS
I think Iโ€™ll do a PR, beings everything seems to work and with newer drivers.

Sorry a reinstall is required to get 21.10

Believe me, PMS in the LXC is incredible: it scraped all my movie library on the NAS in 10 minutesโ€ฆon the Shield it takes 3 hours minimum. And cpu/mem usage is very very lowโ€ฆincredible. After all the mess with Plex and Android 11 update on the Shield, I decided to migrate yesterday. Will use the Shield only as a plex client. :slight_smile:

Yesterday I got a deal for a Lenovo ThinkCentre M910x (i7-6700 with ambedded Intel HD 530 gpu, plus AMD Radeon RX 560, so I was checking if Plex supports AMD and found out itโ€™s not officially supported, but thanks to this guy, that made a nice docker container version, it works:

Hereโ€™s the docker repo: mauimauer/spritsail-plex - Docker Image | Docker Hub

And hereโ€™s the github repo: GitHub - mauimauer/spritsail-plex-media-server: Worlds smallest Docker image for Plex Media Server, built on spritsail/busybox

Analyzing his dockerfile, you should be able to convert his install to an LXC probablyโ€ฆ

Now I have to check where Plex saves its data so I can back it up and migrate it to the 21.10 container.

Use Webmin to browse to it and download :wink:

the problem is not transferring it, but identifying it. :slight_smile:

tar is so efficient for these thingsโ€ฆ:wink:

Canโ€™t remember if Webmin automatically compresses with .tar or .zip when downloading
Let me know how things go.

you want to do a Plex transfer script? :slight_smile:

Iโ€™ll let you knowโ€ฆ

forward the data pathsโ€ฆ Iโ€™ll create it

For Debian/Ubuntu Itโ€™s only one folder, it contains everything, data & settings:

image

1 Like

So the Plex script now implements my recommendations? Can I run it to create the new PMS? Iโ€™m backing up data nowโ€ฆ

BTW: are you on Discord?

Yes

scriptโ€™s ready :slightly_smiling_face:

bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/pms-copy-data.sh)"

yep

Iโ€™ll check it. In the destination server, PMS should be stopped before copying data, and restarted when transfer is complete.

tagname is the same?

๐™ฉ๐™ฉ๐™š๐™˜๐™ ๐™จ๐™ฉ๐™š๐™ง#7481