passing the hard disks into a LXC - why does it have to be so complicated? Alternatives? Suggestions for improvement?

hpoperator

New Member
Apr 18, 2023
18
1
3
Deutschland --> Saarland
Hello again :-)

as mentioned proxmox is new territory for me....

now I am in the process of setting up Plex Mediaserver LXC. Works also so far......but the passing of the unmounted disks is in my eyes much too complicated...... :oops:

But briefly to the actual situation:
I have 4 disks connected to my server (not counting the SSD on which I installed proxmox), on these disks were already a lot of files. Consequently, it was not possible for me to mount them in proxmox, because they are formatted during this process. "OK" I thought to myself and since I also wanted to use them in Openmediavault, which I also installed as a VM, I simply passed these disks through. Works fine too.

But now coming to the problem:
Since I have installed Plex Mediaserver LXC, as described in the beginning, I can not simply pass through these hard drives, respectively the movies and series that are on the hard drives. I have therefore in the Plex shell with a SMB share (which points to my OpenMediaVault) to mount the content, has also worked.

But I think to myself, that must also go better.
This way is much too complicated and also I can not run the same hard drive at the same time in different LXC, with the other LXCs must first be separated.

Should I perhaps copy all the data to a new, clean hard drive, which I have previously mounted correctly in proxmox, to then gradually mount the others in proxmox and then distribute the data again sensibly?
Or is there another possibility, of which I have no idea yet?

How do you do that?

Other question:
If I have mounted the disks in proxmox, can I access the disks with more than one LXC at the same time?
 
Consequently, it was not possible for me to mount them in proxmox, because they are formatted during this process.
only during installation. There is no problem mounting them afterwards. This solves all you problems and you can bind mount the folders to as many LX(C) containers as you want while they're all running.
 
only during installation. There is no problem mounting them afterwards. This solves all you problems and you can bind mount the folders to as many LX(C) containers as you want while they're all running.
Still the question if those LXCs should access the same disks that are passthroughed into the OMV VM. Because doing that would corrupt the data.
 
only during installation. There is no problem mounting them afterwards. This solves all you problems and you can bind mount the folders to as many LX(C) containers as you want while they're all running.
Ok, thank you for your reply.

And how do I proceed in detail?
Because as soon as I want to mount the hard disk in proxmox, he wants to format, right?
I only ask for a correct way because I'm afraid to lose the data that are on the hard drives (family photos and so).
 
And how do I proceed in detail?
Because as soon as I want to mount the hard disk in proxmox, he wants to format, right?
You manually mount it using the CLI by adding a line to the fstab or using systemd.
Keep in mind that PVE is no appliance where you can do everything in GUI and where you are only supposed to do what the GUI offers. Its a full fledged linux distribution, so 99,999% of the stuff you can do with it is only available using the CLI. But as you probably want to run most stuff in a guest and not on the host, its not that bad. But PVE mostly only allows you to do stuff in the webUI that is commonly used when administrating guests. For more advanced stuff you configure it like you would do with any other headless linux server running in a datacenter.

You can always refer to normal Debian tutorials, as PVE is based on that. So googling for something like "How to mount a xyz formated partition in Debain?" should give you plenty results.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!