Disk Passthrough Script #1832

Closed
opened 2026-02-05 02:23:22 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ehjr5u on GitHub (Oct 19, 2025).

🌟 Briefly describe the feature

A helper-script that can help format and set up disks inside your machine to then pass it through an LXC or VM automatically

📝 Detailed description

When you paste the script into the shell of your preferred node, the script will start up and will scan all detected drives inside the system. Once it's done, you can choose multiple drives and either format them, or don't. When they are ready to pass through, it will list all VM IDs inside your machine. When the user chooses their preferred destination, it will copy all of the selected hard drive's part-uuid (or similar), import them in, and assign each a drive number with your preferred interface (ex: sata, ide, scsi, and etc.)

💡 Why is this useful?

Users will have an easier way to passthrough their storage to a NAS or preferred operating system, instead of doing it manually by lsblk, formatting with cfdisk, finding their part-uuid with blkid and importing it with a command. And you have to pass one drive at a time, which can take some time, and could potentially make a mistake with one or more drives

Originally created by @ehjr5u on GitHub (Oct 19, 2025). ### 🌟 Briefly describe the feature A helper-script that can help format and set up disks inside your machine to then pass it through an LXC or VM automatically ### 📝 Detailed description When you paste the script into the shell of your preferred node, the script will start up and will scan all detected drives inside the system. Once it's done, you can choose multiple drives and either format them, or don't. When they are ready to pass through, it will list all VM IDs inside your machine. When the user chooses their preferred destination, it will copy all of the selected hard drive's part-uuid (or similar), import them in, and assign each a drive number with your preferred interface (ex: sata, ide, scsi, and etc.) ### 💡 Why is this useful? Users will have an easier way to passthrough their storage to a NAS or preferred operating system, instead of doing it manually by lsblk, formatting with cfdisk, finding their part-uuid with blkid and importing it with a command. And you have to pass one drive at a time, which can take some time, and could potentially make a mistake with one or more drives
OVERLORD added the enhancement label 2026-02-05 02:23:22 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1832