How to migrate from a server running docker containers to Proxmox (VM and LXC containers)?

apoorv569

Member
Sep 3, 2022
3
0
6
I have been thinking about switching from my OpenMediaVault server, running bunch of docker containers to Proxmox. But I have some questions and doubts.

If I create a LXC container or VM for OpenMediaVault in Proxmox, how would I access a share in another container or VM running more docker containers? for example if I have another container or VM for Jellyfin media server.

I decided to do so, because I want to expose some services on internet, and I want to separate all serveries from the ones I don't want to expose.

Like I have all these shares I created inside OpenMediaVault, https://i.postimg.cc/bvQtFH0f/2022-08-31-23-14.png and each docker container depending on what it is gets access to one of these shares (if needed) to store/access data to/from.

Here is an image showing a compose file for jellyfin container, https://i.postimg.cc/652LfZPt/2022-08-31-23-19.png as you can see it uses the same path from the share I created in OpenMediaVault.

I am wondering if (because of different containers or VM having different IP and all) how would I access the shares?

Would this be possible with LXC container and/or VM's?

I have already tried adding my only 4TB drive as storage to proxmox and mounted it as BTRFS, then I created a VM for OpenMediaVault and added 2 storage device to it one for the OS and other this 4TB drive. Now inside the OMV VM, I see the 4TB drive but I cannot mount it, OMV wants me to format it first then mount. I cannot do this for obvious reasons. Am I doing something wrong?

Here is a screenshot from a test proxmox VM I created to show the problem https://i.postimg.cc/m2dNkcZ5/2022-09-03-11-05.png

Here nas is the 4TB drive and 101 omv-vm is VM for OMV.
 
I have been thinking about switching from my OpenMediaVault server, running bunch of docker containers to Proxmox. But I have some questions and doubts.

If I create a LXC container or VM for OpenMediaVault in Proxmox, how would I access a share in another container or VM running more docker containers? for example if I have another container or VM for Jellyfin media server.
I got OMV woking under PVE 6.4 in an LXC but other people tried it with PVE 7.X and didn`t got it working. But OMV in VM still should work fine.
For other VMs you would use NFS/SMB shares that you mount inside the other VM. For privileged LXCs you can also mount SMB/NFS shares. More problematic it is with unprivileged LXCs as there you won't be able to mount NFS/SMB shares inside the LXC. Workaround there would be to mount the NFS/SMB shares directly on the PVE host and then use bind-mounts and edited user remapping o bring the mountpoints of the NFS/SMB shares into the unprivileged LXC like described here: https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I decided to do so, because I want to expose some services on internet, and I want to separate all serveries from the ones I don't want to expose.
In case you want to expose a LXC to the internet I wouldn't use the less secure privileged LXCs. Either unprivileged LXCs or better VMs for even more isolation.
I have already tried adding my only 4TB drive as storage to proxmox and mounted it as BTRFS, then I created a VM for OpenMediaVault and added 2 storage device to it one for the OS and other this 4TB drive. Now inside the OMV VM, I see the 4TB drive but I cannot mount it, OMV wants me to format it first then mount. I cannot do this for obvious reasons. Am I doing something wrong?

Here is a screenshot from a test proxmox VM I created to show the problem https://i.postimg.cc/m2dNkcZ5/2022-09-03-11-05.png

Here nas is the 4TB drive and 101 omv-vm is VM for OMV.
Is that 4TB disk used for anything else then storing files for OMV? If not maybe disk passthrough might be useful: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)