import { Steps } from "@/components/ui/steps" import { HardDrive, ArrowRight } from "lucide-react" import { ImageWithCaption } from "@/components/ui/image-with-caption" import type { Metadata } from "next" export const metadata: Metadata = { title: "Disk Passthrough to a CT | ProxMenux Documentation", description: "Step-by-step guide to configure disk passthrough to a container (CT) in Proxmox VE using ProxMenux.", openGraph: { title: "Disk Passthrough to a CT | ProxMenux Documentation", description: "Step-by-step guide to configure disk passthrough to a container (CT) in Proxmox VE using ProxMenux.", type: "article", url: "https://macrimi.github.io/ProxMenux/docs/disk-ct", images: [ { url: "https://macrimi.github.io/ProxMenux/disk-ct/disk-selection.png", width: 1200, height: 630, alt: "Disk Passthrough to a CT", }, ], }, twitter: { card: "summary_large_image", title: "Disk Passthrough to a CT | ProxMenux Documentation", description: "Step-by-step guide to configure disk passthrough to a container (CT) in Proxmox VE using ProxMenux.", images: ["https://macrimi.github.io/ProxMenux/disk-ct/disk-selection.png"], }, } export default function DiskPassthroughCT() { return (

Disk Passthrough to a CT

This guide explains how to assign a dedicated physical disk to a container (CT) in{" "} Proxmox VE using ProxMenux. Assigning a full disk to a container is useful when you need isolation, ease of access, or the ability to move the disk between systems, especially for services handling large volumes of data such as Samba, Nextcloud, or video surveillance software, among others.

While it's more common to passthrough entire disks to virtual machines (VMs), there are scenarios where giving full disk access to an LXC container can be very useful.

As you can see, there are many different use cases where assigning a physical disk directly to a CT is the ideal solution.

Description

  1. Lists physical disks on the Proxmox host, excluding the system disk and mounted system disks.
  2. Displays all existing LXC containers (CTs) for user selection.
  3. Allows the user to select one physical disk per execution.
  4. Formats the disk (with user confirmation) or reuses it, then assigns it as a mount point in the selected CT.

Step-by-Step Instructions

The user selects the destination LXC container (CT) to which the disk will be assigned.

The script lists all physical disks, excluding those used by the system. It also displays metadata like ZFS, LVM, and RAID, and shows warnings if the disk is already in use.

The script performs the following actions:

  • Detects whether the disk has a supported filesystem (ext4, xfs, btrfs).
  • Offers to format the disk if no valid filesystem is found.
  • Prompts the user to define the mount point (e.g. /mnt/disk_passthrough).

The selected disk is mounted inside the container at the specified path, and permissions are set automatically.

Expected Results

Important Considerations

Important:

The container must be privileged to allow direct read/write access to the physical disk.

) }