Jump to content

I have a server I run ESXI on that in ESXI I have a VM that I run Ubuntu Server on which I use to run docker for a lot of services and such. My question is I want to run Plex and Piwigo and other stuff in containers which require large amounts of drive space I have the drive space but my VM is mounted on my SSDs which is mirrored 500GB so I only have enough space for the VM to run the OS on it I have plenty disk drives in the server but for this should I either setup in Ubuntu server a secondary drive which make all the data go from the containers go to or should I just try and move my Ubuntu Server VM to the disk drives if that’s even possible so the space is available natively. What is the best option and how should I go about accomplishing this?

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/
Share on other sites

Link to post
Share on other sites

48 minutes ago, SargentFabulous1 said:

I have a server I run ESXI on that in ESXI I have a VM that I run Ubuntu Server on which I use to run docker for a lot of services and such. My question is I want to run Plex and Piwigo and other stuff in containers which require large amounts of drive space I have the drive space but my VM is mounted on my SSDs which is mirrored 500GB so I only have enough space for the VM to run the OS on it I have plenty disk drives in the server but for this should I either setup in Ubuntu server a secondary drive which make all the data go from the containers go to or should I just try and move my Ubuntu Server VM to the disk drives if that’s even possible so the space is available natively. What is the best option and how should I go about accomplishing this?

How are the “other drives” set up? Sounds like you need a VM running as a storage appliance (like truenas… or a Ubuntu VM running ZFS with SMB shares, etc) and just mount that share in the docker container. I did this exact thing in ESXi, although I now use proxmox. VM’s live on boot SSD, all data is in truenas mounted via SMB or NFS shares. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/#findComment-15437577
Share on other sites

Link to post
Share on other sites

Wow that is such a great idea I’ve never even thought about that. Can I just set up an Ubuntu server vm and then pass through the drives to that and the. Then share them via smb to Portainer. At the moment they aren’t really set up I had two of them in a raid 0 and then connected directly to ESXI and then I did pass through to the Ubuntu Server VM as like a secondary drive but I’ve some issues trying to set it up. 

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/#findComment-15437630
Share on other sites

Link to post
Share on other sites

1 hour ago, SargentFabulous1 said:

Wow that is such a great idea I’ve never even thought about that. Can I just set up an Ubuntu server vm and then pass through the drives to that and the. Then share them via smb to Portainer. At the moment they aren’t really set up I had two of them in a raid 0 and then connected directly to ESXI and then I did pass through to the Ubuntu Server VM as like a secondary drive but I’ve some issues trying to set it up. 

There are a lot of ways to do this…

 

But if you have ESXi, you can virtualize whatever you want, but it seems like your not really doing that? If you only have a single VM, you don’t really need to make this extra complicated with virtualization.

 

But what I am a big proponent of doing is getting an HBA, passing that through via PCIe vt-d I’d you have Intel, I forget what it’s called on AMD, and you pass the HBA through to something like truenas and it will handle nas duties (storage, SMB shares, access restriction via credentials etc etc), and then you mount the SMB share in your Ubuntu VM which is running docker in say /mnt/stuff, and in docker (portainer in your case), you just pass the docker container /mnt/stuff as /stuff or something, then the container can see the data in truenas’s SMB share. 
 

I would maybe do some googleing to find YouTube videos of of all of this. There are many, and many ways to do it. YouTube is FULL of homelab tutorials and ideas. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/#findComment-15437722
Share on other sites

Link to post
Share on other sites

Thank you so much I’ll definitely have to give that a try I do have other VMs running I’ve just tried to avoid virtualization of TrueNas haven’t really wanted wanted to deal with the ins and out of it right now. Not to mention the fact I have 3 other servers running it in one form or another. After reading about It i might try and do an NFS share from one of those servers to the container. Thank you so much for the help.

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/#findComment-15437742
Share on other sites

Link to post
Share on other sites

1 hour ago, SargentFabulous1 said:

Thank you so much I’ll definitely have to give that a try I do have other VMs running I’ve just tried to avoid virtualization of TrueNas haven’t really wanted wanted to deal with the ins and out of it right now. Not to mention the fact I have 3 other servers running it in one form or another. After reading about It i might try and do an NFS share from one of those servers to the container. Thank you so much for the help.

Virtualized truenas isn’t hard. Just need an HBA to pass through. Then it just works as normal. 
 

But ya, that works. NFS from another server would be fine. But I would definitely look towards consolidating all of your storage in one VM (truenas is a good option…) and have storage fully consolidated and network attach it. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to comment
https://linustechtips.com/topic/1437038-esxi-and-docker-drives/#findComment-15437845
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×