How To Setup TrueNAS Core As A VM in XCP-NG

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2020
  • lawrence.video/xcp-ng
    Connecting With Us
    ---------------------------------------------------
    + Hire Us For A Project: lawrencesystems.com/hire-us/
    + Tom Twitter 🐦 / tomlawrencetech
    + Our Web Site www.lawrencesystems.com/
    + Our Forums forums.lawrencesystems.com/
    + Instagram / lawrencesystems
    + Facebook / lawrencesystems
    + GitHub github.com/lawrencesystems/
    + Discord / discord
    Lawrence Systems Shirts and Swag
    ---------------------------------------------------
    ►👕 lawrence.video/swag
    AFFILIATES & REFERRAL LINKS
    ---------------------------------------------------
    Amazon Affiliate Store
    🛒 www.amazon.com/shop/lawrences...
    UniFi Affiliate Link
    🛒 store.ui.com?a_aid=LTS
    All Of Our Affiliates that help us out and can get you discounts!
    🛒 lawrencesystems.com/partners-...
    Gear we use on Kit
    🛒 kit.co/lawrencesystems
    Use OfferCode LTSERVICES to get 5% off your order at
    🛒 lawrence.video/techsupplydirect
    Digital Ocean Offer Code
    🛒 m.do.co/c/85de8d181725
    HostiFi UniFi Cloud Hosting Service
    🛒 hostifi.net/?via=lawrencesystems
    Protect you privacy with a VPN from Private Internet Access
    🛒 www.privateinternetaccess.com...
    Patreon
    💰 / lawrencesystems
    Phoronix Results Link
    openbenchmarking.org/result/2...
    Previous Review of Supermicro Superstorage Server
    forums.lawrencesystems.com/t/...
    Xenserver Hard Drive / Whole Disk Passthrough with XCP-NG
    • Xenserver Hard Drive /...
    PCI Passthrough with XCP-NG
    xcp-ng.org/docs/compute.html#...
    #TrueNAS #NAS
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Yay, more TrueNAS videos from Tom! A must watch!

  • @chrisumali9841
    @chrisumali9841 3 ปีที่แล้ว

    Thanks for the demo have a great day

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

    I had a working FreeNAS 11.3-U5 VM running iSCSI. Using LSI flashed HBA with pci pass through. Worked fine.
    I upgraded to TrueNAS core 12.0 release and added a TrueNAS core 12 ISO in my local repo.
    Now all sort of (bleeding edge) problems! Namely the UI Webserver keeps going down when my other VMs try to access iSCSI
    Are there XCP guest tools for TrueNAS core? I didn’t see you install any.

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

    123456... Man, now I have to change the combination on my luggage.

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

    Have you tested jails yet. I found when I had this setup with freenas when I deployed a jail it would randomly reboot the vm and an error saying freenas recovered from unscheduled reboot. Thanks

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

    I wouldn't quite call it nested virtualization. Usually nested virtualization means a VM within a VM.

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

    Would passing in the SATA controller instead of individual SATA drives reduce overhead? Would the speed issue be less relevant to HDDs where their max is lower than even the worst case in your benchmarks? Or would performance degrade relative to max theoretical speeds of the slower drive? Would setting RAID in UEFI offload that work to the controller instead of FreeNAS for some further work offload? Thanks.

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

      I was wondering that too. If PCI passthrough is problematic, could we just create logical volumes for each drive and then pass that drive to truenas.

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

    Does someone tried to compare the performance/stability/... for virtualization between TrueNAS and XCP-ng (or other type 1 hypervisor)?
    Because so far I understand, it's better to have TrueNAS natively running and mainly I'll run simple stuff like PLEX, Nextcloud and some game servers like Minecraft, TheForest and so on...
    But I'm also afraid if some software/games which requires a GPU (tested before on Virtualbox SVGA worked fine, FYI) and now I'm questining myself whether I should continue with XCP-ng and TrueNAS on VM OR TrueNAS natively and anything else through bhyve on TrueNAS (if needed)

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

    What PCI passthrough hardware have you had issues with? Any particular hba pci card?

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

      I'd be interested to know this too. Coupling FreeNAS (which is already very picky about hardware) with XCP-ng sounds like it could introduce a problem for various hardware. I've been running FreeNAS 11.x virtualised in XCP-ng with an LSI 9207-8e passed through for a while without problems, but FreeNAS has great support for LSI HBAs, and I made sure to update the firmware on the 9207-8e to version 20.00.07.00, because I read that earlier versions (even including 20.00.06.00) had certain bugs which caused issues in a variety of situations.

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

      I'd like to know as well! According to the FreeNas Documentation, PCI passthrough should work very well with most LSI HBA's.

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

    I've set up my XCP-NG/TrueNAS following this guide and it's working great, the only issue I'm having is that when the host reboots it can't reconnect the NFS share SR (since the TrueNAS VM isn't running yet) but even when the VM is finished booting the SR doesn't reconnect until I do it manually. Is there a way to get the XCP-NG to keep trying to reconnect the SR or even a timed script if it fails on boot? I've been searching around and I can't find anything.

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

      I have never tried but you could probably put together a script in XCP-NG on a cron job.

  • @andrewr7820
    @andrewr7820 3 ปีที่แล้ว

    Is it possible that poor throughout was a result of resource starvation (RAM) in Dom0? Or perhaps context switch thrashing?

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

      A lot of reasons: 1. it's not real PCI passtrhough (extra layers). 2. Your SR is itself on top of a VM, on top of storage layer, on top of drives. So many layers explains easily the result (especially with the cost of each context switch now). You can't achieve great perfs with that setup.
      Also, it's not safe until we got "storage domains" (booting first the storage domain/VM and only then moutint the SR). Without this, on reboot, you won't be able to reach the NFS until the VM booted. It will require a manual intervention to "connect" the NFS after the TrueNAS VM is up.
      In the end, it's good for experiments, but not for real usage. TrueNAS in a VM serving NFS for other stuff is a valid case however. But not serving itself as an SR for the host its running on it.

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

      Yes! When it comes down to production performance, having TrueNAS on real hardware acting as the back end for storage for XCP-NG is the best way to go.

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

      @@LAWRENCESYSTEMS What I do, is install Dom0 on a SATADOM and presenting my disk controller via PCI passthrough by hiding it from Dom0 and attach it to my VM. Look inside XCP-NG on how to present real hardware such as controller!

  • @Chris-hy6jy
    @Chris-hy6jy 3 ปีที่แล้ว

    It would have been nice to see some iperf results between a VM and the Truenas VM directly... without the SR side of things I mean. Can't help thinking that's adding complications and overhead.

  • @troy.s
    @troy.s 3 ปีที่แล้ว +2

    Too bad we can't use Xen with FreeNAS/TrueNAS as Dom0. What an incredibly powerful combination that would be!

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

      Agreed. Hmmmm... IIRC, TrueNAS Scale is on Debian, XCP-NG is on CentOS. Perhaps XCP-NG on Debian leads to possible convergence?
      True-XCP-NAS-NG? A guy can dream...

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

    is it ok to run truenas and pfsense in same server with vm.?

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

      I think TrueNAS in a VM is a bad idea, pfsense has some limitations.

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

      @@LAWRENCESYSTEMS thank you for your answer.