[GH-ISSUE #8475] Disk Passthrough Script #1833

Closed
opened 2026-02-26 12:50:22 +03:00 by kerem · 0 comments
Owner

Originally created by @ehjr5u on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/8475

🌟 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). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/8475 ### 🌟 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
kerem 2026-02-26 12:50:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#1833
No description provided.