Create LXC and Install Plex Media Server

This article will show you how to create a LXC Unprivilege and Install Plex Media Server.

1. What is Proxmox Linux Container (LXC)

For virtualization, Proxmox offers two methods: Linux Container (LXC) and Virtual Machine (VM).

Proxmox LXC containers are lightweight, alternatives to fully virtualized machines (VMs). They use the kernel of the host system that they run on, instead of emulating a full operating system (OS). This means that containers can access resources on the host system directly.

Proxmox LXC supports a lot of Linux Distro:

  • Arch Linux
  • CentOS / CentOS Stream
  • Debian
  • Fedora
  • Ubuntu
  • … etc

Read more: Linux Container - Proxmox VE

2. Download the CT Templates

Access Proxmox Server —> local (pve) —> CT Templates —> Templates

lxc-01.png

As you see, Proxmox provides a lot of Linux Distro. Choose your suitable one. With me, I choose Debian Distro with version 12.

When the download is completed. The template will show in the CT Template tab.

lxc-02.png

3. Create a LXC for Plex Media Server

I tested many configurations and found that with configurations 2-2, my Plex Server runs fine.

Go back to the main Proxmox Server WebUI, Select the Create CT Function

lxc-03.png

lxc-04.png

lxc-05.png

lxc-06.png

lxc-07.png

lxc-08.png

lxc-09.png

lxc-10.png

lxc-11.png

4. Install Plex Media Server

  • Update system and install additional packages.
1apt update
2apt -y install dirmngr ca-certificates software-properties-common apt-transport-https curl sudo
  • Import Plex GPG key and Plex Repository
1curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex.gpg > /dev/null
2echo "deb [signed-by=/usr/share/keyrings/plex.gpg] https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
  • Update changes and install Plex Media Server
1apt update
2apt -y install plexmediaserver
  • Verify Plex Media Server Installation
 1service plexmediaserver status
 2* plexmediaserver.service - Plex Media Server
 3     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; preset: enabled)
 4     Active: active (running) since Sat 2024-01-27 05:06:37 UTC; 49s ago
 5    Process: 156 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPOR>
 6   Main PID: 162 (Plex Media Serv)
 7      Tasks: 54 (limit: 18874)
 8     Memory: 149.8M
 9        CPU: 2.982s
10     CGroup: /system.slice/plexmediaserver.service
11             |-162 "/usr/lib/plexmediaserver/Plex Media Server"
12             |-264 "Plex Plug-in [com.plexapp.system]" /usr/lib/plexmediaserver/Resources/Plug-in>
13             |-367 "/usr/lib/plexmediaserver/Plex Tuner Service" /usr/lib/plexmediaserver/Resourc>
14             `-400 "Plex Plug-in [com.plexapp.agents.imdb]" /usr/lib/plexmediaserver/Resources/Pl>
15
16Jan 27 05:06:37 plex systemd[1]: Starting plexmediaserver.service - Plex Media Server...
17Jan 27 05:06:37 plex systemd[1]: Started plexmediaserver.service - Plex Media Server.
18Jan 27 05:06:49 plex [367]: Critical: libusb_init failed
19Jan 27 05:06:49 plex Plex Media Server[367]: Critical: libusb_init failed

plex-01.png