How to Install TrueNAS in Proxmox with HDD Passthrough!
Vložit
- čas přidán 15. 06. 2024
- Installing the BEST free and open source NAS solution in the very best virtualization management solution?? Count me in!
Resources:
NAS HDDS: amzn.to/3YRYimt
TrueNAS Download: www.truenas.com/download-true...
Proxmox Wiki: pve.proxmox.com/wiki/Physical...
Passthrough Guide: dannyda.com/2020/08/26/how-to...
00:00 - Proxmox and TrueNAS
02:00 - Download TrueNAS
02:40 - Creating Virtual Machine
04:24 - Drive Passthrough
09:00 - TrueNAS Install
👏SUPPORT TECHHUT
CZcams MEMBER: bit.ly/members-techhut
TECHHUT.TV: bit.ly/techhut-join
DONATE PAYPAL: bit.ly/paypal-techhut
$100 LINODE CREDIT: bit.ly/linode-techhut
$5 PBCWAY CREDIT: bit.ly/techhut-join
🏆FOLOW TECHHUT
JOIN DISCORD: bit.ly/discord-techhut
TWITTER: bit.ly/twitter-techhut
MASTODON: bit.ly/mastodon-techhut
INSTAGRAM: bit.ly/personal-insta
📷MY GEAR (PAID LINKS)
ASUS ROG M16: amzn.to/3t8Xgpo
DeepCool MATREXX 40: amzn.to/3q3K8Qn
AMD 3700x: amzn.to/31AKX9N
ASRock B550M: amzn.to/3qeymTv
G.Skill Trident Z Neo: amzn.to/3JRbeSF
Radeon RX 580: amzn.to/3n7Ax9g
Cannon M50: amzn.to/3xLfhuA
Lights: amzn.to/3OdeWHU - Věda a technologie
lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'
Might want to put that in the description.
NOTE: This whole Truenas on a VM/Container thing is not the way to do it. Use Samba or NFS with Proxmox or put truenas on bare metal. This is not the right way to do things. You have been warned.
massive time saver. thank you
Thanks so much bro
You are the best bro . For us newbies trying to learn its a must to write this things down separate from the video.
thank you sir
THANKS
Nicely done sir. I've watched several videos that work to do this and yours was clear and consise. You helped this noob get where he needed to go. Thank you!
One of the most usable videos I have seen in the last year. Thanks for helping out!
@8:40
"Im just gunna Nano in"
ProxMox Shell command is: "nano /etc/pve/qemu-server/101.conf" where 101.conf is the name of the actively running config.
Thanks, that part was so confusing.. idk why he needed to cut out the 2 seconds where he shows that command...
you just saved me man.. techhut dropped the ball here bigtime
Thanks. I finally settled on a Truenas Proxmox combo and this walkthrough was just what I needed.
Thanks for the great video and easy to follow!. I just did it on my side with TrueNAS scale and worked like a charm!
Love your page between you and Network Chuck , I am well rounded , love how you simplified this.
Thank you so much for these instructions. The very best in regards to setting up a raid disk on Proxmox TrueNas VM. Exactly what I needed to get going on our new server. It worked for me even while using TrueNas Scale. God bless you for your time in making this video!
This video helped me gain confidence that the article achieved what I wanted! You're a legend!
Thanks for the video my man. I was digging through the wiki, but figured I'd give the youtube search a shot!
Such a great and straight forward video. Thanks for the tutorial!
adding sirial numbers saved me from an issue i had been dealing with for weeks lol. Thanks!
Extremely useful and concise guide. Hugely appreciated.
Awesome video! Thanks for the step-by-step. Very easy to follow and best of all it worked.
ckear and straight forward explanation. Nicely done!
Dude thank you so much for this, your videos lands so perfect for timing as I plug away at tweaking my homelab. Just swapped my Perc6i with an HB200 in IT mode so I can finally start my server config but I’ve been bottled necked at getting the drives set up properly for TruNAS to see them. Im only about halfway through the video but skimming through I think your method will work. Love Low-Res but his way of doing it didn’t seem to work for me. And it’s weird because we have the same hardware he’s just doing it with SSDs where as I’m using SAS drives
Thanks a lot for your video. Your clear step-by-step explanations allowed me to add a passthroughhard drive to my TrueNAS VM , which is on Proxmox........ Thanks a Bunch !!! -dan
Thank you for this tutorial, it's clear and easy to follow for students
Great video was looking for something like this and boom u made this amazing video.
Super useful video dude - you are a super star, cheers!
Great straight forward video, Thank you!
This was a really cool video! I was going to do this myself, but since I was working with an 4790, doing VMs on such an old CPU didn't seem logical and I needed storage more, so I did bare metal install instead.
Thanks for sharing this. Super helpful for my nas build. Passing through a controller card as well but I want to use the ports on my motherboard which I can’t pass through via iommu 😊
Thank you. That was helpful as I was unable to locate my drive in Truenas.
Just what I needed to know. Thank you
This tutorial is perfect, thanks Bro.
Yeah I did this for a while. I just put TrueNas "scale" stright on the machine now. couldn't be happier! cool video though!
This video helped alot! Now my TrueNAS can read my hard drives :).
Great tutorial, I follow this and got the drives passed through to Truenas Scale OK
Only one word of warning, when using this method and trying to backup the VM with the Proxmox backup tools, the backup will include the Truanas VM AND all the data on the ZFS drives too. No problem if it's a small array, but I doubt many want a 7TB backup mixed in with their standard VM backup process!!!
If you pass through a PCIe controller, or the complete Motherboard SATA controller (not available as a boot drive in that case), then the Proxmox will only backup the VM and you can arrange the data backup as required.
Can't you just exclude the drives from the backup?
@@Jasper_S - No you can't. Once the drives are passed though, using that method, they are treated as a part of the VM.
Edit to add:
I stand corrected, I just checked and the drives can be excluded from the backup in the 'Hardware' Drive details. I have learned something new today.
awesome video sir, thank you!
Very helpful, thank you very much!
I did it, but it took me a day to realize its shortcomings. TrueNAS doesn't have full access to the disks, resulting in checksum errors, and it also prevents me from monitoring the disk temperatures. According to my research, the ideal solution is to acquire an HBA card and apply PCI passthrough to the virtual machine. I've ordered such a card and intend to experiment with this method.
This! and i'm a bit surprised he didn't cover it in the video as a disclaimer of sorts
Thank you. Fantastic video.
Great Video I have struggled with USB passthrough. I have it working but not like that I am going to go this route and see if it is better.
Thanks for sharing, I am a total newb and you helped me get a stellar result :)
Thanks for the video!
Thank you very much! It helped a lot =)
one thing that tripped me up momentarily - I had my TrueNAS VM running while I was passing through the disks. After passing through the disks in proxmox I did a "reboot" of the TrueNAS VM and it recognized the drives but not the serial numbers so when I tried to create a pool it told me the disks had non unique serial numbers (presumably because they were all null). I found a forum post that said you had to do a full power cycle, not a reboot. Sure enough, that solved it.
Interesting way of doing it, I just finished moving my truenas over to a new proxmox instance, I used a separate 4 Port Asmedia sata pciE setup and just setup iommu... 2 8TB drives and a 1TB cache drive... Mirrored on a Z620. This does help though, I could directly pull the drives instead of running them through a controller.
I know it’s hardware dependent, but I install proxmox on nvme drive and I just pass my SATA controller though and works the same but with fewer steps.
Doing it this way that gives me the idea that buying a cheap sata PCIe controller for truenas makes sense then.
@@PizzaGobbler2024 Check your iommu settings before going this path. If you are having a consumer grade motherboard this will add more complications.
I am planning to do this since my nas drives controller are in the same IOMMU group as the host/proxmox SSD, installing a separate HBA card im hoping would allow me to pass it through. @@PizzaGobbler2024
Thanks for the demo and info. So why did you install TrueNAS Core instead of TrueNAS Scale?
Instant sub
Nice video! What are you running at 1:04 (in Containarr: protainer ?)? What web gui is this? do you have a video for it? thanks!!
Thanks!!! Great Job!!!!
Thank you! The proxmox wiki docs leave a lot to be desired. (what is "592'? Why use -scsi2, etc.)
I watched this video awhile back and found it interesting. I came back to follow-up and thank you for making this video - I have 16 x 2.5" SATA SSDs connected via a 16i HBA. My plan was to pass through the entire HBA, but I could not get the VM to boot to TrueNAS - the HBA kept throwing Firmware Errors. So I painstakingly used this method and copied each ID + serial, and it worked immediately.
I was having this same issue when trying to passthrough the HBA of my server, it turns out its related to the IOMMU groups, it appears that when you pass through a device, the entire group is included and since in my case the drive used for Proxmox was part of the same group as the SATA controller for the NAS drives, then it would crash Proxmox. This solution seems to be the best next option, OR adding an separate controller and hope that it ends up in a different IOMMU group.
@@Streetzlegendmy 16i HBA ONLY holds the raw storage drives - the OS and assorted other drives I use for VMs or other storage run off the SAS -> SATA breakouts on the board. In either case I got it working so on to the next problem! =)
Great tutorial, had to figure this out 2 months ago lol
Do you plan on making a video on your Container setup?
Thank you!
how to set this up in a way that the 3 drives can be used by other vms as well?
Maybe setting up the raid in proxmox and passing throu the pool it self?
I made it! Works!
Really good guide, thanks!! But is there any specific reason of why you used TrueNas Core and not Scale?
For this installation I already have a dedicated VM for docker, but I'm definitely going with scale when I install it on hardware.
thank u great job 9 of 10 (next time the comands in the description)
Awesome video, thank you! As I am tight on budget, I am thinking of starting up with a couple of HDD units initially then add more as I go along. Can I utilize the same process tor adding more disks in the future or it is different?
ZFS doesn't take kindly to adding disks as you go (yet). Look into Unraid if that's a requirement or wait until that feature is released for ZFS
@@in03 thank you for your reply. Maybe I should opt for a Windows Server VM with RAID controller passthru.
Sweet! Are you able to use thst pool which you created in TrueNas back in the Proxmox utilizing RAID? I sume you could, but How about when TrueNas is not running? Are there any disadvatgaes with this sort of approach you can think of? Why not to rather have TrueNas as a main OS and use virtualization There?
Will truenas be able to read the temperature and smart values of the disks passed though?
Did you ever make a video about your Dashboard found at 0:30? Been looking through your videos but i just cant find it
Thanks!
How do you manage drive spindown in this case? Do you do that on proxmox or does it work in truenas?
Also I'm a bit annoyed that SMART values can't be read by truenas with scsi passthrough, but as I don't have a pci controller for my drives, for now I will have to check that in proxmox (where it works).
Actually I got it working by passing through the sata controller of my mainboard now, for anyone interested. TrueNAS now has full access to the drives. Spindown works, but only after you set the system dataset location on the boot drive of truenas, not the pool.
Did you manage to solve the S.M.A.R.T. problem?
@@Maisonier Hey, maybe you didn't see the comment I made: I fixed it by passing through the SATA controller completely. SMART and spindown work now! System is running without issues for about a year now.
Hello!For photos as google photos,what its best in proxmox?Nextcloud or Truenas?Thanks
Awesome video! I don't know where I went wrong, but only 3 out of 4 of my drives showed up as unassigned disks in Trunas. I can't figure out where I went wrong. All 4 of them are showing up as attached hardware under my Trunas VM. Any ideas?
thank you
can't see the lsblk cmd can you added it to description?
Maybe it's nice to have the commands somewhere in your description. I'm struggling with the long command at 5:55. It doesn't show me my drives but is just displaying a ">" . So I'm stuck at 5:55. Please advise
guess you didn't look in the description under the "Proxmox Wiki..." link. that page as ALL the commands as well as SEVERAL ways how to get the drive info...
thanks for the video. is it possible to make a raid1 of two hdds and pass "them" through?
I had to change the cpu type to kvm64, then it fired up. Thank you!
I read somewhere that the entire SATA controller has to be pass not drives or there will be some issues with the pool losing data. Is that true?
Can I dual boot with TrueNas scale on baremetal and Proxmox on an separate ssd?
You forgot to remove the disks from proxmox backups.
After you add passed the disks through, go back to vm > hardware > double click each disk that was added, select advance, uncheck back up.
Hello Tech, do you know a way to activate the turbo boost of the cpu inside truenas scale v22.12.2 and passing thru to a windows 10 vm machine ? I am running a epyc 7d12 on a supermicro h11 ssl-i,,, the cpu is running on the base clock of 1.1ghz full time, seems a little slow... even when i run cinebench or cpu-z
Is there a way to install the qemu-guest-agent in the TrueNAS Core VM?
So this is being passed through via the sata ports on the motherboard?
I have installed proxmox 8 on a home server (old gaming PC) got into proxmox and tried to use lshw but it says it cant find it and wont install it because it cant find the package. Any ideas on how to get that part to work?
You need to first change the repository for updates
First I must say exactly video and thank you for all your hard work, but I have a question I have truenas scale installed in proxmox and I would like to share my pool or smb share with all my media files to my Plex container in proxmox is this possible, If so could you point me in the right direction please..?
migrated my proxmox to a new sustem. had to reset my vm because i forgot to plug in one of the disks and thought the drive wasnt been seen as the same thing for some reason. mended it though!
Not sure why you’re doing the edit with the serial numbers?
Just
ls -l /dev/disk/by-id/
and copy each drive string into your qm set command
this is a great tutorial,
but, what is the benefit of virtualizing truenas as opposed to just installing truenas bare metal?
all my drives says unknown, how do i make it so i can see what drives is what in truenas, as i had both hdds and nvmes with the same amount of data i cant makeout what is what in truenas when making my pool
I dont know if I did it properly but I ended making a ZFS with the hdds and TrueNas saw it as one disk
Did you ever get the drive temp to show in truenas doing this
How can I add the drive serial numbers after the TrueNas VM is running?
WHy use truenas to create zfs when you can create zfs directly from proxmox? What's the advantage?
when i do the apt install for the lshw app, I keep getting an error of unable to locate the package
I got unable to locate package lshw. How fix?
If you aren’t using other SATA devices from that SATA controller you could also just passthrough that controller in the GUI.
Is mapping by virtio2 slower then mapping with scsi ?
By passing through the HDDs, would the data be wiped on them?"
You can run Truenas in Passthrough mode with virtualization, but it is recommended you run straight on hardware. ZFS can and has done some weird things with passthrough in my experience. It does work, but I would only recomend for testing and homelab use, but - good luck.
Thanks for the video.
Agreed, considering the unusual issues with ZFS in a virtual environment, even with pass-through, TrueNAS should be installed on bare-metal in anything beyond a limited homelab usage IMHO.
@@jaxxarmstrong what unusual issues? I had only one when I tried to backup the VM and proxmox accessed passthrough disks. Just unchecked backup of that disks and it's working fine for now.
in my experience, you face issues when drives are passed through like in this video. the recommended way (which is supported by iX) is to pass through a HBA - this way truenas has full byte level control over the disks
Can I dual boot with TrueNas scale on baremetal and Proxmox on an separate ssd inside the same system?
@@JunglistPrefection You can, what would your goal be though?
Do you gain any i/o speed doing this?
tnx
1:05 What software does this GUI beling to?
You legend
In this time and age, with all talk about AI, I wonder if there are any tools you can install to manage and maintain your home server. I haven't found any tool and not sure what to search for.
I have two questions about a system failure:
1. What if the system running Proxmox was corrupted (due to any reason) and your TrueNas VM was lost. How would you recover the data that was being stored on the TrueNAS virtual machine?
2. What if one of the drives fails. Do you just add a new drive into the proxmox virtual machine and then boot proxmox and recreate pooL?
1. anything that can read zfs can read the data off of your pool so its not linked to on specific truenas VM
2. yup
@TechHut do the drives have to be empty and formatted?
I have an old zfs pool in mirror mode and was wondering if I can just pass the disks through as is.
no, there is a force button you can check if it detects data on the drive
@techHut
Given that this is an educational video - it would be immensely USEFULL for you to have the commands in the video description.
I dont quite get why he did those "qm set" commands, It kind of looks like he could have just edited the conf file. Can someone elaborate? Thanks!
Thanks for this super introduction. I'm a bit late to finding it but it was very informative however it prompted a question.
You're passing through each individual drive to TrueNAS so I'm wondering if each sata port has its own iommu group or if they're all in 1 group?
If there in 1 iommu group then with my currently limited knowledge I'm trying to confirm you can't say pass 2 of the sata ports through to truenas and the 3rd sata port to vm xyz or am I missing something fundamental? Basically am i correct in assuming if there all in 1viommu group all 3 are locked to 1 vm if they are passed through?
Thank you,
Christopher
great tutorial ! I tried the passthrough via the wiki but couldnt get it to work again and again.
Your method worked flawlessly and I appreciate the extras's such as adding the serial and backing up the config.
but is the wrong method 😥
Honest question, why? I work in production environments and this doesn't make sense to me. Is this a home thing? what am I missing? As I understand one wont be able to migrate the vm to another box in the cluster, and if for some reason the prox host goes down so do any applications/servers that depend on the mapped file server.
Home thing. Learn the platform in an environment you already have set up.
@@TechHut Ah ok, makes total sense now, thank you for not ripping on me because I didnt understand.
oh man what happens if your drives are full i dont want to format