Need help adding HDD´s to Vms and LXC

jorglodita

Member
Jun 1, 2020
2
0
6
43
Hi! I have started with Proxmox a few days ago and I am totally happy about all the features it has. My server is 90% working now, but I still have a big problem before finish this setup: the data HDDs. Right now they appear in the node showing "partitions" in the usage tab.

I am using Ubuntu LXC containers right now but could use an VM for this if really needed (my server is not very powerfull, that´s the reason I am using LXC).

I want to create a NAS LXC (or VM if needed) but there are so many ways of doing that that I am totally lost.
I CANT USE ZFS, that´s important. They are A LOT of HDDs already filled with important data, and they are in EXT4. I know ZFS would be better, but at this moment I really can´t do the jump.

I have backup of the most important data in case I do something wrong, but I´d prefer to do this once and well done and not playing with different setups until I find "the right one". I just want the most realiable way of having the HDDs in a NAS LXC (or VM), I do not plan to change the configuration for years and want something very robust.

In plain Ubuntu I was just mounting the HDD´s with fstab and...thats all! They were ready to use. But don´t know how to do this with Proxmox, is my first hypervisor.

Thanks a lot in advance!
 
Hi,

you can also mount the HDD with fstab at the host.
Then make a mount point for the container.

Code:
pct set <vmid> mp<x> <mountpath>,mp=<path inside ct>
 

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!