Тёмный

TrueNAS in a Proxmox VM with SSD/HDD passthrough 

Подписаться
Просмотров 42 тыс.
% 864

We'll install TrueNAS in a Proxmox VM and pass a pair of ssd's through to that VM. Once that is done we'll log into TrueNAS and set them up to be utilized as a Windows share.
Download TrueNAS
Core: www.truenas.com/download-truenas-core/
Scale: www.truenas.com/download-truenas-scale/
ZFS explained
www.servethehome.com/an-introduction-to-zfs-a-place-to-start/
If you are using old disks and need to format them go to the Disks of the node and note the /dev/***
Then got to the shell of that node and type
cfdisk /dev/(Name of disk to be formated)
delte all partition and creat a new drive then quit
Pass a HDD through to a VM
Identify the disk you want to passthrough
ls /dev/disk/by-id
In the shell of the node
qm set "vm number" -"disk type""volume number" /dev/disk/by-id/"drive identifier"
I.E.
qm set 102 -sata1 /dev/disk/by-id/ata-HGST_HMS5CBLAHBLAH_MIDWSETISTHEBEST
#loresdiy
My Channel: ru-vid.com

Опубликовано:

 

28 ноя 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 128   
@robn8556
@robn8556 Год назад
loved straight, short and sweet approach of showing just what you need to get installation done.
@LoResDIY
@LoResDIY Год назад
Awesome glad you liked it. Cheers
@Weelosd
@Weelosd Год назад
Excellent tutorial. Exactly what I was looking for as a new Proxmox/TrueNAS user and this got me through it all in one shot!
@SteveSwags
@SteveSwags Год назад
This is EXACTLY what I want to do with one of my Proxmox systems. I have dual 20TB drives in it and want to use it as my network storage at home. Thanks for the video! I'm going to give it a try tonight after work.
@CKCKCKM-cx3jx
@CKCKCKM-cx3jx Год назад
Great tutorial. I was having issues on seeing my drives in TrueNas, but with your QM SET command they now passthrough, thankyou.
@agagliardijr
@agagliardijr 10 месяцев назад
This is the absolute best tutorial for running TrueNAS on Proxmox from the beginning to end. Most forget about "passing through" the hard-drives and that is where most people get lost. Thank you for this guide.😄😄😄
@LoResDIY
@LoResDIY 10 месяцев назад
Cheers
@user-xg4wc3ot2d
@user-xg4wc3ot2d 7 месяцев назад
you legend...been trying to do passthrough for a month till i seen this. You desevre a medal
@mr.miniaturesmodels8465
@mr.miniaturesmodels8465 Год назад
Wow! That was a deep dive. Unlike other channels where I run into RU-vid cooking show magic, everything worked and all information to do this at the time I’m watching it was provided. Thank you so much for the example/walkthrough!!
@LoResDIY
@LoResDIY 10 месяцев назад
Glad it was helpful!
@Dccox86
@Dccox86 Год назад
Another amazing walkthrough that saved me HOURS of work and frustration.
@LoResDIY
@LoResDIY Год назад
Cheers!
@bdhaliwal24
@bdhaliwal24 2 года назад
Excellent tutorial. I followed it from beginning to end and got off the ground. Thank you
@LoResDIY
@LoResDIY 2 года назад
Awesome glad it helped
@eidodoos
@eidodoos Год назад
after 1 year published and i found this video. you got new subscriber. your explaination and guide is crystal clear. teaching is your thing
@LoResDIY
@LoResDIY 10 месяцев назад
Thank You Cheers
@eduardooroedell
@eduardooroedell Год назад
With your tutorial, I could solve a problem in my home lab. Thank you so much! 😊
@LoResDIY
@LoResDIY Год назад
Happy to help!
@MashApi
@MashApi Год назад
As a newbie your tutorial help me a lot. Big thank for your time and effort.
@tonyperez2690
@tonyperez2690 Год назад
That was an excellent tutorial. It answered many questions and problems I had.
@adalbertomania
@adalbertomania 11 месяцев назад
thank you for the video, i installed TrueNAS to test how it works and messed up, with your video i manage the right way to setup.
@LoResDIY
@LoResDIY 10 месяцев назад
Cheers
@DarkLinkArt
@DarkLinkArt 2 года назад
thank you for the video! really good for beginners explaning all we need to know and not onlly showing the information really fast. love from brazil!!!!!
@LoResDIY
@LoResDIY 2 года назад
Cheers! Glad it helped.
@Aletzi1
@Aletzi1 2 года назад
Thanks, with your help, i got my hdd mounted into proxmox.
@LoResDIY
@LoResDIY 2 года назад
Glad it helped
@anthonyrussano
@anthonyrussano Год назад
you da man !!! this video was clutch... it helped me out when I got stuck following another tutorial ... very thankful.
@LoResDIY
@LoResDIY Год назад
Cheers!
@pavelg.5788
@pavelg.5788 Год назад
Excellent walkthrough. Thank you
@LoResDIY
@LoResDIY Год назад
Cheers!
@magicmanj32
@magicmanj32 2 года назад
Awesome, about to build my first proxmox server this is great info, thanks
@LoResDIY
@LoResDIY 2 года назад
Cheers and good luck with that build
@tonicipriani
@tonicipriani Год назад
Just followed your guide and now I have Proxmox and TrueNAS running on my Terramaster to replace the stock TOS. One note was that it seemed like the cfdisk to create the partition was not needed, TrueNAS will wipe the drive again for its own use anyways if entire drives are getting passed through, I skipped that part completely and it works fine.
@leo35813
@leo35813 Год назад
Thank you very much for this great tutorial!
@LoResDIY
@LoResDIY Год назад
Glad it was helpful!
@Pacwar3000
@Pacwar3000 2 года назад
Excellent Video man. Thanks for the information.
@LoResDIY
@LoResDIY 2 года назад
Thank You
@MADBONE0
@MADBONE0 Год назад
BRILLIANT! Exactly what I’m doing for my workstation Running Proxmox on 2x 1TB MX500 SSD’s in raid1 Then running everything on the workstation Xeon W-2245
@LoResDIY
@LoResDIY Год назад
Nice! Cheers
@Mandolorian84
@Mandolorian84 Год назад
very professional, very good content. thank you.
@LoResDIY
@LoResDIY Год назад
Much appreciated! Cheers!
@jonathanzj620
@jonathanzj620 Год назад
Thank you so much for the tutorial! This is the furthest I've been able to get installing TrueNAS. FYI that the number after sata doesn't appear to be the drive bay (at least for me on a dell poweredge 730), it corresponds to the logical drive in the sata array on the controller. So, for instance, I have two 1TB ssds in bays 1 and 2 with Proxmox installed and then 6 3TB sata drives installed in the remaining 6 bays. For me, these all corresponded to sata0 through sata5 (which is how they appear in my bios) even though they're in bays 3-8. Just wanted to throw this out there in case someone else runs into it.
@LoResDIY
@LoResDIY Год назад
Thanks for the info.
@raviontje
@raviontje Год назад
So helpfull ! thank you very much !
@abes.4040
@abes.4040 Год назад
Great tutorial, I have an old HP server I bought in 2018 and didn't know what to do with it. I paid 54 bucks on ebay and it came with 48 Gigs of RAM and 7 large 3 TB disk on the raid. So now I have 18 TBs of local storage, I am thinking on moving all my Google Drive files and all my movies to this server. Now I need a way to secure it from external attracts.
@LoResDIY
@LoResDIY Год назад
Nice!
@martinottolangui4667
@martinottolangui4667 Год назад
great vid ,got me running
@LoResDIY
@LoResDIY Год назад
Cheers!
@nickchandler1389
@nickchandler1389 2 года назад
Hi Jason, can I use a USB drive for TrueNAS storage? I followed your vid but I'm getting an input/ output error when attempting to create the pool. I can pass the disk through, it shows up under "Disks" in TrueNAS but it won't format or do anything. I'm trying to make a Plex Media share. Your videos are great - thanks!
@savatagedude
@savatagedude Год назад
I was wondering if you can pass different sizes of drives through (such as a 3 TB and 4TB for example), and then stripe it or do they have to be the same capacity? Also, say I have 3 TB drive connected via SATA and another 3 TB via SAS, and pass it through, does TrueNas simply just see the logical space doesnt care about the connection it came from? As ideas? thanks for the video! I learned a lot! \m/
@panoshountis1516
@panoshountis1516 Месяц назад
Very helpful and detailed video, thank you! Just wondering, is the raw HDD pass-thru to the VM the only or the recommened option? I am contemplating on creating a RAID-5 pool via the m/b on-board controller and pass that thru to the VM as a disk instead of creating RAIDZ within TrueNAS.
@jag5cof
@jag5cof Год назад
Thank you for the video. I currently have 4 4TB hard drives with data. Would I be to import these going though Proxmox or would have follow your steps?
@MarkConstable
@MarkConstable Год назад
An update to this using TrueNAS Scale 22.12 would be nice.
@GuyForssman
@GuyForssman 2 года назад
What is the benefice of installing TrueNAS scale on top of Proxmox and what is the overhead.
@lampshade29
@lampshade29 Год назад
Anyone figure out how to have Truenas get the Hard Drives SMART info via this way?
@Keyakina
@Keyakina 2 года назад
Hi someone said to me that you shouldn't virtualize disks for TrueNAS? That ZFS can't handle it and scrubs can wreck your server? Also I have no idea if this is possible or save. I want to use proxmox on a Hp microserver gen 8. My Idea is to use 3 HDDs all 14tb each. Can I give TrueNAS 3x 10tb and a RAID 5 config. Pfsense some space and leave a little space over for another VM if I ever wanted to? So I don't use the full space of each drive but share it. The reason I want to do it like this so I can put PFsense on a seperate device down the road. And still create separate VMs.
@peny1981
@peny1981 2 года назад
Is it possible to passthrough ssd using this method in video that TrueNas will see ssd as ssd?
@JunglistPrefection
@JunglistPrefection Год назад
Can I dual boot with TrueNas scale on baremetal and Proxmox on an separate ssd?
@andrewtyacke1395
@andrewtyacke1395 Год назад
Hey dude :-) Could you please advise the benefits of installing truenas in a proxmox server with all its resource overheads? The turnkey file server uses virtually no resources and does the same thing. I really can't understand why? Many thanks
@Elrevisor2k
@Elrevisor2k 9 месяцев назад
What’s the advantage of having TrueNas versus just shares directly in proxmox?
@JohnSmith-iu8cj
@JohnSmith-iu8cj 9 месяцев назад
I have a weird issue with Spin-down of my four 8tb disks, two wd80ezaz and two wd80edaz, purchased from different sources. One of each model does not spin down automatically. Manual spin-down works. I tried literally almost everything for weeks but I don’t find a solution. It seems I can not rely on the drives automatic spindown but need a script that manually initiated spindown. Is there a known working script that does this for proxmox or preferably truenas core?
@wyattvanloon6094
@wyattvanloon6094 4 месяца назад
When I run that id ls command it doesnt populate my LSI 2208 raid. What do I do to pass an LSI raid array through to a VM?
@winandd8649
@winandd8649 4 месяца назад
@10:23 How would I kno which "bay number" or "volume number" it is using? Not very clear to me..
@titustucan9654
@titustucan9654 2 года назад
Yeah thanks a lot, so far is basic stuff that if you know both Proxmox and Truens it’s easy, but what this video does not show is how to create log v-dev in the virtual environment for the pool that you created. There are many questions here, a log v-dev requires a full drive? or it can be a raw file presented by Proxmox to the Truenas VM? I don’t know if such a thing is possible. These are more advanced questions that I can’t find an answer anywhere
@LoResDIY
@LoResDIY 2 года назад
Hm, food for thought.
@ppietro
@ppietro 2 года назад
Hi, Thanks for this video, it allow me to do the passthrough thing.... I'v a question. When i try to back up my virtual TrueNas , it also wants to backup the phisical HDD's. Is there any way to avoid it ? .
@LoResDIY
@LoResDIY 2 года назад
Hm I haven't had that happen. I set Proxmox up to back up the TrueNAS VM and it only saves the VM setting nothing from the pools. It may depend on how you are setting your backing up options, but I really haven't explored that much. It just kinda worked for me. Sorry I don't have any suggestion, but to check out the documentation and hope you find something. Cheers
@vincentmartin2528
@vincentmartin2528 Год назад
Very good video and very well done. Thank you. I do have a questions though. I'm fuzzy on where to implement ZFS when using the Truenas VM. I was successful with Truenas with your video, however I don't have ZFS available or use with other VM's in proxmox now. Should I set ZFS in Proxmox 1st, then pass to Truenas, or is it pick one or the other? Thanks.
@samstringo4724
@samstringo4724 Год назад
You should let TrueNAS handle the ZFS by passing through preferrably a whole SATA controller. Some people put a dedicated controlelr in just for this, if you are not able to pass through individual disks.
@LoResDIY
@LoResDIY Год назад
Sam hit the nail on the head.
@vincentmartin2528
@vincentmartin2528 Год назад
I ended up just ditching Truenas all together. I don't need it for VM obviously, just file sharing, so it's really overkill for that.
@simons.-xb3tf
@simons.-xb3tf Год назад
Are you still running that? Any downsides experienced? I really love Proxmox and am just evaluating a storage master ... I was evaluating Unraid shortly, then found out that they still consider SSDs "not mainline" and was like em no ... so I'll straighly switch to that exact same construct.
@chuxxsss
@chuxxsss 2 года назад
Wish I had found this yesterday. I add disk to pve instead of a data pool.
@LoResDIY
@LoResDIY 2 года назад
Awesome
@jeromealtariba7339
@jeromealtariba7339 2 года назад
excellent but very basic question : why cumulating TrueNas Scale & Proxmox ? TrueNas can also run docker containers so, what is the benefit of running it into a proxmox VM ?
@LoResDIY
@LoResDIY 2 года назад
I agree. I am actual in the process of moving everything to TrueNAS Scale.
@jeromealtariba7339
@jeromealtariba7339 2 года назад
@@LoResDIY my main issue before moving to TrueNas scale is that it seems impossible to virtualize a macOs Machine in trueNas. Have you plans to do it?
@byronshepherd8415
@byronshepherd8415 Год назад
After adding the share and then mapping the drive, you said "I logged onto this computer with the same username and password..." are you taking about the local desktop (windows) box? Or the server? Or, are you saying that because you previously logged into the TrueNAS box, you now have a key or cert or whatever on your local machine?
@victorwilliams9423
@victorwilliams9423 2 года назад
Great Video. I have a question. If you were to create a vm in Truenas now, would it be able to see the share that you just created? If so how? If not, why not? I'm trying to work this out to my benefit.
@thegreenwheelofficial
@thegreenwheelofficial 2 года назад
from my own limited experiences truenas doesnt like to virtualize when its being virtualized - i have an error message appear when i attempt to create a vm within truenas. however, if you were to somehow get this working, a share is available to any computer that can access the network. As truenes is virtualized and (if you chose virtio when setting network adapter for truenas within proxmox) the network capabilities of truenas is virtualised also, running network tasks is limited on the hardware of the machine. If you were to create a windows machine within truenas and that windows machine had network access it would be the same as any other computer accessing shares - go to explorer and enter \\192.168.0.*\ (the ip address of the machine the share is hosted on, in this case it would be the ip address of your truenas vm which will be different to the now created windows vm inside of truenas) - again, this is from limited expirience, if im wrong i hope someone corrects me.
@LoResDIY
@LoResDIY 2 года назад
If you were to create a linux VM in Truenas it would not be able to see the shares that you have created. The VM thinks it's a real computer all on it's own; so if you wanted it to see the Truenas shares you would have to tell it where they are located at. You would also need to make sure you have the permissions correct for the share and the VM. I'm throwing around the idea of creating a TrueNAS bare metal server and doing a serious of videos that would cover ZFS pools, shares, permissions, snapshots, etc. Do you think this would be of assistance?
@trexgamer73
@trexgamer73 2 года назад
Great tutorial
@LoResDIY
@LoResDIY 2 года назад
Thank you! Cheers!
@doogleaelf
@doogleaelf Год назад
I cannot get past permissions issues. I cannot edit permissions on the pool.
@ahmedeid188
@ahmedeid188 2 года назад
Hi Thank you for the tutorial, I had virtualized TrueNAS on proxmox and Created SMB Share to use through my network. but I have a weird issue which any time I do copy data to the shared Folder or copy anything out of it everything get's slow on proxmox and all the other VM's hang and once copy is done all the VM's back to normal. any idea what is going on? I have a super micro Motherboard with Duel Xeon CPU's and 200GB of memory so i don't think my hardware is not enough !! Thanks
@LoResDIY
@LoResDIY 2 года назад
No it doesn't sound like a hardware problem. I'm wondering if you are maxing out your network and it appears that Proxmox is is slowing up. Otherwise I'm not sure what would be causing that to happen.
@ahmedeid188
@ahmedeid188 2 года назад
@@LoResDIY I am not sure about maxing the network? i am on 1 Gb network but i have all my VM's on one dedicated Lan Port and Proxmox is on another port and TrueNAS VM itself has it is own Port. but why you think it is network since all the setup is on one server and data moves with in the same server. will the data go from the trueNAS to the VM's through Network switch which is 1Gb and you think it is reaching a bottle neck ?
@LoResDIY
@LoResDIY 2 года назад
Oh I was thinking you were going from a desktop to the server not VM to VM. I'm going to spin up a windows vm and see if I have the same problem.
@wyattvanloon6094
@wyattvanloon6094 4 месяца назад
If I am using a built in LSI controller to create a raid 6 from within the bios such that the raid being handled by the boards built in controller and therefore the Truenas will only see the raid array and not the 8 drives I made it out of how much ram do you recommend?
@dracoflame8780
@dracoflame8780 2 месяца назад
Thats a terrible idea. Just flash the hba to it mode and pass them through.
@rayfevelyn
@rayfevelyn Год назад
How do you find the bay numbers?
@robertocordero9642
@robertocordero9642 Год назад
I think TrueNas is having a bug when you install it on Proxmox. I just installed it on Proxmox and I can't access TrueNas through the Web. It says username/ password incorrect. I changed the password few times, but still the same error. I have been looking for info, but I don't find anything. By any chance do you know what is causing it?
@zambiagrowl3632
@zambiagrowl3632 2 года назад
is truenas able to run smart tests and view smart data with this setup?
@LoResDIY
@LoResDIY 2 года назад
If you passthrough an hba yes, but if you passthrough individual hdd/ssd's than no
@aoikuroyuri6536
@aoikuroyuri6536 2 года назад
Is it normal for the trueNas VM to not be able to do SMART checks on the disks that got passed through to it?
@LoResDIY
@LoResDIY 2 года назад
I am experiencing the same issue, but have yet to find a solution. Sorry no help at this time.
@aoikuroyuri6536
@aoikuroyuri6536 2 года назад
@@LoResDIY well I can say that if you pass it through as SATA to openmediavault it does work ... Guess TrueNAS Core (which is not Debian based) doesn't like it either way ... Maybe TrueNAS Scale can handle it properly
@larsthorwald3338
@larsthorwald3338 Год назад
Yet another virtualization walk-through that just launches straight into the steps without a single word about WHY WE WOULD WANT TO DO THIS! What benefit--if any--over bare metal does a home user gain by virtualizing a NAS?
@DodgeHooker641
@DodgeHooker641 2 года назад
What's the benefits/drawbacks of installing TrueNAS inside a Proxmox VM as compared to running it baremetal ??
@denniskluytmans
@denniskluytmans 2 года назад
I run truenas scale on proxmox myself. The benefit for me is that I have a multi purpose machine without the need for all the extra hardware because of a bare metal setup. The downsode is that it can be a hassle to passthrough certain hardware, there also is some overhead and accoriding to ixsystems; it might be unstable
@Tanax13
@Tanax13 2 года назад
@@denniskluytmans Isn't Truenas Scale the same thing as Proxmox except different providers? Like why do you need Proxmox in your system rather than just using Truenas Scale?
@denniskluytmans
@denniskluytmans 2 года назад
@@Tanax13 truenas scale is the same as truenas core but with scale capabilities like high availability, docker, k8s and VM's. The scale base system is still core though, but on Linux based. The main purpose for scale is like for core; NAS
@LoResDIY
@LoResDIY 2 года назад
Dang I was a bit slow at getting to my comments, but Dennis hit the nail on the head. Cheers
@GuyForssman
@GuyForssman 2 года назад
@@denniskluytmans that wasn't @Tanax question. If you setup samba on Proxmox you'll have something like TrueNAS
@User-ec2bh
@User-ec2bh Год назад
This is an "how to lose your data 101". TrueNAS does not like directly passed through disks and it will cause trouble in the future. Use a HBA.
@Elrevisor2k
@Elrevisor2k 9 месяцев назад
😮 so better not to pass through the disk wow I was just to do this as is straight forward and I did not know what you said will review about HBA thanks 🙏
@czypherth
@czypherth 5 месяцев назад
do you have any resources regarding you claim that it does not like direct passthrough?
@AlonsoVPR
@AlonsoVPR 2 года назад
Do I need that much ram if only 2 or 3 people will use the nas?
@LoResDIY
@LoResDIY 2 года назад
Those are the recommendations from TrueNAS. I have ran machines with less ram before with no problems.
@AlonsoVPR
@AlonsoVPR 2 года назад
@@LoResDIY Like 8 gb for 18 tb?
@LoResDIY
@LoResDIY 2 года назад
@@AlonsoVPR I would think it would run with 8gb, but it may act oddly and be really slow. TrueNAS uses ram to cache the most used files and hopefully speed their load times up. I would suggest 16gb as a min., but hey give it a try with 8gb and if need be bump up to 16gb.
@jeytis72
@jeytis72 2 года назад
Very good. Could you please tell me how you draw those arrows on the video. Is it a post-production thing? Thanks
@LoResDIY
@LoResDIY 2 года назад
Yeah I use Epic Pen while I am recording. They have a Basic (free) and a Pro version (pro cost $25); I use the Pro version to have access to the arrow command. epicpen.com/ Cheers
@jeytis72
@jeytis72 2 года назад
@@LoResDIY thanks
@gatsbylee2773
@gatsbylee2773 9 месяцев назад
oh. interesting, this tutorial doesn't use a RAID card to passthrough the disks. I thought it's kind of recommended or even required to make the TrueNAS works smooth on Proxmox.
@LoResDIY
@LoResDIY 9 месяцев назад
Passing the card through is the best option
@gatsbylee2773
@gatsbylee2773 9 месяцев назад
@@LoResDIY i see. Thank you.
@mutosanrc1933
@mutosanrc1933 6 месяцев назад
you dont need to login anything to download truenas scale
@evertgbakker
@evertgbakker 2 года назад
I have proxmos running in vmware which is running in Win11 which is running in virtualbox. Ffs, why don't You just plugin the drive in your pc?
@LoResDIY
@LoResDIY 2 года назад
That's no fun
@johnconnorstopskynet
@johnconnorstopskynet Год назад
Too rich for my blood lol my home lab only has 24gb RAM I'm trying to setup samba share thru turnkey Linux container but passing the hdd thru which is ntfs partition is proving a little complicated. But I don't have 48gb of RAM to dedicate to one VM that's for sure. Also the fact I can't repartition the disk cause the data is on it makes it harder.
@danilfun
@danilfun Год назад
You don't need that much memory. 8 gb is more than enough, 16 is just plenty for virtually anything you could want truenas to do, with all of the [officially] available apps running at once. You do need a lot of memory FOR DEDUPLICATION, which you don't want to use for general purpose storage. And even if you need dedup for any strange reason, you don't have to enable it for the whole storage, so you still don't need much memory.
@matshogberg8943
@matshogberg8943 2 года назад
you dont need to log in with anything! Just scroll down.
@LoResDIY
@LoResDIY 2 года назад
Thanks for the info
@Heaven73
@Heaven73 53 минуты назад
this is a very bad practise. you need to pass the whole controller. truenas and zfs needs smart data and full control of the disk . in this way its not possible. to have a fully functional truenas you need to pass through a whole controller with pci e passthrough which will give you the same control as if its physical
@QuackGoesTheDuckQuackQuackQuac
@QuackGoesTheDuckQuackQuackQuac 2 года назад
You have some squeal happening in your audio...like a dog whistle maybe?
@LoResDIY
@LoResDIY 2 года назад
I tried some different mic settings. Sounds like they didn't work. Thanks for the feedback (pun intended) .