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 (
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.
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:
/mnt/disk_passthrough
).
The selected disk is mounted inside the container at the specified path, and permissions are set automatically.
Important:
The container must be privileged to allow direct read/write access to the physical disk.