How to run TrueNAS on Proxmox?

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • DIY NAS Server - Installing TrueNAS on my Proxmox Server. How to install and set up TrueNAS as a virtual machine with a passthrough of hard drives or storage controllers. Complete Walkthrough. #Proxmox #TrueNAS #HomeLab
    Home Server PC build with Proxmox: • Home Server PC build w...
    Follow me:
    TWITTER: / christianlempa
    INSTAGRAM: / christianlempa
    DISCORD: / discord
    GITHUB: github.com/christianlempa
    PATREON: / christianlempa
    MY EQUIPMENT: kit.co/christianlempa
    Timestamps:
    00:00 - Introduction
    01:44 - What is TrueNAS Core?
    02:25 - What you should consider!
    05:25 - Create a VM in Proxmox
    08:25 - Passthrough Storage Controllers
    09:08 - Passthrough HDDs without a PCI Controller
    12:53 - Install TrueNAS Core
    14:02 - TrueNAS Basics
    16:17 - Run VMs in TrueNAS
    ________________
    All links with "*" are affiliate links.

ความคิดเห็น • 381

  • @rafysoto
    @rafysoto 2 ปีที่แล้ว +18

    I can't tell you how many times I've watched this video for the CLI way to add the hard drives. Thank yo so much.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Im glad it was helpful 😊

    • @mysticfiedsnow
      @mysticfiedsnow หลายเดือนก่อน

      @@christianlempa i watched over 200 times

  • @cybersecurehacks
    @cybersecurehacks 2 ปีที่แล้ว +18

    You are just a freaking beast man. I don't care how long it takes you to make videos or whatever.. You changed my life man and I am thankful. Best wishes from Pakistan :)

  • @NightHawkATL
    @NightHawkATL 2 ปีที่แล้ว +71

    For better Processor access and usage, set the CPU type to host and then it will be hardware rather than software access and processing. I have been running this for a few months and it is solid!

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +7

      Thanks! I'll look into it

    • @unsolaci
      @unsolaci ปีที่แล้ว

      Hi @NightHawkATL, have you perhaps had any further experience with this setup (TrueNAS VM on Proxmox bare metal)? I'm thinking of spinning one up myself. Have you faced any issues?

    • @volodymyrliashenko1024
      @volodymyrliashenko1024 ปีที่แล้ว +4

      @@unsolaci initially I had processor type Default (kvm64). It does not allow to use virtualization on TrueNas Scale. Once I switched to type host - I can use virtualiztion (for dockers)

    • @IamKanuKingsley
      @IamKanuKingsley 9 หลายเดือนก่อน

      Hi, thanks for the tutorial. However, my disks details don't show up with "ata-xxxxxx-xxxxx". It shows as "wwn-xxxxxxxxx", please, what should I do? Regards

    • @learninghub8734
      @learninghub8734 8 หลายเดือนก่อน

      @@IamKanuKingsley Check your connector type. What kind of drives do you have?

  • @JavierGarciaGon
    @JavierGarciaGon ปีที่แล้ว +1

    You're just an amazing mentor! Thanks for all the knowledge, much appreciated

  • @leonardocarvalho4944
    @leonardocarvalho4944 ปีที่แล้ว +5

    I just wanna say THANK YOU! This video is the only one that explains how to add a hard disk not the card itself. It can be not elegant but for me that don´t have a card and it´s hard to get one in affordable price (i live in Brazil) works perfect! Thank you! Thank you! Thank you! Thank you!

  • @Gamer4Eire
    @Gamer4Eire 11 หลายเดือนก่อน

    love the honesty and dedication man, keep going :)

  • @geoffpedder
    @geoffpedder 8 หลายเดือนก่อน +1

    super helpful, especially how to setup drives connected to the motherboard controller. Works fine for a simple media pool. THANKS!

  • @derekteetv
    @derekteetv 3 หลายเดือนก่อน

    Perfect. Got my TrueNAS VM up in 10 minutes. Computers are so cool these days. Also, for any of your videos, much respect for your brevity. All the details we need while respecting our time.

  • @brightonsikarskie8372
    @brightonsikarskie8372 ปีที่แล้ว +3

    I loved that you showed how to do it without pcie passthrough, every tutorial did pcie which wouldnt work for my setup! Thank you so much!!

  • @kevinnewton8945
    @kevinnewton8945 ปีที่แล้ว

    Thank you. I've been struggling to make this work for a couple of days. It works now.

  • @clicksystems8955
    @clicksystems8955 2 ปีที่แล้ว

    great content like always! keep up the good work

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Thank you! Of course, I'll do :)

  • @richay117
    @richay117 ปีที่แล้ว

    champion, excellent guide as always

  • @djcaru1
    @djcaru1 11 หลายเดือนก่อน

    Followed this. Worked like a charm.

  • @saidneder41
    @saidneder41 8 หลายเดือนก่อน

    Super cool video!

  • @grlucas
    @grlucas 2 ปีที่แล้ว

    Awesome! This video was very helpful. Much appreciated.

  • @DaveckKProduction
    @DaveckKProduction ปีที่แล้ว

    Thank you! This was a great video!

  • @jorrenb
    @jorrenb 8 หลายเดือนก่อน

    love your work!! thank you so much

  • @pobertubbesing
    @pobertubbesing ปีที่แล้ว +4

    Excellent video. Thanks for elaborating on how to set up the physical drives independently with the Truenas VM. Personally, I would instead use RaidZ and have TrueNas control the RAID System rather than having to use a controller to manage the hard drives. I'm sure you would sacrifice a little performance. However, everyone's use case can be different.

  • @user-vw4cg8cy4f
    @user-vw4cg8cy4f 2 ปีที่แล้ว +36

    This video is really really the top of the iceberg. A few crucial thing is missing from this like:
    - excluding the disks from pve, or else you will wonder why it periodically interrupts disk operations or wakes up sleeping disks
    - disabling the "use tablet for pointer" as that in itself causes 10+% CPU load on the host side for some reason
    - disabling "hardware" acceleration of virtIO as this is known to cause problems
    - doing smart configuration (like APM, idle times) on the host side as the guest won't have access to smart data and alerts
    - optionally moving the system dataset to the boot disk

    • @ozarcgaming
      @ozarcgaming 2 ปีที่แล้ว +8

      do you have any links to tutorials on the above suggestions?

    • @jackbolder5734
      @jackbolder5734 2 ปีที่แล้ว +1

      Thank you. I'll stick with bare metal then. Sounds like this dude just wants us to stick his finger up our po poos.

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว +4

      So true he don't even set the guest OS right.. XD
      What he should also really have done is change the cpu type to host so that the VM can use all the instructions the cpu has...

    • @JohnSmith-iu8cj
      @JohnSmith-iu8cj 8 หลายเดือนก่อน

      Excluding disks from pve, nobody mentioned that. I scratch my head for weeks why disk sleep isn’t working 😡

    • @JohnSmith-iu8cj
      @JohnSmith-iu8cj 8 หลายเดือนก่อน +1

      How do I exclude disks from pve?

  • @asbestinuS
    @asbestinuS 2 ปีที่แล้ว

    Finally a tutorial I actually understood. Dankeschön!

  • @agu8559
    @agu8559 2 ปีที่แล้ว

    great walk thru...thank you

  • @Glatze603
    @Glatze603 2 ปีที่แล้ว

    Thanks for the detailed video and I'm looking forward to videos about Sophos XG :-)

  • @gerry2345
    @gerry2345 11 หลายเดือนก่อน

    I like this vid. Good insight.

  • @sudhadotsudha
    @sudhadotsudha 2 ปีที่แล้ว +3

    fantastic, you solved my TRUE nas migration from old server to new Proxmox true nas vm

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Awesome! Glad I could help you

    • @sudhadotsudha
      @sudhadotsudha 2 ปีที่แล้ว

      @@christianlempa just migrated using your commands and video .. thanks..

    • @sudhadotsudha
      @sudhadotsudha 2 ปีที่แล้ว

      @@christianlempa I need your help , i could see 90% ram usage in Proxmox grap for TRUENAS Virtual machine. How to fix this. ( i have allocated 8GB) always 7.5GB using.. free .5

  • @raskjaerbo
    @raskjaerbo 6 หลายเดือนก่อน

    Amazing, thanks mate !

  • @robpizza6192
    @robpizza6192 2 ปีที่แล้ว

    Thank you!

  • @Mikesco3
    @Mikesco3 2 ปีที่แล้ว +45

    Not necessarily need ecc, it helps but not necessary.
    ZFS actually checksums the data as it goes into the drive, so it actually prevents data corruption that would have been an actual issue with traditional raid.
    The thing with ecc RAM is mostly for example the case of a database where you have large amount of data being transacted in flight and then ZFS is writing that back to the hard drive, but it actually checksums the data as it is writing it. For file storage it isn't that much of an issue.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +8

      Thanks for sharing your insights. It's hard to find good technical resources on this topics, some people say it's important, some people say it's not.
      As I said in my video it's hard to determine how likely something goes wrong, even if it might be just a very rare edgecase scenario, I decided to recommend ECC in my video, because it is useful for filesystem integrity, and it's not hurting anyone to use it.

    • @DigitEgal
      @DigitEgal 2 ปีที่แล้ว +5

      @@christianlempa Its hurting guys who dont use enterprise server :D
      But yes, great to know. So i should run my Databases on my HP380p instead using one of the nodes wich are built with desktop hardware.
      At 00:30 you tell there are no "bigger" downsides when running TrueNAS on Proxmox.
      There are a few guys who provide their proxmox/rancher nodes with disc-space by linking them with 10G connections to a single TrueNAS Server.
      Why do they mostly use a baremetal TrueNAS server? Is it because of performance reason or is there a problem to link the disc-space to another node?

    • @DigitEgal
      @DigitEgal 2 ปีที่แล้ว

      @@christianlempa Also i recommend to take a look at the new "TrueNAS SCALE". I would love to see a video from you!
      "TrueNAS SCALE is a new Open Source edition that brings scale-out storage and hyper-convergence to enthusiasts, businesses, and data centers alike.
      TrueNAS SCALE is in the Alpha development phase and can run on any TrueNAS system with higher than 10GbE support."

    • @marconwps
      @marconwps 2 ปีที่แล้ว +2

      @@DigitEgal TruenasCORE it's Unix when TrunasSCALE it's a Linux beta at the moment, who has tried can tell us the differences! Big thanks bye

    • @agenttank
      @agenttank 2 ปีที่แล้ว

      oh i used freenas on my HP microserver gen7for a while but decided to give Xigmanas a try... had it for 2 years but now went back to TrueNAS scale.. SO much better than this complicated and buggy hell of a NAS OS called xigmanas. never again.

  • @knowledgeispower17
    @knowledgeispower17 2 ปีที่แล้ว

    Thank you for this. :D

  • @GorkemYildirim
    @GorkemYildirim 2 ปีที่แล้ว

    Well explained.

  • @theitalian94
    @theitalian94 2 ปีที่แล้ว +4

    Thank you really much for showing how to connect or passthrough those hard disks! I've googled this before and people wrote, that this is impossible!!! SO WRONG.
    Your method works like a charme!
    Thank you thank you really much, you are really a kind guy!!! :)
    Greets TheItalian :)

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Thank you! Glad to hear that :D

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว

      It actually is impossible to really pass through the drives itself (if you don't count NVMe drives) as what he's doing is using the drive as a backing store for a virtual drive with the size of the physical drive. You don't get any of the benefits that would make sense for zfs / TrueNas like smart or temperature sensors.

    • @theitalian94
      @theitalian94 2 ปีที่แล้ว

      @@LampJustin is this fact? SMART won't work with this passing threw method? that would be a shame, I didn't had time yet to check if SMART Values are showing up or not ...

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว +1

      @@theitalian94 that's definitely the case. You either need to setup monitoring on the Proxmox host itself or get a SATA/SCSI controller and pass it to the VM.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      The truenas VM is unfortunately not able to see the smart values, but you can still check it on proxmox.

  • @demanuDJ
    @demanuDJ ปีที่แล้ว +2

    I'm currently using zfs pool on proxmox itself and a LXC container as a network storage but I think your way is much better

  • @americanmambi
    @americanmambi 20 วันที่ผ่านมา

    Bro, THANKS!!!

  • @vasquezmi
    @vasquezmi 2 ปีที่แล้ว

    This is excellent thank you for the in depth review. I was wondering on your options for a NAS on Proxmox how would that apply if I implemented a Proxmox cluster with HA? Knowing we can't mirror the serial # of hard drives do you know of options I could look into?

  • @deViant14
    @deViant14 2 ปีที่แล้ว +3

    I'm looking forward to Rockstor 4. Btrfs raid-1c3 is just so nice and to have native support and custom Docker support is quite nice.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +2

      I'm looking forward to TrueNAS Scale, this will be a great Proxmox replacement

    • @JLR8988
      @JLR8988 ปีที่แล้ว

      @@christianlempa I thought this myself, however the clustering of servers requires TrueCommand, which comes at a fee. Ultimately, i decided to stick with proxmox as migrating from the old hardware i used was simpler than trying to port VM's while running two seperate clusters. Ceph for block storage + 3 node cluster is a sweet spot for my needs atm.

  • @Grstearns
    @Grstearns ปีที่แล้ว +2

    One little thing (and I've been seeing this in a lot of similar tutorials), but "SCSI" is pronounced "Scuzzy". Probably not something that comes up a lot if you didn't work in enterprise storage in the 90s, so I'm not surprised that nobody else has mentioned it

  • @PoeLemic
    @PoeLemic 2 ปีที่แล้ว

    Very helpful. I so plan to virtualize some of my file storage. I'd like to have separate VM / machines for different storage purposes. So, glad that you overviewed how you did it.

  • @ahmednazmy9298
    @ahmednazmy9298 ปีที่แล้ว

    Thanks, You helped my a lot

    • @christianlempa
      @christianlempa  ปีที่แล้ว

      You’re welcome ☺️

    • @ahmednazmy9298
      @ahmednazmy9298 ปีที่แล้ว

      @@christianlempa On more question Christian, How could I do that in proxmox container?

  • @bertnijhof5413
    @bertnijhof5413 5 หลายเดือนก่อน +1

    Note that the disk serial number results for some nvme devices in ridiculous long serial numbers, so I prefer to use the UUID of disk or partition for the creation of the datapool. I always split my HDDs in 2 partitions, the first ~40% faster partition is for the VMs and the remainder for the other stuff. As a consequence the SSD I use for caching has four partition, 2x cache (L2ARC) and 2x log (ZIL).

  • @jimskyboy2
    @jimskyboy2 7 หลายเดือนก่อน

    I run truenas scale on a z620 with an asmedia pci chip. It's passthrough, and it works great with two drives mirrored... 10TB. Been running proxmox for about 4 years now

  • @vasquezmi
    @vasquezmi 2 ปีที่แล้ว

    Excellent video and instruction I appreciate your dedication to the community. I did have a question in regards to this process and Proxmox Clustering. What considerations need to be made there? Can this same process be done at the DataCenter level?

    • @davidkamaunu7887
      @davidkamaunu7887 ปีที่แล้ว

      I think that Christian covered that with 3:40 about use of ECC memory. Because as you increase the scale, you increase the amount of errors. You wouldn’t be able to run a datacenter with desktops very effectively. Lots of errors and bugs.

  • @eugenevdm
    @eugenevdm 8 หลายเดือนก่อน

    Thanks! I really got a lot from this video. I also benchmarked using the same volume set with direct hardware versus via a hypervisor. My file read/write test on a 1 GB file direct hardware was around 19 to 20 seconds whereas via a hypervisor it was around 22 seconds. So I can see some overhead but no too much.
    I'm still debating if I want to go direct hardware or via Proxmox. It's just not so clear what the advantages are except if I had a complex confirmation and I didn't want to redo it. It seems you can easily import volumes that were disjoined from the operating system in TrueNAS via the import command.

  • @johngrabner
    @johngrabner 2 ปีที่แล้ว

    Very cool.

  • @andim609
    @andim609 2 ปีที่แล้ว

    Thanks Christian for this video. Is it possible with passthrough HDDs to use an smb share as mount point to a docker container like ecoDMS? The docker ist on the same proxmox as truenas

  • @Farang_Lifestyles
    @Farang_Lifestyles 2 ปีที่แล้ว +1

    3400 views of this great video,,, and only "156 likes" shame on these people,,, hit the likes people!!!!,,, this is someone doing hard work for us to view and learn....!

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Thank you so much, what a great feedback 😉

  • @MasterDXT
    @MasterDXT 2 ปีที่แล้ว +2

    Great video! I have my TrueNAS system virtualized for well over two years now and it runs flawlessly. Using Vmware ESXi. :)

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Thank you 😊 sounds like a great setup as well! ESXi is also nice

    • @gh8447
      @gh8447 2 ปีที่แล้ว

      That's exactly how I do it. I have two TrueNAS VMs along with PFSense, Windows Server 2016 (to play with), and a variety of Windows and Linux desktops. Remoting into Linux can be problematic though...

    • @CampRusso
      @CampRusso ปีที่แล้ว

      🤔 so there is physical storage dedicated to the hypervisor in addition to the physical storage dedicated to TrueNAS?

  • @tazsamir8281
    @tazsamir8281 2 ปีที่แล้ว +2

    I've done this for some time , now I require the securing your home server with a firewall video asap please :D

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      It's coming but it will take a few weeks 😉

    • @Mikesco3
      @Mikesco3 2 ปีที่แล้ว +2

      I usually virtualize pfense or opnsense, then additionally I put a container running Pihole to block ads and malware

  • @jonathanzarka6914
    @jonathanzarka6914 2 ปีที่แล้ว

    hello thx for this video very useful.However if one disk fail how can you make to change It because I suppose you have to declare un new physical volume in proxmox is that easy

  • @gurshair
    @gurshair 6 หลายเดือนก่อน

    In proxmox 8 you can get the model and serial number for the drives in the Disks section of your node

  • @THEMithrandir09
    @THEMithrandir09 ปีที่แล้ว

    Did you try to install a VM into the TrueNAS managed storage? Or do you just provide the space managed in truenas to the VMs as additional storage, e.g. as a remote /home?

  • @Elrevisor2k
    @Elrevisor2k 8 หลายเดือนก่อน

    Is it possible to create a folder on the zfs for photos other videos other for books with different record size (depending on file size) to optimize the space?

  • @nalle475
    @nalle475 2 ปีที่แล้ว +4

    Nice one again. 👍
    I have been running Free/TrueNAS on bare metal for years and love it. Tried it firs on consumer grade HW but it runs much better on a really old Proliant G5. I think its the ecc memory that boost the performance. Ecc memory and battery helps when things go sideways - as it usually do at som point.
    I also have virtualization TrueNAS servers from time to time. My settings are different but generally the same as yours. I have been thinking of moving my production TrueNAS to Proxmox just to have all machines running Proxmox make some work easier. I run 3 Proxmox servers and a ProxmoxBS and then the TrueNAS.
    I have 4 HP servers in my rack and one self build.
    I strongly recommend real server HW due to performance and cost. SAS is superior but SATA is cheap - your choice.
    I will not recommend the Scale at this time due to the weak performans as to date (see Tom Lawrence videos)

  • @antito261
    @antito261 ปีที่แล้ว

    Exactly what I was looking for!

  • @ierosgr
    @ierosgr 2 ปีที่แล้ว +1

    At 13.24 where you mention about the bios mode, since you you propose to viewers to passthrough an hba controller, it would be better to select uefi and q35 options for the VM, as it is way better when you are passing through a pci device.

  • @panoshountis1516
    @panoshountis1516 11 วันที่ผ่านมา

    Very detailed and helpful. Just wondering, is the raw HDD pass-thru to TrueNAS the recommended option or the only option? I mean, I am contemplating whether it would make more sense to create a RAID5 pool via m/b RAID controller and pass-thru the disk to TrueNAS instead. Would that be an option? I am using a Synology DS920+ as my main NAS Server. I am considering running a TrueNAS VM on Proxmox as a 2nd level level of data backup.

  • @Robertjaymercer
    @Robertjaymercer 10 หลายเดือนก่อน

    Hello Christian, thanks again for your great content. Quick question, could you tell me what kind of terminal you re using? I kind of like the look of the interface...
    Thank you again

    • @christianlempa
      @christianlempa  10 หลายเดือนก่อน +1

      Thanks! Back then windows terminal, now I’m using warp on macOS

    • @Robertjaymercer
      @Robertjaymercer 10 หลายเดือนก่อน

      @@christianlempa thanks for your time 🙂

  • @Nettechnologist
    @Nettechnologist ปีที่แล้ว

    Was the reason to pass through the HD vs just allocating a pool of space from proxmox for the storage?

  • @EdwardPike
    @EdwardPike ปีที่แล้ว +1

    1. Thanks!
    2. First time NAS and ProxMox user.
    3. I added 2 HDDs to a new install using your method. TrueNAS says they have same serial number. I drilled down in the "Disks" list and they both have empty serial numbers (which makes them equal I suppose). I will now look back at the QEMU command that added them and see if something there about serial numbers.

    • @flakmoppen
      @flakmoppen ปีที่แล้ว +1

      Same here. Did you manage to find a solution to this?
      EDIT: I managed to find a solution. Go to your proxmox shell and do: nano /etc/pve/qemu-server/[ID-OF-YOUR-VM].conf
      Find your SCSI device.
      (Mine was "scsi2: /dev/disk/by-id/ata-ST5000LM000-2AN170_WCJ6B8PP,size=4883770584K")
      Add your serial number at the end.
      (Mine now is "scsi2: /dev/disk/by-id/ata-ST5000LM000-2AN170_WCJ6B8PP,backup=0,size=4883770584K,serial=WCJ6B8PP")
      Hope that helps :)

    • @EdwardPike
      @EdwardPike ปีที่แล้ว +1

      @@flakmoppen I ended up buying an LSI HBA and passing them in that way. It is an old mobo and only had 4 SATA 3 ports so was worth it anyway because I was using 2 of those for ZFS boot of ProxMox. But thanks!

  • @zadekeys2194
    @zadekeys2194 ปีที่แล้ว

    I'd love to see a solution that takes an old outdated dedicated NAS, connects it to a Pi running the NAS appliance and then gives you a (new) webgui+SSH+updates for the physically old Nas. :)

  • @y0n6u
    @y0n6u ปีที่แล้ว

    what is the outcome in relative terms when comparing no passthrough vs passthrough?

  • @JanVanhumbeek
    @JanVanhumbeek 2 ปีที่แล้ว +4

    I just did approximately the same set-up, but I noticed that you don't have IOMMU enabled on your server?
    If you enable IOMMU in your motherboard BIOS, you're able to pass through the onboard SATA controllers as PCIe devices to your VMs (in this case TrueNAS).
    This gives the VM hardware-level access to the controller and all attached disks, and thus means more native performance + being able to do S.M.A.R.T. tests on the disks.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Oh that's nice to know, let me check that! Thanks mate 😍

    • @JanVanhumbeek
      @JanVanhumbeek 2 ปีที่แล้ว +1

      @@christianlempa Just checked your motherboard manual, I would enable these settings:
      Advanced/CPU Configuration/SVM Mode
      Advanced/Onboard Devices Configuration/SR-IOV Support
      And then look in Advanced/AMD CBS subsections for:
      IOMMU
      PCIe ARI
      PCIe ACS

    • @lebeier
      @lebeier 2 ปีที่แล้ว

      This is the single best advice here. Thanks for the information and I have just done that on my supermicro mobo.

  • @ranjannayaks
    @ranjannayaks 2 ปีที่แล้ว

    How do I configure a disk array or disk bay?
    I want to buy bare metal and then populate it with some disks. Can you please share some idea on how to set that up?

  • @JakeFrosty
    @JakeFrosty ปีที่แล้ว +2

    I know this comment is very late but not all motherboards have SATA as something you cannot passthrough, some boards show their sata controller as PCIe devices/chipset and allow you to passthrough them to said VMs (works for me, however it doesn't mean that It'll work for everyone)

  • @congenio
    @congenio ปีที่แล้ว +2

    This does solve one part of the problem that Proxmox is not so great for providing space if you do not want to separate the file server (or NAS) and the VE engine. But one problem remains: the TrueNAS VM cannot be snapshottet, since it has pass-thrus.
    Also, this is a viable solution only if you deploy new hardware - you are in trouble when you try to migrate a huge array that is on an existing RAID, probably also encrypted.
    I have yet found no way of doing this - if Proxmox mounts the device, it must also provide the shares (which is not very good at). Every other solution carries over the control to an embedded VM, which can then not be snapshottet like other VMs. Containers are not a solution for this, either.

  • @agraham7108
    @agraham7108 ปีที่แล้ว

    What is betterwith for Trunas on Proxmox? Pass through disk, pass through sata controller or just do do that and use virtual disks?

  • @MrMkrb84
    @MrMkrb84 2 ปีที่แล้ว

    Hello! great video! I have an question. Isnt the best way to use the /dev/sda1 /dev/sda2 and etc identification to passthru the hard drives from mainboard? in case of failure of hard drive you can offline it from truenas, power off the whole system and replase it to new one. you plug new hard drive and mount it in truenas and thats it. otherwise you must write the new id of new disk in proxmox at first.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +3

      You should use the IDs instead of sda, sdb, .. because these could change under some circumstances, so better go with the ID to avoid any issues.

    • @MrMkrb84
      @MrMkrb84 2 ปีที่แล้ว

      @@christianlempa thank you!

  • @craigmcfly
    @craigmcfly ปีที่แล้ว

    I've been tempted by TrueNAS, but I already have an existing folder structure on my external drives that I don't want to lose.
    I ended up just mounting the external drive on my pve host and pointing SAMBA at it.

  • @DingsbumsStuerzer
    @DingsbumsStuerzer 3 หลายเดือนก่อน

    Great video. I tried the passthrough and it works flawlessly.
    Just a question: why do we not add the hard disks to the VM via the PVE GUI? I think you would need to set the disks as storage devices in PVE (like you have with the truenas named storage)? I sadly skipped that part so can't try for myself if it is possible.

    • @christianlempa
      @christianlempa  3 หลายเดือนก่อน

      You can add the PCI device for the disk controller in Proxmox, I've tested it in my new setup and it works well.

  • @TheAnK83
    @TheAnK83 2 ปีที่แล้ว

    I have done a similar setup just a few days ago, with an old Fujitsu D3417 MoBo. I have installed Proxmox on a nvme ssd drive and therefore the buildin sata controller (00:17.0 SATA controller: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] (rev 31)) was unused an i could easyly passthough it to the Truenas vm.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      That's interesting. It seems that this also has something to do with the chip on the motherboard. Thanks for sharing!

  • @cabelodomato
    @cabelodomato ปีที่แล้ว

    Interesting... would anyone know if is possible to refer the hard-drivers by ID to a VM and still accessing them via Proxmox? As if the ZFS is used by two systems at the same time.

  • @EMFExplorer
    @EMFExplorer 2 ปีที่แล้ว

    curious about virtio block vs. the virtio scsi you're using in the video. Also - some people suggest write-back cache (*not* the one that is labeled "unsafe" of course). Anyone do testing with these?

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว

      Virtio blk should be marginally faster as it doesn't implement the full SCSI controller like Virtio SCSI. Blk just presents a block device to the system. Also I'd recommend to completely disable caching in this case, as Zfs does it on it's own and it will cause problems when there's a crash or sth

  • @petertrahan9785
    @petertrahan9785 ปีที่แล้ว

    I am trying to do a very similar setup but when I installed Proxmox I set up a ZFS RAIDz1 pool over three SATA disks. I can add that pool as a disk source from the Proxmox add hard drive menu. Should I have not set up ZFS on those disks via Proxmox and used the method in this video of adding the individual disks to the Truenas VM and then creating my zpool from within Truenas? What are the consequences of these two different methods?

  • @rodrigocsouza8619
    @rodrigocsouza8619 ปีที่แล้ว +1

    Hi Christian and everyone, with the passthrough of the disks to Truenas, do you have the SMART tests working? I can't see any tests results and even if I try a manual run, I got an error message "Short offline self test failed [unsupported scsi opcode]", does not matter the type of test selected.

  • @pr0jectSkyneT
    @pr0jectSkyneT ปีที่แล้ว

    How do you install the qemu-guest,-agent on the TrueNAS Core VM?

  • @Glatze603
    @Glatze603 2 ปีที่แล้ว

    Hi, how is it possible to automate backups of the truenas vm without the data-disks?

    • @Glatze603
      @Glatze603 2 ปีที่แล้ว

      Got it - there is an option in the drive-settings of the vm :-)

  • @heliwrsfoestuff5913
    @heliwrsfoestuff5913 2 ปีที่แล้ว +1

    I built my current Proxmox server around AMD 3400G CPU, before understanding the risk associated with non ECC memory. However, I agree with Michael that for home users it's not so much an issue. Plus one should not rely on ZFS or any RAID system equivalent for backup. For that reason I also use Backblaze, which has very reasonable rates for offsite backup storage. Then in the unlikely event that my data gets corrupted, I can rebuild it.
    I am using Alpine Linux/SMB LXC container as a file server right now, but I really liked TrueNAS (was using my Proxmox box as standalone TrueNAS server) and will most likely switch to a TrueNAS VM in the near future. But LXC containers are a whole lot of fun, and very efficient.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Sounds great! Yeah I don't think that ECC is always needed, however I would still recommend it generally. But I can see that it's not a must have for every setup, especially in a home server.

  • @fmj_556
    @fmj_556 2 ปีที่แล้ว

    How do you replace a dead HD? I've tried to replace my failed HD the normal way you would if TN was installed on bare metal but TN does not recognize the new HD when installed into the server.
    Thanks great video!

    • @AceBoy2099
      @AceBoy2099 ปีที่แล้ว

      I would imagine you would have to do this process again just with the new drive in place of the old. That's why I want to find out about a "by position" method in place of a "by id" one.

  • @IngleseAngel
    @IngleseAngel 2 ปีที่แล้ว

    Would you do a video doing Stress performance test for your storages? I suppose you might want to test regular HDD vs SSD as a control point, then going up to NAS solutions? just an opinion for a new video.

    • @IngleseAngel
      @IngleseAngel 2 ปีที่แล้ว

      forgot to say hi first, sorry. Hi!

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +1

      Hey :) yeah maybe, I'm still trying to find the best setup for my homeserver so more stuff will come in the future.

  • @BigRyanGamesMinecraft
    @BigRyanGamesMinecraft 2 ปีที่แล้ว

    I run omv on hyperv passing through an SSD. Works great, I also run all my dockers on it too!

  • @zachboatwright
    @zachboatwright 11 หลายเดือนก่อน

    Does the hard drive you pass through have to only be used by Truenas? As an example, I have a large hard drive that has files for home assistant and Jellyfin on it. Do I need to move those to another hard drive before passing it through to Truenas?

  • @InsaiyanTech
    @InsaiyanTech 8 หลายเดือนก่อน

    what would be a decent budget hba card? im new to this im probably never going to use more then 12 drives ever if anything's as well im just trying to virtualize my truenas and my firewall

  • @ArrowOfTruth01
    @ArrowOfTruth01 2 ปีที่แล้ว +1

    Hi there! First of all, thank you for the great content and the great community! Y'all are my people :)
    I wanted to ask, why go through the trouble of giving the VM direct control over the disks instead of allocating some disk space, like with the boot partition?

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +3

      Thanks mate! :) ZFS works better with direct access on the drivers.

    • @ArrowOfTruth01
      @ArrowOfTruth01 2 ปีที่แล้ว

      @@christianlempa That makes sense! Good to know it's just an optimization thing and not necessarily required for operation

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว

      @@christianlempa yeah but you do the opposite of you say. By binding the disks to the VM like you did, you just use the drive like a raw image. Nothing from the drive can be seen by the os.
      Also you should've set the cpu type differently, kvm64 doesn't have access to most instructions

    • @coolricksanchez
      @coolricksanchez 2 ปีที่แล้ว

      @@LampJustin Noob here. Does that mean actually that ZFS will not work as intended by binding it that way?

    • @LampJustin
      @LampJustin 2 ปีที่แล้ว +1

      @@coolricksanchez yes and no. ZFS will pretty much work as expected, but there are some problems with it, first data integrity can't be certain as there are multiple levels of cache involved and zfs can't know what sector size the drive has, so performance will suffer if the sectors aren't aligned. Another problem is that some TrueNAS features just don't work for the reason that SMART isn't available, like disk error warnings and such.

  • @dustinhaarmeyer2341
    @dustinhaarmeyer2341 ปีที่แล้ว +1

    I just used this, but couldn't find the Serial in the disk/by-id folder. By adding -l to the list command I could see which one is sda / sdb and so on. Maybe this helps others too

    • @jtouch99
      @jtouch99 ปีที่แล้ว +1

      This helped me as I couldn't see my drives listed. Only the OS disk (1TB SSD) was listed but the other 8 x SAS SSD drives did not show up until I added the -l option to the command.

  • @mithubopensourcelab482
    @mithubopensourcelab482 2 ปีที่แล้ว

    Nice Video. Kindly please tell us which PCI card to be used for pass-thru HDD's [ Model / Make ]

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      I haven't used one of them myself, so I don't have direct recommendation, yet.

    • @mithubopensourcelab482
      @mithubopensourcelab482 2 ปีที่แล้ว

      @@christianlempa may be some one can reply...

    • @Kludgedean
      @Kludgedean 2 ปีที่แล้ว

      Depends if you are talking internal or external SAS.
      Both require different cards :)

    • @mithubopensourcelab482
      @mithubopensourcelab482 2 ปีที่แล้ว +1

      @@Kludgedean Sir, internal sas.

  • @taipanino
    @taipanino 6 หลายเดือนก่อน

    hi do you have any idea if the passthru would work with hp 530sfp+ card cause i cant get it to work

  • @laufgeek
    @laufgeek 2 ปีที่แล้ว

    Hi, thanks for the great videos on TrueNAS. I currently have only one problem and I can not get it to run the S.M.A.R.T service under TrueNAS. Unfortunately it does not start. Thank you.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      SMART does only work with a dedicated PCIE controller that's passed through into the VM. Otherwise you can only get SMART values on the host system.

  • @catv186
    @catv186 2 หลายเดือนก่อน

    hey good video mate!. I ran my first trueness- proxmox install. I'm having issues with my Kubernetes cluster. not launching. any ideas in how to troubleshot that? cheers!!

    • @christianlempa
      @christianlempa  2 หลายเดือนก่อน

      Thank you! Depends on the k8s setup, maybe check out our discord ;)

  • @Litdex
    @Litdex 2 ปีที่แล้ว +1

    Is it possible to add network card or network cad interface (in case when one card carry more than one interface) the same way as You added HDD? with out bridge, not by vmbr0 but directly eno0 let's say

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Sure, you can add more network cards (as much as you need and fit in :D)

  • @felipegilhiriart
    @felipegilhiriart 6 หลายเดือนก่อน

    Hello @christianlempa! Im running truenas on proxmox, but i need to changee the motherboard, could you make a tutotial on how to migrate everithing to the new sistem without loosing data?

  • @asian1nvasion
    @asian1nvasion 2 ปีที่แล้ว

    I can find the video for the home server spec. But is there an actual video showing the build from start to finish?

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Here you go: th-cam.com/video/nwlircveTHU/w-d-xo.html

  • @VilleF1N
    @VilleF1N ปีที่แล้ว

    Would be really cool if you could do a video about importing existing pools from other NAS' such as QNAP and Synology into TrueNAS. Totally not asking because that's what I need to figure out since my QNAP kicked the bucket or anything...

    • @christianlempa
      @christianlempa  ปีที่แล้ว

      As I'm not using QNAP or Synology, that would be impossible for me :/

  • @betant7366
    @betant7366 หลายเดือนก่อน

    It's been 2 years now and I wonder if you'd keep this as a setup? Any downside found in terms of performances or reliability during that time? Or perhaps you are rocking now a different setup for the storage part of your Homelab?

  • @Flying_Mushroom
    @Flying_Mushroom ปีที่แล้ว

    Any reason to still go for TrueNAS CORE instead of SCALE?

  • @havkacik
    @havkacik 3 หลายเดือนก่อน

    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?

    • @christianlempa
      @christianlempa  3 หลายเดือนก่อน +1

      No, if you do passthrough the device becomes unavailable to the host

    • @spoonest
      @spoonest 2 หลายเดือนก่อน

      @@christianlempa and how you connect this drives to your VMs? as NFS?

  • @derekdresser9214
    @derekdresser9214 8 หลายเดือนก่อน

    Great video, Im a bit late to the game but I have watched quite a few now. The more i watch the more confused i get. Ive had 2 low end servers over the years and recently wanted to update it. First server was WHS second was just an old PC running windows. Anway, i want a place to hold my files and Plex and perhaps try a few virtualizions. I want to use my old hardware to do this (4th gen i7)
    Now i watch this and learn about needing ECC RAM and i dont know what to do. Honestly it all just seems too difficult

    • @christianlempa
      @christianlempa  7 หลายเดือนก่อน

      Don’t worry about ECC in a Homelab, will make your life easier :)

  • @JLR8988
    @JLR8988 ปีที่แล้ว

    Noob question: Any reason why we are passing the block devices through rather than creating a QCOW2 file? Are we looking at data corruption if we do this? I intend to create CephFS block storage on my cluster and use a sizable chunk of qcow2 for datastorage. I also intend to use proxmox backup server to take backups of the truenas VM.

    • @lorenz323
      @lorenz323 ปีที่แล้ว

      I run a TrueNAS zfs on Proxmox zfs and as a vm, so I can Backup with Proxmox Backup and move it to one of my other Servers if needed. I use trueNAS with smb and nfs share. Its work now since Proxmox 7 came out. Till now I don't see any Problems. Once 1 Server died completly and I just Restored the 800GB data from Backup and it worked find. I only have 1 GB lan, bond with 3 NICs. For this is it fast enough. On every of the 3 Servers I have local disks for zfs, the vms syncs to each other. CephFS would be a fine thing, but I think my 1GB network is to slow for it.

  • @anamixnetwork8446
    @anamixnetwork8446 2 ปีที่แล้ว

    Hi, If I create another VM in Proxmox I should be able to access this TrueNAS right? As a shared storage among both VMs and Physical devices connected to the Host.

  • @AceBoy2099
    @AceBoy2099 2 ปีที่แล้ว

    Instead of by-id is there a way to do the drive linking by physical port? I have a 24bay hot-swap chassis I want half the bays to be assigned to one program (truenas, unraid, etc) and the rest to another, but I am uneducated in linux things including commands and this "ssh"

    • @marens101
      @marens101 2 ปีที่แล้ว

      I'd still suggest using by-id, linking to the drive rather than the bay. That way you can label the drives as TrueNAS and it won't matter which bay they go into. You could also tag the drive caddies so you can still have labels from the outside
      If you really want to link to the bay rather than the drive, take a look at "/dev/disk/by-path" (instead of by-id). Keep in mind though, if you do that and then put another in-use drive into that bay, TrueNAS may not be able to tell that you're using a new drive and may just think it's had a drive replacement and start rebuilding the data it previously had. The only reason I can see for this being a good thing is if you expect your drives to die and need replacing often.

  • @user-di3uj9yy4o
    @user-di3uj9yy4o 2 ปีที่แล้ว

    Thank you for the tutorial,
    Now TrueNAS Scale is getting better ,should i still install TrueNAS Scale on Proxmox , or just installed on host and use VM\docker on Scale?

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Good question, it depends on what you want to do with it. If you're running a single server environment, I guess it's okay to run TrueNAS on Proxmox, because Proxmox is far better in managing VMs.

    • @user-di3uj9yy4o
      @user-di3uj9yy4o 2 ปีที่แล้ว

      @@christianlempa yes ,you are right. i try to use vm\app on scale , Proxmox is far better

  • @AdoreanGo
    @AdoreanGo 2 ปีที่แล้ว +1

    Thanks a lot for the great video, it has clear instructions and explanations.
    I have one question though after following your guide. I can’t seem to access any S.M.A.R.T information of the disks after passing them through. Would this jeopardize TrueNAS’s ability to check ZFS pool health? How would TrueNAS know if there is a problem with the disks if it can’t read smart info?
    (Also as a little test, I passed through another disk to an Ubuntu Server VM, it also can’t read the smart info either.)

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Thank you mate! Yeah that was bothering me as well, you may need to monitor the SMART values from the Proxmox host instead of TrueNAS. There are solutions where this works, however pass through an entrie controller instead of single drives allows you to see the SMART values in TrueNAS as well. You might consider upgrading to a storage controller for that. I'm also thinking about upgrading my NAS to a physical one at some point.

    • @AdoreanGo
      @AdoreanGo 2 ปีที่แล้ว

      Thank you very much for your quick reply. Your answer gave me peace of mind, I thought I did something wrong...
      Just to let you know, your channel has a ton of great contents. I've just followed your WSL guide and now I have a very quick & responsive & good looking terminal with ZSH. (No need for "putty" or "Linux VM" just for using the terminal anymore)
      Keep up the good content, best of luck to you :)

  • @siksniper1996
    @siksniper1996 2 ปีที่แล้ว

    Can you use iSCI shares for vm's on proxmox if TrueNAS itself is being virtualized?

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว

      Haven't tried that, but I probably would only do that for storage, not for OS files that are stored on an ISCI of a VM itself.