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.
@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.
as soon as i save the file with the serials in it (cntl+x / Y for overwrite) i loose my disks in my truenas container! what am i doing wrong? btw im using NVME drives
I posted 6 months ago on this video, but I wanted to come back and thank you AGAIN for making this video - I just replaced a failed drive using this same method removed bad disk and added the replacement using the same method, giving the replacement drive the old scsi id. Fired up TN Scale VM -> Degraded VDEV -> Replacement -> Resilver started right up.
Great tutorial, I follow this and got the drives passed through to Truenas Scale OK Edit to add. You can overcome the backup issue by excluding the drives from backup in the Proxmox drive details page. So the there is a way around the problem in the following paragraph. 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.
@@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.
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!
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.
Which HBA did you end up buying? I was using an "LSI Megaraid SAS 9261-8i Controller" for hardware RAID5. However it seems like it's not supporting HBA (according to Broadcom KB ID: 1211161496893) and I need to buy an new card. My mainboard supports a "ASUS PIKE RAID Controller". Can I achieve an equivalent result with it?
coming back to answer my own question: In general it is possible to use a RAID-Controller as HBA, but it must be flashed in IT-mode. Not all RAID-controllers support that! I went with an "ASUS PIKE 2308 / Broadcom/LSI 2308 / AOC-S2308L-L8".
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.
Great video, just one thing I learned here: Passing the HDs individually and not the entire controller means that the True NAS cannot obtain SMART information from them, preventing the system from warning in advance if one of them is in pre-failure condition. It didn't stop me from assembling and running the system, but it is an important feature to avoid a disaster in the pool and to allow the HD to be replaced in a scheduled manner. In my case, I will buy a SATA controller to make the TrueNAS work properly. Cheers
can you educate me on why a SMART information is needed foor the truenas - because there is SMART informatin in datacenter>pve. why is there a need for a different one?
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
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!
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
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
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! =)
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.
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
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.
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...
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 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?
thanks for the video. followed your video and managed to get my TrueNAS VM running on Proxmox. The only part I would improve is to add a 'backup=0' flag in the config file, the part where you pasted in the serial number manually. With the no backup indication and if there is a scheduled backup on the VM, proxmox will skip the backup of all your passthrough HDD. It just happened to me earlier when proxmox attempted to backup all the HDD of TrueNAS when it did not have sufficient space. /dev/disk/by-id/ata-BRAND_MODEL_SERIALNO,size=9314G,serial=SERIALNO,backup=0
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.
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 😊
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.
@@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.
Just wondering, what is the recommened approach between (a) creating a RAID-5 set via the BIOS controller and pass that thru to the VM vs (b) pass-thru raw disks and then create a RAIDZ within TrueNAS?
Question: I am currently using truenas scale with 2 mirror drives and ssd as a boot drive as my main nas system and now i want to move to proxmox to get more virtualization benefits keeping truenas as vm inside proxmox. I want to migrate existing truenas system to proxmox without any data or application changes? The one option i can think of is, install proxmox and then have a fresh truenas installation as vm and then passthrough existing hard drives to import zfs pool and install all the apps again. is there any better way?
HI, i'm facing a similar solution for a new customer and I realy on the maximum speed for the users, becase the fileserver will be used for render applications. Would be the TrueNAS inside the proxmox faster than a for example a NAS connected with the server at 10G?
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!
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?
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..?
This is great, the only exception I ran into is that I had to use sudo hdparm -i /dev/sd*, since the command you listed didn't actually let me see all the drives.
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
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
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.
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?
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?
I tried installing the HDD passthrough, for some reason, SCSi 1 and 2 disappears from the Hardware list on TrueNAS when i save the file with serial numbers. Is anyone else facing this issue?
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
adding sirial numbers saved me from an issue i had been dealing with for weeks lol. Thanks!
@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 mate! you rock
as soon as i save the file with the serials in it (cntl+x / Y for overwrite) i loose my disks in my truenas container! what am i doing wrong? btw im using NVME drives
@@prutje delete the space before "serial" and it will be fine.
I posted 6 months ago on this video, but I wanted to come back and thank you AGAIN for making this video - I just replaced a failed drive using this same method removed bad disk and added the replacement using the same method, giving the replacement drive the old scsi id. Fired up TN Scale VM -> Degraded VDEV -> Replacement -> Resilver started right up.
Hell yeah
Great tutorial, I follow this and got the drives passed through to Truenas Scale OK
Edit to add.
You can overcome the backup issue by excluding the drives from backup in the Proxmox drive details page. So the there is a way around the problem in the following paragraph.
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.
@@delboyg01 Thank you for your corection. If you care plz edit the original comment so that others can be informed!
One of the most usable videos I have seen in the last year. Thanks for helping out!
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!
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
@@Jasper_S here for this, i want s.m.a.r.t info
iXsystems always recommends avoiding the use of raw disks passthrough because the guest does not have direct physical access. It's a BIG NO NO !!
Which HBA did you end up buying? I was using an "LSI Megaraid SAS 9261-8i Controller" for hardware RAID5. However it seems like it's not supporting HBA (according to Broadcom KB ID: 1211161496893) and I need to buy an new card. My mainboard supports a "ASUS PIKE RAID Controller". Can I achieve an equivalent result with it?
coming back to answer my own question: In general it is possible to use a RAID-Controller as HBA, but it must be flashed in IT-mode. Not all RAID-controllers support that! I went with an "ASUS PIKE 2308 / Broadcom/LSI 2308 / AOC-S2308L-L8".
I've been using this guide to make virtual PBS with pass-through drives on multiple systems, thank you.
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.
This video helped me gain confidence that the article achieved what I wanted! You're a legend!
Great video, just one thing I learned here: Passing the HDs individually and not the entire controller means that the True NAS cannot obtain SMART information from them, preventing the system from warning in advance if one of them is in pre-failure condition.
It didn't stop me from assembling and running the system, but it is an important feature to avoid a disaster in the pool and to allow the HD to be replaced in a scheduled manner.
In my case, I will buy a SATA controller to make the TrueNAS work properly.
Cheers
can you educate me on why a SMART information is needed foor the truenas - because there is SMART informatin in datacenter>pve. why is there a need for a different one?
Thanks for the great video and easy to follow!. I just did it on my side with TrueNAS scale and worked like a charm!
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
Yeah I did this for a while. I just put TrueNas "scale" stright on the machine now. couldn't be happier! cool video though!
The only guy that talked about device ids on youtube, thanks I was having trouble with 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!
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?
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
Love your page between you and Network Chuck , I am well rounded , love how you simplified this.
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! =)
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.
Thanks for the video my man. I was digging through the wiki, but figured I'd give the youtube search a shot!
Awesome video! Thanks for the step-by-step. Very easy to follow and best of all it worked.
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.
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
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.
Extremely useful and concise guide. Hugely appreciated.
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...
ckear and straight forward explanation. Nicely done!
Excellent tutorial on installing TrueNAS on Proxmox. Thankyou very much
Such a great and straight forward video. Thanks for the tutorial!
That is incredibly useful. Thank you for taking the time.
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 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
Thanks. I finally settled on a Truenas Proxmox combo and this walkthrough was just what I needed.
thanks for the video. followed your video and managed to get my TrueNAS VM running on Proxmox.
The only part I would improve is to add a 'backup=0' flag in the config file, the part where you pasted in the serial number manually. With the no backup indication and if there is a scheduled backup on the VM, proxmox will skip the backup of all your passthrough HDD. It just happened to me earlier when proxmox attempted to backup all the HDD of TrueNAS when it did not have sufficient space.
/dev/disk/by-id/ata-BRAND_MODEL_SERIALNO,size=9314G,serial=SERIALNO,backup=0
This video helped alot! Now my TrueNAS can read my hard drives :).
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.
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! The proxmox wiki docs leave a lot to be desired. (what is "592'? Why use -scsi2, etc.)
Did you ever make a video about your Dashboard found at 0:30? Been looking through your videos but i just cant find it
Great video was looking for something like this and boom u made this amazing video.
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!!
0:30 what is that dashboard.
I am also interested to hear what this dashboard is!
Thank you for this tutorial, it's clear and easy to follow for students
This tutorial is perfect, thanks Bro.
If you aren’t using other SATA devices from that SATA controller you could also just passthrough that controller in the GUI.
Just what I needed to know. Thank you
Thank you. That was helpful as I was unable to locate my drive in Truenas.
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.
1:05 What software does this GUI beling to?
Great straight forward video, Thank you!
what is better, passthrough the whole sata controller or set each disk to the VM like this?
Thanks for sharing, I am a total newb and you helped me get a stellar result :)
can't see the lsblk cmd can you added it to description?
What's the difference doing that vs. in the VM go to Hardware then add hard disk?
Just wondering, what is the recommened approach between (a) creating a RAID-5 set via the BIOS controller and pass that thru to the VM vs (b) pass-thru raw disks and then create a RAIDZ within TrueNAS?
Will truenas be able to read the temperature and smart values of the disks passed though?
Question: I am currently using truenas scale with 2 mirror drives and ssd as a boot drive as my main nas system and now i want to move to proxmox to get more virtualization benefits keeping truenas as vm inside proxmox. I want to migrate existing truenas system to proxmox without any data or application changes? The one option i can think of is, install proxmox and then have a fresh truenas installation as vm and then passthrough existing hard drives to import zfs pool and install all the apps again. is there any better way?
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
HI, i'm facing a similar solution for a new customer and I realy on the maximum speed for the users, becase the fileserver will be used for render applications. Would be the TrueNAS inside the proxmox faster than a for example a NAS connected with the server at 10G?
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!
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?
Why the processor type is KVM64 nad not Host or X86-64v2
I got unable to locate package lshw. How fix?
apt update
after that, try apt install lshw again.
awesome video sir, thank you!
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?
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..?
Why everytime I add the serial it deleted the disk from proxmox
Someone else posted this solution and worked for me as well
@michaelarthur8417
"space after the comma. Removed it and et voila"
this is a great tutorial,
but, what is the benefit of virtualizing truenas as opposed to just installing truenas bare metal?
This is great, the only exception I ran into is that I had to use sudo hdparm -i /dev/sd*, since the command you listed didn't actually let me see all the drives.
thanks for the video. is it possible to make a raid1 of two hdds and pass "them" through?
Can I dual boot with TrueNas scale on baremetal and Proxmox on an separate ssd?
Instant sub
Do you plan on making a video on your Container setup?
Thanks for the demo and info. So why did you install TrueNAS Core instead of TrueNAS Scale?
Is there a way to install the qemu-guest-agent in the TrueNAS Core VM?
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.
Hello!For photos as google photos,what its best in proxmox?Nextcloud or Truenas?Thanks
Good videa, helped a lot, thank you.
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
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
Did you ever get the drive temp to show in truenas doing this
Thank you very much! It helped a lot =)
Very helpful, thank you very much!
Thanks for the video!
So this is being passed through via the sata ports on the motherboard?
WHy use truenas to create zfs when you can create zfs directly from proxmox? What's the advantage?
How can I add the drive serial numbers after the TrueNas VM is running?
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.
I dont know if I did it properly but I ended making a ZFS with the hdds and TrueNas saw it as one disk
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.
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
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!
when i do the apt install for the lshw app, I keep getting an error of unable to locate the package
I tried installing the HDD passthrough, for some reason, SCSi 1 and 2 disappears from the Hardware list on TrueNAS when i save the file with serial numbers.
Is anyone else facing this issue?
Yes I currently am. Haven't found a solution. Did you?
I had a space after the comma. Removed it and et voila
@@michaelarthur8417 This is Solution i searched for ! Thanks man !
I had to change the cpu type to kvm64, then it fired up. Thank you!
By passing through the HDDs, would the data be wiped on them?"
what is the point of installing truenas on top of proxmox? Even with passthru truenas could be CPU starved at some point and drop packets/sectors.
To learn something. Just have my first PC for homelab, and I'm trying to replicate a multiple HW setup with only one PC