Turning Proxmox Into a Pretty Good NAS

  Рет қаралды 220,338

apalrd's adventures

apalrd's adventures

Күн бұрын

Continuing the series where apalrd teaches proxmox skills through meaningful applications, today we are setting up a proper fileserver on our Proxmox system using Linux Containers. I've chosen to use a lightweight Linux Container (LXC) for this, so we can share the host's ZFS filesystem without adding the overhead of another virtual NAS operating system.
To manage shares and users using a web UI, I'm installing Cockpit, as well as some additional modules from 45Drives to deal with Samba. This should provide a pretty easy to use storage interface, keep all of our storage contained in the host Proxmox system without adding another layer of filesystem or a virtual machine, and run well on lower end hardware such as the Terramaster unit I'm using.
Link to the blog post:
www.apalrd.net/posts/2023/ult...
Links to Cockpit modules used in this video:
45Drives Cockpit File Sharing - github.com/45Drives/cockpit-f...
45Drives Cockpit Navigator - github.com/45Drives/cockpit-n...
45Drives Cockpit Identities - github.com/45Drives/cockpit-i...
This video is part of the Ultimate Home Server Megaproject, start from the beginning here:
• Ultimate (Proxmox) Hom...
Buy the Terramaster F2-223 like I used in this project: amzn.to/3CgJwg4
You should also consider the quad-core versions if you want to do more virtualization, so you'd want a model with the -423 suffix (F2-423, F4-423, U4-423).
My Discord Server, where you can chat with me or suggest topics if you'd like:
/ discord
If you find my content useful and would like to support me, feel free to here:
ko-fi.com/apalrd
Timestamps:
00:00 - Introduction
01:01 - Install the Container
07:39 - Install Cockpit
09:33 - Install File Sharing Modules
11:47 - Container Mount Points
13:11 - User Management
14:59 - Samba Shares
17:52 - Conclusion
Some links to products may be affiliate links, which may earn a commission for me.
#proxmox #linux #storage

Пікірлер: 544
@apalrdsadventures
@apalrdsadventures 11 ай бұрын
A few updates since Debian 12 (Bookworm) released: -You don't need to add the backports repo, Bookworm includes the more updated packages -You don't need to specify the backuports repo in apt install cockpit -Make sure your group is the owner of your data directories and you have permissions to read/write by group (default is by user).
@chrisrgutierrez
@chrisrgutierrez 10 ай бұрын
How do you make the group the owner of the data directories? I tried to do this but it wont give me the option to choose the group that I made. The error message I get is: "changing group of '/mnt/data/': Operation not permitted"
@BeansEnjoyer911
@BeansEnjoyer911 10 ай бұрын
did you figure this out? im pretty new to this stuff @@chrisrgutierrez
@joelslaw
@joelslaw 10 ай бұрын
@@chrisrgutierrez I think what he means here is set the group ownership of the directory to the group you created. You can leave the user ownership as 'root' or whatever user it already is. But then make sure the group has full read, write, execute permissions. So if you run ls -la you should see "drwxrwxr-x" instead of "drwxr-xr-x" which is the default. In other words: 1. use chmod to change the directory permissions to 775, then 2. use chgrp to change the group ownership to whatever group you created. That's what fixed it for me. Hope it helps!
@IsmaelLa
@IsmaelLa 10 ай бұрын
@@chrisrgutierrez seems your currently used user is not root (as in the tutorial) or not part of the of sudoers?
@Vampier
@Vampier 9 ай бұрын
@@chrisrgutierrez the version I am using (logged in as root) I see edit permissions under the path (mount point)
@smillsom
@smillsom 6 ай бұрын
Update for ProxMox 8.1.x and Debian 12 - when you create your Linux Container (LCX) make sure you enable "Nesting" in the options screen before starting it. Removing the "Unprivileged" flag no longer allows "nesting" by default, and you'll run into all sorts of issues. Hope this helps!
@PoeLemic
@PoeLemic Жыл бұрын
WOw, this was an incredible tutorial. Really neat to see what you are going to do with that small fileserver. Never thought about wiping the NAS and putting Proxmox on it. Brilliant !!!
@IsmaelLa
@IsmaelLa Жыл бұрын
I've been literally twice to this channel from a seach (different searches). Have not been disappointed in both occasions. Got my sub man. Great work and direct with great extra comments between steps.
@KenPryor
@KenPryor Жыл бұрын
Excellent video! I always appreciate the great Proxmox content you put out. Also, I hadn't heard of Cockpit before so I appreciate learning about that as well. I'll definitely be using it from now on.
@mdbk2770
@mdbk2770 6 ай бұрын
I’ve subscribed your channel because of this video alone. It is exactly what i was looking for! Thanks bro!
@MatthewEvans-cs7dv
@MatthewEvans-cs7dv 8 күн бұрын
cool mate. Your best feature is your ability to describe what you are doing and why you are doing it. appreciated.
@schweinekillerlp2245
@schweinekillerlp2245 Жыл бұрын
That's actually a really pretty and creative way to do that stuff! Thank you for that inspiration!
@KevinRussellT
@KevinRussellT Жыл бұрын
Thanks for the great video! Hopefully this will satisfy my needs for a file share without having to run a nested virtual server or separate hardware server!
@jacobmar2797
@jacobmar2797 6 ай бұрын
This is bad-ass. And your delivery is not annoying at all. Straight to the point, no bs. I just followed this video to setup samba on a Dell T320 I'm giving to a friend who wants to learn linux, proxmox, and zfs at the tender age of 75. Subscribed and thank you!
@jacobmar2797
@jacobmar2797 6 ай бұрын
Also, I appreciate how you don't have a long music/special effects intro. No one cares about that stuff. Also... 91MB of RAM for a NAS container. How cool is that??
10 ай бұрын
That is exactly what I was looking for, the perfect alternative to TrueNAS and OMV for sharing. Thanks for your videos.
@leszy_lab
@leszy_lab Жыл бұрын
This is what I was looking for great tutorial thx 👍
@ShinichiroKururugi
@ShinichiroKururugi Жыл бұрын
This is an excellent tutorial! I have been looking into building a simple file server for my home network!
@FunkMasterF
@FunkMasterF Жыл бұрын
Great video. Thank you. I've been using Proxmox and TrueNAS for a while and just installed Cockpit today. Perfect.
@rafaelg8238
@rafaelg8238 Ай бұрын
nice. do you use truenas like vm into proxmox?
@FunkMasterF
@FunkMasterF Ай бұрын
@@rafaelg8238 TrueNAS as Proxmox storage
@rrr92462
@rrr92462 8 ай бұрын
Great vid! A lot of very useful information.
@fyz.
@fyz. Жыл бұрын
Thank you so much! just got done with the video and everything just works very well made and easy to understand tutorial
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Great to hear!
@theWSt
@theWSt 8 ай бұрын
That's super cool, thx for the video! 👍
@dhruvdnar
@dhruvdnar 25 күн бұрын
You have a gift for simple but deep explanation. Great work
@SethGreensteinSgCoder
@SethGreensteinSgCoder Жыл бұрын
Awesome video! I've been agonizing over the question of running truenas on bare metal or virtualizing through proxmox. This seems like a great solution!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad it was helpful!
@carlosmendez3363
@carlosmendez3363 2 ай бұрын
Thanks dude, got me where I needed to be. Simple and easy.
@dorinelbirau3059
@dorinelbirau3059 5 ай бұрын
Thank you for the tutorial, of all the options I tried, this one works best for me, much simpler to use compared to Turnkey and File Server, and the fact that I can import old configuration is amazing.
@VizionHUN
@VizionHUN 3 ай бұрын
thx for the clear, short tutorial. No ads, no fancy talk, just all what the home/hobby users need. I used Webmin and manual smb edit, but your video helped a lot too. My side notes: watch out for backup flag at PVE mount. If you create a shared backup HDD inc. PVE shares -like I did- the backup flag is a mistake... :)
@lfcbpro
@lfcbpro 9 ай бұрын
This is great, thanks a lot for your time.
@sumnemo4371
@sumnemo4371 Жыл бұрын
Excellent video, thanks!
@zimble
@zimble Жыл бұрын
Thank you so much for this!
@SeanTemple
@SeanTemple Жыл бұрын
Thanks for releasing this video! While I'm not Jellyfin'ing, the LXC tip to enable hardware Quick Sync Video worked wonders with Channels DRV on a Intel Xeon E3-1265L powered Proxmox setup. Also the Terramaster Intel NAS looks pretty sweet, keeping an eye on that one! Thanks again!
@Themadbread
@Themadbread 5 ай бұрын
Thanks! worked like a charm
@ivelinbanchev4337
@ivelinbanchev4337 9 ай бұрын
Aweome work! Would love to see the following configuration in your future videos: - 2 disk NAS - 1st main SSD fast - 2nd the one for backing up the first (e.g. once a day) or raid (but honestly raid isn't worth it with limited drives, at least imo) - Additionally, a way to backup everything related to Proxmox (incl. Proxmox host & VM/C) on the NAS, so in case that main disk fails, you'll have a way to restore your setup.
@qazwsx000xswzaq
@qazwsx000xswzaq Жыл бұрын
Thanks for bringing up the Cockpit project. It will be a good addition to my Proxmox-NAS hybrid which I have been admining via CLI👍
@apalrdsadventures
@apalrdsadventures Жыл бұрын
It's a pretty useful project, and the GUI is low-resource and looks good
@marcosoliveira8731
@marcosoliveira8731 Жыл бұрын
Great content man!
@RayDavies123
@RayDavies123 Жыл бұрын
I have been binge watching your videos and thinks to you I have reinstalled my proxmox servers a few times now to get it just right an of course to learn. My head still hurts after watching your Nebula video. In my case I had a 16GB drive I wanted to connect a proxmox server and then use your cockpit method to share the contents to the internal network. To do that I used lsblk to identify the NTFS partition and then created a mount point on the proxmox server in /mnt/pve and mounted the disk. After a bit of digging I found the command to share a mount point to an LXC and it worked! Here is what you need: pct set 103 -mp0 mp=/host/dir,/container/mount/point. Just remember to edit fstab afterwards. Thanks for your great tutorials!
@chromerims
@chromerims Жыл бұрын
Thank you 👍 Nice tutorial.
@dadrad
@dadrad Жыл бұрын
I've been tearing down my homelab vSAN in favor of Proxmox. I had been using a VM as a file server was thinking about simplifying and deploying a samba container. I hadn't even considered Cockpit. Thanks for the great content!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad I could help!
@GutsyGibbon
@GutsyGibbon 3 ай бұрын
this is exactly what I was looking for. I am going to try it out.
@user-gw9el1ew2f
@user-gw9el1ew2f Жыл бұрын
great video dude! thanks
@gsahookah599
@gsahookah599 Жыл бұрын
This is perfect for my needs, thanks for making and sharing this information mate! Now I'm motivated to build a small backup server, to make weekly backups of the proxmox 'nas' files for long-term protection. Cheers!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad you liked it!
@dergrauemann
@dergrauemann Жыл бұрын
Thanks for this! Always nice to watch, very understandable and comprehensible.
@denalimike8159
@denalimike8159 Ай бұрын
one of the best i have found on the interwebs Thank you!
@mauriciocanalmusical5632
@mauriciocanalmusical5632 8 ай бұрын
Amazing brother, thank you.
@DavidKhachatryan-cd9sq
@DavidKhachatryan-cd9sq Жыл бұрын
Thank you for this simple walkthrough. been looking for a simple solution to integrate my NAS into proxmox.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad you like it!
@davecl35
@davecl35 2 ай бұрын
Fantastic, easy to follow even for a linux & proxmox newbie like me, thanks. Even managed to connect to it with music assistant in Home Assistant
@hardeep1singh
@hardeep1singh Жыл бұрын
Thank you for the tutorial. I was able to set up my Network Share successfully by following this guide.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad it helped
@m3ntalify
@m3ntalify 3 ай бұрын
Hey, this was pretty good. Fast and fluid w/o bunches of cuts. Nice + thanks!
@craigleemehan
@craigleemehan Жыл бұрын
Thanks, this is just what I was looking for.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Enjoy!
@reasonsreasonably
@reasonsreasonably Жыл бұрын
You are a god send. This is now my favorite Proxmox guru channel. Not sure exactly why, but this was a pleasure following along.
@themarksmith
@themarksmith 7 ай бұрын
You sir, are a super star!
@valanbrown
@valanbrown Жыл бұрын
perfect amount of explanations, not to little, not too much
@chadmarkley
@chadmarkley Жыл бұрын
Exactly the tinkering distraction I was looking for so I don't need to deal with the pile of real work I need to be doing. Great instructions and thank you for giving me something to do today other than work! lol
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad it was helpful!
@raddude1743
@raddude1743 6 ай бұрын
My man. I have been struggling with getting TrueNas or OMV running on proxmox, but setting up the mount points always killed me. Your video showed me I don't even need either of those to be functional. Thank you!
@apalrdsadventures
@apalrdsadventures 6 ай бұрын
Glad it's helpful!
@djcmike
@djcmike 2 ай бұрын
Nice work :) Had to add a bit of custom samba conf to get time machine working on the SMB share, but it works :D
@dartfrogdk
@dartfrogdk 11 ай бұрын
Very nice tutorial well explained
@apalrdsadventures
@apalrdsadventures 11 ай бұрын
Glad you like it!
@SnordCranston23
@SnordCranston23 Жыл бұрын
Great video! It's the little explanations that I really enjoy. Like lxc and kernal relationship and that it's a quota rather a dedicated amount of resource.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Fun fact, linux cgroups (the method for enforcing quotas) can also be used to limit the CPU/RAM of individual user accounts, it's super handy
@tcass
@tcass Жыл бұрын
Oh man, apalrd. I'm doing this very project as we speak. Impeccable timing!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Hopefully it works well for you then
@alfarahat
@alfarahat Жыл бұрын
Perfect as usual
@frostfach7643
@frostfach7643 Жыл бұрын
great explanation
@Catrapazau
@Catrapazau Жыл бұрын
I've to agree. Simple fast and convenient. I'm rocking tow 2nd hand HP Micro Servers, 40 and 50 models. First time seeing this tut I has really septic about it's practical use, but after consecutive Trunas Core VM and containers unexplainable failures (in my Proxmox environment), I decided to opt take in consider that my hardware and my resources would better function with a similar scenario. Sharing is caring, an thank you for sharing your thoughts whit us. Cheers from Portugal ;)
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Greetings from Michigan :) Glad you enjoyed it
@michelbliek_2148
@michelbliek_2148 Жыл бұрын
Thx, ecellent video!!
@louissenderler6866
@louissenderler6866 Жыл бұрын
Thanks for this! Since 2 years ago when I started working with PVE, I found LXC is good and light OS container. It likes a Swiss Army Knife .).
@Dom_Mason
@Dom_Mason Жыл бұрын
Cool nice video. I use Proxmox running quite a few debian vm's. Nice addition. Sub'd and liked!
@Dugma1337
@Dugma1337 Жыл бұрын
thanks for the tutorial, helped me out a lot! As a side note, at first i was read only limited on the windows side, turns out i had to go back to file sharing in cockpit and edit the permissions of my shares path to use the newly created user and group to either be the owner or add write permissions to the newly created group.
@michaelrimmer7558
@michaelrimmer7558 Жыл бұрын
Thank you! You just solved my problem!
@gdiogenes
@gdiogenes 9 ай бұрын
Thanks you so much for this. This secret lies under File Sharing / [YourShare] / Path / Edit Permissions (faded colour) so it was not something obvious to find.
@AVC1602
@AVC1602 3 ай бұрын
Thank you so much for this! My share only had permissions for root until I made this change.
@arjun_mehta
@arjun_mehta 7 ай бұрын
Super helpful tutorial!! You may already have a follow on video or article about this, but I think it's important to create an admin account as part of this setup. One that is not root so that you can remove root from being able to login via GUI. In order to do this you'd want to create a new admin user and then add them to the sudo group. Then when that user signs into cockpit they can click this "Limited access/Admin access" toggle at the top of the page.
@morbias7653
@morbias7653 Жыл бұрын
Looks great....had to adjust permissions to get it to work :)
@goodcitizen4587
@goodcitizen4587 11 ай бұрын
Bad ass info. I'm really digging all the new stuff I'm learning. Thanks!
@idontatalya242
@idontatalya242 Жыл бұрын
I did something similar directly on one of my Proxmox nodes to share an attached (not ZFS) disk for backups, but using WebMin instead of Cockpit for the SMB setup. My next project is to convert an old desktop into a NAS, but I still wanted to stick with ProxMox, and give it a couple proper ZFS pools (SSD and rust, similar to yours), but I didn't want to do the SMB/NFS install on the bare metal hypervisor again, so I'll definitely be "borrowing" your LXC + Mount Point idea 👍👍
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad you like it!
@Aokimarcel
@Aokimarcel Жыл бұрын
Thanks for the guide! As a lot of people in the comments, I was also considering true as/unRAID in bare metal or on a próximos VM. This makes a lot of sense, will definitely try that out! Thanks
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Glad I could help!
@foobar9761
@foobar9761 Жыл бұрын
Very nice, i am getting inclined to switch my home server over to proxmox. I was thinking about this before, just because LXC. So much less overhead than a full VM. And docker is a mess after some time (TM). Really appreciate your focus on small home labs/server. Most stuff about this is "look at this (insert expensive hardware)", which is not what most home servers owners have access to.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
I do enjoy making lower end hardware work for me, spending more time getting the software right rather than throwing hardware at it.
@foobar9761
@foobar9761 Жыл бұрын
@@apalrdsadventures and truth be told - most home server users have old/repurposed hardware. I wish you much success!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Thanks!
@PSL1969
@PSL1969 Жыл бұрын
What a lunatic idea, I like it 😂
@david.godlewski
@david.godlewski 5 ай бұрын
Ah, great method! I've already built something up using an OpenMediaVault VM over Proxmox bc I wanted that GUI with solid user management/permissions, but I like the container/cockpit method a lot.
@joechristl1444
@joechristl1444 Жыл бұрын
This is great stuff. I'd like to know how you maintain ZFS, as I am a complete noob with that. Maybe a future video?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
I'm slowly getting there, I started with just the features that Proxmox exposes through the GUI, now there's a little bit of manual dataset creation, but zpool management is another thing
@Trains-With-Shane
@Trains-With-Shane Жыл бұрын
Something I had to do which differs, this may be just because of how I set my drive up in Proxmox, etc. But after I created the share, I had to go back and Edit Permissions. and I had to check write for Group to be able to actually create a directory, file, etc. from a remote system accessing a share, In this case both Windows 10 and Ubuntu... I think 22.04. cant remember, getting old, lol And if you have trouble with a FSTAB mount in Linux using cifs try using vers=2.0. I had been using 1.0 for some older shares on legacy systems and had just copy/paste to the new line for this share mount.
@geoemm
@geoemm 8 ай бұрын
Excellent stuff, I wanted to make a low power NAS and this looks really good. But one question, can it spin down the disk?
@daytrader66
@daytrader66 5 ай бұрын
So pleased to have found your channel. Is there an LXC container manger (like exists within Proxmox) for Cockpit or some other? I see it can do VMs and I'm already familiar with Virt-manager. I'd like to just run Debian with a gui desktop, kvm-qemu, LXC containers and Docker within one of those too but also be able to access and work at the machine itself. I see Incus is coming with Trixie. Not sure about LXD now that it's getting dropped after bookworm?
@maxdiamond55
@maxdiamond55 Жыл бұрын
Thanks for a really comprehensive tutorial. Can't wait to implement this with Jellyfin
@apalrdsadventures
@apalrdsadventures Жыл бұрын
You're very welcome!
@massimopreda6367
@massimopreda6367 Жыл бұрын
Congratulations you are giving us some beautiful videos, so much so that I subscribed to your channel, I wanted to ask you, is there also a way to implement an FTP sharing thanks
@MikeDeVincentis
@MikeDeVincentis Жыл бұрын
"That just seems dumb." Is exactly the thought I had when thinking about virtualizing Truenas and passing through my 4 drives. Such an unnecessary layer of overhead and complexity. This video arrived at the right moment for me. Have been looking at different options for storage and think I'll give this a try. Whats the process for creating NFS shares through this?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
NFS is ... a lot more tricky than Samba, since it's normally managed via the kernel server. Since the container is in its own namespace, even a privilaged container can't control the kernel's nfs exports. You can disable all isolation of the container and then it will work, but this is strongly not recommended. The solution is to use nfs-ganesha (userspace NFS server), but Cockpit doesn't have a GUI module for that. TrueNAS also uses nfs-ganesha, incidentally.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
In general I use SMB over NFS in my own setups since Windows access is important. But, fundamentally, NFS and SMB are quite different protocols in how they deal with user permissions and access, and SMB is easier to administer due to server-side account permissions. As to performance, SMB can achieve roughly the same performance as NFS on large file IO and is dramatically slower on small file IO. For videos, SMB is perfectly adequate.
@simonong5839
@simonong5839 Жыл бұрын
i did truenas with EXSi. Truenas don't play well when it is a VM. in fact it corrupt data quite often.
@stephendetomasi1701
@stephendetomasi1701 Жыл бұрын
Except it's not dumb lol. Backing up and managing file shares, permissions etc from Proxmox is a headache. A separate VM that you can snapshot and pass through a HBA or controller is a much better idea.
@SonerAlbayrak
@SonerAlbayrak 11 ай бұрын
Also, not everyone may wanna buy an enterprise grade ssd to deal with write amplification of zfs. So you use proxmox with lvm in a consumer ssd (speed benefit without huge write amplification of zfs) and then have a virtual truenas combining multiple hdds in a zfs pool (say in a raid 10 array).
@undergroundnews_dk
@undergroundnews_dk Жыл бұрын
Great video again nice work. Suggestion OK how would you add nextcloud to this nas setup with user permissions etc. ?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Nextcloud can install in an LXC container with the normal Debian install process, you can use a larger root mount point in the container instead of additional mount points
@bluesquadron593
@bluesquadron593 Жыл бұрын
Cool way. There is also a file server template in proxmox lxc templates. But with the ACL you go a step beyond
@apalrdsadventures
@apalrdsadventures Жыл бұрын
I did try the turnkey template first, but liked this solution better as something I'd run myself, with enough features in a good UI.
@bluesquadron593
@bluesquadron593 Жыл бұрын
@@apalrdsadventures you are right about that
@george_gav24
@george_gav24 9 ай бұрын
Excellent video, just building a backup PBS server and I was looking for ideas for interface, since I am not a big TrueNas fan this seems perfect, I actually was thinking of a similar setup using an ubuntu server container with samba server and nfs. I see some comments about the NFS below about being triciker but I will probably use regular NFS server in the command line. Thanks bud
@apalrdsadventures
@apalrdsadventures 9 ай бұрын
The tricky thing is that NFS requires permissions that an unprivilaged container doesn't get, if you use a privilaged container (and you cannot switch later, you need to recreate the container), it shouldn't be a problem.
@sylvaintousignant5050
@sylvaintousignant5050 8 ай бұрын
I have a weird issue. Cockpit keeps using up about 20% of my available CPU power after following this guide. Cockpit is obviously trying to do something I just have no idea what. I've taken to manually turning cockpit on/off using systemctl whenever I need to log in but I'm hoping to find a solution to this problem... Apalrd, this is a great guide and series. Thanks for putting it together it has helped me quite a bit!
@kristianwind9216
@kristianwind9216 Жыл бұрын
Thanks a million for this. My Cockpit NAS is now running smoothly... But do you know a way to have Proxmox spin down the disks to save power? Thanks...
@martingal4162
@martingal4162 4 ай бұрын
Thank you Apalrd's adventure for this video, is there any chance to add deduplication for this kind of NAS setup?
@apalrdsadventures
@apalrdsadventures 4 ай бұрын
You can setup dedup on the zfs dataset by using `zfs set dedup=on pool/dataset`. If you are using Proxmox-managed mount points for the NAS, they will be named something like `rpool/data/subvol-508-disk-1` where 508 is the ID, disk 0 is the root fs, and the rest are sequentially from when they were created. It won't go back and deduplicate things after they are written, it does this when data is written. So existing data will remain in place until it's modified.
@hasrt1206
@hasrt1206 Жыл бұрын
I have followed your tutorial a while back, thank you for the content. I have a question. Recently I cannot access my web gui for my lxc. I have the correct Ip address and everything. Do you know why would that happen?
@DalTronPrinting
@DalTronPrinting 5 ай бұрын
I have an issue with logging in. I can log into the proxmox lxc debian console, but I can't log into the web ui. I can still access all the shares I setup through cockpit though.
@user-jd6zl8ts8v
@user-jd6zl8ts8v 6 ай бұрын
This is a great video and allowed me to setup storage in promox. To backup the data stored on the samba shared what do you use?
@apalrdsadventures
@apalrdsadventures 6 ай бұрын
I use Proxmox Backup Server. I have a setup guide on my website here: www.apalrd.net/posts/2023/ultimate_migrate/ If you aren’t already using PBS it’s not the simplest setup for small scale uses but it scales up well.
@dragofand
@dragofand 11 ай бұрын
I keep searching for things and coming to this channel. I should honestly just subscribe at this point lol, keep up the good work man.
@apalrdsadventures
@apalrdsadventures 11 ай бұрын
Thanks!
@mds3436
@mds3436 Жыл бұрын
I think it would be interesting to do similar walkthrough for NFS (next to your SMB setup) and go into details on how it should be used as shared storage for other Proxmox nodes and VMs running on external nodes (should we use VLANS to segregate node and VM traffic? Or is NFS IP based security enough? NFS version? root squash? etc)...and I was also curious about the performance of this mounted NAS/NFS running under Proxmox LXC/VM vs. Disk Passthrough to VM vs. the Native NAS/NFS performance.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
NFS is a bit of a different beast to manage, since usually you'd normally use the kernel server. nfs-ganesha is a userspace nfs server which would work in a container. For performance, Samba runs in userspace and the host ZFS pool is bind mounted into the container, so performance in an LXC will be the same as native until it hits a resource limit (either CPU or RAM). For NFS, performance using nfs-ganesha should be worse than the kernel server, however, TrueNAS uses nfs-ganesha anyway.
@mds3436
@mds3436 Жыл бұрын
@@apalrdsadventures interesting stuff. I still think it would be a great video idea to complete the functionality of your awesome custom NAS.
@LampJustin
@LampJustin Жыл бұрын
@@apalrdsadventures ha, didn't know TrueNas always used Ganesha. I always wondered why performance was so poor...
@drumguy1384
@drumguy1384 Жыл бұрын
@@apalrdsadventures Haha, yeah, I ran into that today. To do NFS, you have to make it a privileged container and enable NFS in the features ... that said, I am also running into multiple failures when trying to get it running. When doing it in an unprivileged container I get dependency errors starting the nfs-server. When I do it in a privileged container I get errors starting the cockpit service. Any thoughts?
@DrDingus
@DrDingus Жыл бұрын
@@drumguy1384 Did you ever get it working with NFS?
@ZCTravels1
@ZCTravels1 7 ай бұрын
Question. @apalrdsadventures If I want to utilize 10gig read/write on this setup, how would I do that? I see that I am stabilizing around 100 to 200mb/s?
@Trains-With-Shane
@Trains-With-Shane Жыл бұрын
I've made some additional discoveries. So. I am not running IPV6 on my home network at the moment. And as such it is taking the DHCP request ~5 minutes or so for that to timeout before the container will finish starting up. I was able to disable this in the container itself. in the container edit /etc/sysctl.conf and add a line that says "net.ipv6.conf.all.disable_ipv6=1" without quotes and then reboot the container. You can do the same for the entire PVE system by doing the same but in the proxmox base system. The way I did it just modified the individual container.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Did you set the IPv6 address to DHCP in Proxmox? Setting it to static and leaving it empty will cause it to not assign an IPv6 address at all (other than the link local address).
@Trains-With-Shane
@Trains-With-Shane Жыл бұрын
@@apalrdsadventures I can't recall if I tried that or not. Might be worth trying to spin up another one and see if it lets me select static and leave the boxes empty. Some software requires you to populate it. Not sure about PVE
@habitatstech
@habitatstech Жыл бұрын
@@Trains-With-Shane Just select SLAAC as you IPv6 method and you are good to go. SLAAC is in effect an automatically assigned static IP.
@kirksteinklauber260
@kirksteinklauber260 Жыл бұрын
Excellent video!! There is also an option with Turnkey that has Samba pre-installed and pre-configured. Have you tried that? and what are the disadvantages compared with the Cockpit approach?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
I tried Turnkey fileserver first, found that the GUI wasn't as good as Cockpit, the Webmin-based manager has a ton of options to manage services on the system that shouldn't be managed in an appliance (like Apache settings, or hostname / network which are managed by Proxmox), and it doesn't natively support IPv6. Cockpit is also lighter weight than running Apache and runs itself as the logged in user.
@undergroundnews_dk
@undergroundnews_dk Жыл бұрын
@@apalrdsadventures and your solution can even work on pimox and a small raspberry.
@dhruvdnar
@dhruvdnar 25 күн бұрын
Thanks
@apalrdsadventures
@apalrdsadventures 25 күн бұрын
Thanks!
@alexandern9266
@alexandern9266 Жыл бұрын
What a fantastic tutorial! Thaks a lot! By the way what do you think should be a good choice for samba share's permissions if I plan to use the same host path in several containers (samba container and torrent container) and to map host's users to the container users? Will Windows ACL still work in that case or just a simple Unix permissions will be better?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
I'm working on a Jellyfin video, although I'm ignoring permissions (chmod 777 the shared path) since that video is already long enough and I'm covering transcoding in the container. Windows ACLs will still set/read unix permissions, but Samba will also keep its own metadata on windows/nfsv4 ACLs. The 'Windows with mac/linux compatibility' option forces Samba to translate Windows ACLs to POSIX ACLs. Neither option means it uses unix ocal permissions and reads but does not edit POSIX ACLs. I'd probably use all unix permissions and set gid mappings in LXC for each container to a common non-root group on the host. You probably also want a 'create mask' and 'directory mask' to 774 instead of the default 744, so the group dictates instead of user. also, 'force group'. See www.samba.org/samba/docs/current/man-html/smb.conf.5.html for the details on these options, they go in the custom options field for the share in Cockpit.
@alexandern9266
@alexandern9266 Жыл бұрын
@@apalrdsadventures Thanks! Will deep dive into samba config you have mentioned.
@guy2545
@guy2545 Жыл бұрын
Huge thanks for putting all these together. It was a major help in finally figuring out my NAS LXC (Debian 11) and why I could share the zpool. Reading through the comments, when using the GUI in proxmox to set a mount point to a Proxmox hosted ZFS pool, does it create a subvolume on the ZFS pool or pass the whole file system in? I was confused because the LXC containers were using subvolumes on container pool.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Proxmox LXC containers are zfs subvolumes, and creating new mountpoints *from the gui* creates additional zfs subvolumes (potentially with different settings / quotas / ...). Manually-passed mountpoints do not create subvolumes. In the end though, an LXC container is sharing the same kernel as the host, so all of the storage drivers are running in the kernel and mount points are passed into the LXC namespace.
@guy2545
@guy2545 Жыл бұрын
@@apalrdsadventures Ah, appreciate the info! It did feel strange passing a cap of ram/cpu through to the NAS LXC. But I do like the implementation of caps rather than straight VM allocation. Enjoying the videos!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
LXC uses Linux cgroups for resource limitations, fun fact you can also use cgroups to apply the same resource limitations to individual processes, user accounts, etc. If you use a ZFS system, the subvolumes are native zfs datasets with a quota as well, so they are thin provisioned and you can enable dedup manually on the pool if you want (which might be handy if you have a bunch of containers with the same template installed).
@AssydRayne
@AssydRayne Жыл бұрын
Hi there! Thank you for the video. It was finally, after many weeks of researching what nas to make, shown that an easy proxmox container can be a nas. I have run into one problem at the very end. Even after following your instructions directly, I am able to login to the networked fileserver on my windows machine with the identity set in cockpit. Yet, I receive "Destination Folder Access Denied" error, with the options to "Try Again" or "Cancel". I can't seem to figure out where I went wrong that my identity isnt allowing me to create the test file as you did in this video?! Thanks for your help!
@abdillaahiahmed4972
@abdillaahiahmed4972 Жыл бұрын
Great one 👌, please make a video for odk Central installation on ubuntu local machine, thanks 🙏.
@keven-matthewlarrivee-font2678
@keven-matthewlarrivee-font2678 7 ай бұрын
Hey there! Been wanting to try out Proxmox for over 4 years now and finally gave it a go. Thanks for the videos! For some reason was unable to add the volumes as hotplug (permissed denied). Had to reboot the container. Noob here. I have a question with this setup. If I for some reason delete the container and decide to move on to something else to share my files. What happens to everything I've put on the subvolume? (in your case that would be your rust and SSD shares)
@apalrdsadventures
@apalrdsadventures 7 ай бұрын
If you delete the container, Proxmox will delete all of the associated mount points and their data (unless you use bind mount points which you create manually from the command line).
@JunglistPrefection
@JunglistPrefection Жыл бұрын
Can I dual boot with TrueNas scale on baremetal and Proxmox on an separate ssd?
@gjkrisa
@gjkrisa Жыл бұрын
Nice! proxmox ui seems like the best. without an add on card I don’t have the ability to pass thru my hdd to truenas vm. now to set up hand break and makemkv containers and have them have access to those storages.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
You really don't need an add on card, you can pass storage from Proxmox into containers with a bind mount.
@clearlyconfused9194
@clearlyconfused9194 10 ай бұрын
@@apalrdsadventures you do for Truenas to give direct disc access, but your method that I'm trying now will omit truenas. Just wondering if I'll miss any better zfs perks of truenas?
@Subbeh2
@Subbeh2 10 ай бұрын
Exactly what I needed! As a side note, where would you recommend the Proxmox Backup Server to be installed? Directly on the host, LXC, or completely separate hardware? (Or even just run Cockpit directly on PBS)
@apalrdsadventures
@apalrdsadventures 10 ай бұрын
For backups - separate hardware is ideal, only because it separates the backup drives from the working data drives. But PBS in LXC is also not a bad way to go. Cockpit on PBS on separate hardware from PVE (so one machine does both backups and data) is perfectly functional but you again risk data loss by keeping the primary and backup dataset together, but if that's not a concern for this data then running Cockpit on PBS is not a bad option.
@Subbeh2
@Subbeh2 10 ай бұрын
I'll be using PBS mostly for my other PVE nodes, so running it on the same (storage) server with PVE and Cockpit sounds manageable. I'll post back if I have some findings or ended up nuking my entire homelab!
@berndschaub5905
@berndschaub5905 Жыл бұрын
First of all, thank you for this very informative video. Is it possible to also provide S3 on the cockpit interface or on the server? S3 is supported by backup solutions and alternatively, Ceph can provide extremely large storage areas very cost-effectively instead of ZFS.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Cockpit doesn't have a module for minio or Ceph. Proxmox does have a module for Ceph, but only the storage backend and not RGW.
@orko2027
@orko2027 2 ай бұрын
- create an new VM in Proxmox - allows easy pass-through of USB drives - install Debian 12, maybe with LUKS encryption - sudo apt install nfs-kernel-server ufw ufw-extras - sudo ufw enable - sudo ufw allow nfs - sudo nano /etc/exports - edit to your needs, using the infos provided in the opened file as a template. - mount the share from anywhere you want and use it as a network drive. Only Windows needs some additional software to mount the share, but there are good open source solutions.
Raspberry Pi THIN CLIENT for Proxmox VMs
19:48
apalrd's adventures
Рет қаралды 97 М.
Running a NAS on Proxmox, Different Methods and What to Know
18:47
ElectronicsWizardry
Рет қаралды 25 М.
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 58 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 21 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 63 МЛН
What's ACTUALLY running in my Homelab?
19:21
Hardware Haven
Рет қаралды 99 М.
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 1,7 МЛН
MikroTik CHR on Proxmox - How-To Guide
14:14
Admiral Platform (RemoteWinBox)
Рет қаралды 4 М.
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 138 М.
Best operating system for Servers in 2024
11:41
VirtualizationHowto
Рет қаралды 32 М.
Proxmox Automation with Proxmox Helper Scripts!
24:15
Techno Tim
Рет қаралды 68 М.
Migrating my PERSONAL SERVER from TrueNAS to Proxmox + Cockpit
33:31
apalrd's adventures
Рет қаралды 34 М.
A SERIOUS Home Server That's Affordable
18:59
Hardware Haven
Рет қаралды 91 М.
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 14 МЛН
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23