# Create Media Server LXC (Plex or Jellyfin)

> Create the Debian LXC container that will run your media server — Plex or Jellyfin. The setup process is identical for both.

# Create Media Server LXC

Both Plex and Jellyfin run in a dedicated Debian LXC container — the creation process is identical for both. LXCs have lower overhead than full VMs, give the media server direct access to the ZFS storage via bind mounts, and make GPU passthrough easier to configure.

Create one LXC and name it after whichever you are installing (`plex` or `jellyfin`).

## Download the Debian template

In the Proxmox UI, go to:

`local (proxmox)` → `CT Templates` → `Templates`

Search for **Debian** and download the latest available template.

![Download Debian template](/assets/docs/template.png)

## Create the container

Click **Create CT** in the top right. Configure it as follows:

**General**
- Hostname: e.g. `plex`
- Password: set a secure root password
- Unprivileged container: **Yes**
- Nesting: **Yes** (required)

![General settings](/assets/docs/template1.png)

**Template**
- Select the Debian template you just downloaded

![Template selection](/assets/docs/template2.png)

**Disks**
- Storage: local-lvm (or your preferred storage)
- Disk size: **32 GB**

![Disk settings](/assets/docs/template3.png)

**CPU**
- Cores: **2–4**

![CPU settings](/assets/docs/template4.png)

**Memory**
- RAM: **2048 MB**
- Swap: **512 MB**

![Memory settings](/assets/docs/template5.png)

**Network**
- Leave as default (DHCP or set a static IP)

**DNS**
- Leave as default

Review and click **Finish**.

## Start the container

Select the new LXC in the Proxmox sidebar and click **Start**. Open the console to verify it boots correctly.

## Why LXC instead of Docker?

Running your media server in an LXC (rather than as a Docker container inside the VM) has a few advantages:

- Direct bind mount to ZFS storage without going through NFS
- Simpler GPU/iGPU passthrough at the Proxmox level
- Independent restart cycle from the automation stack

This applies equally to Plex and Jellyfin — both benefit from the same setup.

## Next step

The LXC is now running with Debian, but the media server is not installed yet. Storage is not mounted yet either. Continue to [Create Docker VM](/docs/home-server/media-automation/installation/create-docker-vm).

Media server installation happens later, after storage is set up:
- Plex: [Install & Configure Plex](/docs/home-server/media-automation/installation/install-plex)
- Jellyfin: [Jellyfin](/docs/home-server/media-automation/user-facing-services/jellyfin)
