Xenserver Hard Drive / Whole Disk Passthrough with XCP-NG

Sdílet
Vložit
  • čas přidán 20. 01. 2020
  • lawrence.video/xcp-ng
    Amazon Affiliate Store
    ➡️ www.amazon.com/shop/lawrences...
    Gear we used on Kit (affiliate Links)
    ➡️ kit.co/lawrencesystems
    Try ITProTV free of charge and get 30% off!
    ➡️ go.itpro.tv/lts
    Use OfferCode LTSERVICES to get 5% off your order at
    ➡️ lawrence.video/techsupplydirect
    Tesla Referral Program Offer
    🚘 www.tesla.com/referral/thomas...
    Lawrence Systems Shirts and Swag
    👕 teespring.com/stores/lawrence...
    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...
    Google Fi Service Referral Code
    📱g.co/fi/r/TA02XR
    More Of Our Affiliates that help us out and can get you discounts!
    ➡️ www.lawrencesystems.com/partn...
    Twitter
    🐦 / tomlawrencetech
    Patreon
    🔗 / lawrencesystems
    Our Forums
    🔗 forums.lawrencesystems.com/
    GitHub
    🔗 github.com/lawrencesystems/
    Discord
    🔗 / discord
    Our Web Site
    🔗 www.lawrencesystems.com/
    forums.lawrencesystems.com/t/...
  • Věda a technologie

Komentáře • 51

  • @DavidDHahn
    @DavidDHahn Před 4 lety

    Thanks so much! With your help I've been able to virtualize my entire setup.

  • @user-il6ei7mh5o
    @user-il6ei7mh5o Před 2 lety

    You sir are the man. I am very glad I have been subscribed as long as I have :)

  • @eliasadam9232
    @eliasadam9232 Před 2 lety

    This was exactly what i needed awesome Thanks.

  • @daninmanchester
    @daninmanchester Před 3 lety

    Brilliant. Wish I'd seen this first. I'm testing my Blue Iris in xcp-ng and just wanted to pass the original storage drive through as a quick fix.

  • @johanneswagner2976
    @johanneswagner2976 Před 4 lety

    Again, THANK YOU, realy great video. Please more 🙏

  • @chromefinch
    @chromefinch Před 4 lety +5

    AWESOME!!! OMG Thank you! Now do a NIC!

  • @vitzikmund9149
    @vitzikmund9149 Před 2 lety +9

    Hello, Using this passthrough is not at all fit for any production as it has number of limitations not mentioned in the video (unstable disk names, metadata retrieval issues).
    I've personally tested there's an identical performance with RAW VDIs on local LVM SR spanning the device. This passthrough only brings false hopes to the general public, while it's not really a passthrough (unlike w/PCI passthrough, Dom0 is still involved) and there's an equally performing supported solution to the problem.

  • @MirkWoot
    @MirkWoot Před 4 lety +3

    great, and i learned about cfdisk tool :)

  • @coolmn786
    @coolmn786 Před 3 lety

    Give this man a shield, he deserves it

  • @qwerty74
    @qwerty74 Před 3 lety

    Thank you.

  • @lazarosmoisidis6118
    @lazarosmoisidis6118 Před 4 lety +3

    Hi Tom!
    Is there any way to passthrough the device by-id (like proxmox does) as device names like /dev/sda can change?

  • @biggr8433
    @biggr8433 Před 4 lety

    Hi Tom, thanks for your great videos!
    Which raid are you using ? Let’s say for a VDI server?

    • @lanceeilers5061
      @lanceeilers5061 Před 4 lety

      anyone you chose when setting up your freenas vm , along with the number of drives respectively , Raid 6 or RAIDZ2 (2 drive redundancy) would be preferable :-)

  • @siscokid11
    @siscokid11 Před 4 lety +5

    Hi Tom, great video. However, I would recommend naming the hard drives within xcp-ng based on the serial number of the drive rather than the Linux device name. On several occasions I have seen the Linux device name change for a hard drive on Linux system and it would be a bummer if you pulled the wrong drive when trying to repair a software raid.

  • @burningglory2373
    @burningglory2373 Před 3 měsíci +1

    So maybe it's just me (I am new), but I copied the xe command over, and added the symbolic links to my drives with a ln -s /dev/s** and a ls shows that the links were created successfully, but xo does not show the drives existance in the passdrives storage pool.

  • @afroman1242
    @afroman1242 Před 4 lety

    Do you need a processor that supports PCI pass through (Intel VT-d) for this to work? I have an old board with an Intel CPU that does support virtualization but does not have VT-d so no PCI pass through.

  • @phalcon23
    @phalcon23 Před 4 lety

    Is it possible to just a XCP-NG hard drive management? I'm at a loss of how to add and remove drives... I initially installed it so all 6 of my hard drives were one giant LVM (2x sdd, 2x500gb sas, 2x3gb sas...
    I want them all seperte so I can you know put OS to the ssd and use the others for storage...

  • @fairsitetechnologies9813
    @fairsitetechnologies9813 Před 3 lety +2

    If your host is already part of a pool you will need to add in the host-uuid='uuid' to the xe command. You can find the UUID by cat /etc/xensource-inventory and use the Installation_UUID

    • @mspencerl87
      @mspencerl87 Před rokem

      The command is correct. But it wouldn't identify my drives on rescan :(

    • @mspencerl87
      @mspencerl87 Před rokem

      update, TYPO, spell check FTW. Thanks!

  • @diegogarriz3857
    @diegogarriz3857 Před rokem

    Hi Tom. Great work !. I am a noobie in xcp... VM disks are always IDE in this hyperadvisor ?. There is a way to define SATA or SCSI like in proxmox or vmware ?. Thank in advance.

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  Před rokem +2

      I assume you are running Windows and if that is true then czcams.com/video/nGfx5upOk8c/video.html

  • @lanceeilers5061
    @lanceeilers5061 Před 4 lety

    Hi Tom , brilliant demo - I am blown away by this , in my mind I am thinking xcp-ng with open stack inside and building a freenas box inside the openstack with internal and external connectivity (nested virtualization) , or xcp-ng with pfsense vm controlling a freenas vm setting up iscsi with VLANS on 10G all with hhd pass thru ... keep them coming I am learning alot Tom very very awesome , thanks a bunch and keep smiling best regards Lance

  • @pepeshopping
    @pepeshopping Před 4 lety +3

    Just like in ESXi, this is NOT truly passthrough as there is still the added latency of the OS layer, but it works.
    I prefer to simply install a SATA controller for the disks that I need passthrough so there is no added latency etc.

    • @teberon
      @teberon Před 4 lety

      Do you have more information on this? I am about to build my home server and want to install FreeNAS within XCP-NG and would like to add my hdd this way

    • @vitzikmund1884
      @vitzikmund1884 Před 2 lety

      @@teberon I suppose @pepeshopping means to add a dedicated sata controller to the machine and plug the desired disks to it, then use PCI passthrough for the whole controller to the guest OS. Which is indeed a nice idea!

  • @ThePoorInvestor
    @ThePoorInvestor Před 3 lety

    Does this work for passing through USB devices?

  • @falazarte
    @falazarte Před 3 lety

    Can a LV be use a disk pass through?

  • @JPEaglesandKatz
    @JPEaglesandKatz Před 2 lety

    Love the videos... Although one suggestion... Could you perhaps do the terminal stuff in a regular (not full screen window).. ATM you are typing right in the pause/youtube/progress bar and it is almost impossible to follow what you are typing on the bottom of the screen when pausing the video.... just a small thing. Keep on rocking!!! Been through proxmox, esx7 testing and now xcp-ng... So far xcp-ng looks promissing on a ryzen 3600 system

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  Před 2 lety

      Thanks and yes, I do it better in more recent videos.

    • @JPEaglesandKatz
      @JPEaglesandKatz Před 2 lety

      @@LAWRENCESYSTEMS Yeh I just realised today that that was a video from a little while back.. It is no biggy at all as you do a a great job in explaining it anyways. these days I find myself checking every day if you have a new video. Thanks again for sharing your knowledge. Don't know where you find the time hehe :)

  • @MrFunchess1639
    @MrFunchess1639 Před 4 lety +1

    Tom, lets just say I created a freenas zpool with this setup, can I then remove the drives and attach it to another freenas instance?

    • @pepeshopping
      @pepeshopping Před 4 lety

      Eric Funchess
      Mention 1 reason why this drive should be different than any other ZFS drive that you can export and attach to another FreeNAS machine??

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  Před 4 lety

      That should work

  • @davidg4512
    @davidg4512 Před 4 lety

    Does this passthrough smart?

  • @wanrim3294
    @wanrim3294 Před rokem

    Hello, thanks for this video ! In 2022 is XCP have a better way to do disk passthrough ? However i have an error when i do a backup (all types include snapshots) a vm with disk passthrough : SR_OPERATION_NOT_SUPPORTED. I must disconnect first the disk to the VM, backup, and roll back. Do you have an idea to solve this problem ? (i try [NOBAK] before disk name but it don't work)

    • @chrismartin8820
      @chrismartin8820 Před 2 měsíci

      AFAIK backup cannot work with passthrough disks , the only way (to backup the VM) is effectively to disconnect the PT disk. Another option would be to mount 2 TB partitions via XOA and merge them to create a single volume , in this situation the [NOBACK] option will run.

  • @wildmanjeff42
    @wildmanjeff42 Před 4 lety

    are snapshots effected by passthrough of storage controller to freenas and having freenas control the drives directly?

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  Před 4 lety

      freeNAS doesn't have any issue as it has direct control over the drive

    • @wildmanjeff42
      @wildmanjeff42 Před 4 lety

      @@LAWRENCESYSTEMS great, thank you.

  • @davidg4512
    @davidg4512 Před 4 lety

    best thing to do us /dev/by-uuid instead of /dev/sdX

  • @Chris-hy6jy
    @Chris-hy6jy Před 3 lety +1

    Does anyone know how to do this using /dev/disk/by-id instead of /dev/sdx? I've tried this but the disk size is not recognised in XOA and therefore it won't allow you to attach it to the VM (or rather it doesn't show up in the list of available SRs).

    • @Chris-hy6jy
      @Chris-hy6jy Před 3 lety +2

      Just to answer my own question... the method that Tom mentions here works but won't survive a power-cycle if you add extra drives or change your drive order. The device names in /dev can end up being changed by udev. The best way I've found to do this is use /dev/disk/by-id/ata-xxxxxxx instead. The issue is that XO isn't able to show the disk size and as a result, doesn't allow you to attach the HDD to a VM. The solution for me at least was to fire up XCP-ng Center. This DOES allow you to add the drives. I was then able to pass through 2 x 2TB drives to Windows Server 2019 Storage Spaces.

    • @vitzikmund1884
      @vitzikmund1884 Před 2 lety

      @@Chris-hy6jy Oh! I thought this is a XAPI problem. Thanks for the heads-up!

  • @user-yz1mx7en4z
    @user-yz1mx7en4z Před 4 lety +2

    Does the passthrough include s.m.a.r.t?

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  Před 4 lety +2

      Don't think so

    • @TheRowie75
      @TheRowie75 Před rokem

      @@LAWRENCESYSTEMS under vmware esxi smart works with my 4x3TB WDRed Disk attach to my Openmediavault! Now after switching to xcp-ng it doesnt works!. why is this so?

  • @itDahdoula
    @itDahdoula Před 3 lety

    Can you sand me the command line to install xcp-ng cheaper

  • @Mr_nah
    @Mr_nah Před 4 lety

    First comment and like😎