Xenserver Hard Drive / Whole Disk Passthrough with XCP-NG
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
Thanks so much! With your help I've been able to virtualize my entire setup.
You sir are the man. I am very glad I have been subscribed as long as I have :)
This was exactly what i needed awesome Thanks.
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.
Again, THANK YOU, realy great video. Please more 🙏
AWESOME!!! OMG Thank you! Now do a NIC!
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.
great, and i learned about cfdisk tool :)
Give this man a shield, he deserves it
Thank you.
Hi Tom!
Is there any way to passthrough the device by-id (like proxmox does) as device names like /dev/sda can change?
Hi Tom, thanks for your great videos!
Which raid are you using ? Let’s say for a VDI server?
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 :-)
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.
good point
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.
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.
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...
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
The command is correct. But it wouldn't identify my drives on rescan :(
update, TYPO, spell check FTW. Thanks!
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.
I assume you are running Windows and if that is true then czcams.com/video/nGfx5upOk8c/video.html
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
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.
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
@@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!
Does this work for passing through USB devices?
Can a LV be use a disk pass through?
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
Thanks and yes, I do it better in more recent videos.
@@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 :)
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?
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??
That should work
Does this passthrough smart?
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)
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.
are snapshots effected by passthrough of storage controller to freenas and having freenas control the drives directly?
freeNAS doesn't have any issue as it has direct control over the drive
@@LAWRENCESYSTEMS great, thank you.
best thing to do us /dev/by-uuid instead of /dev/sdX
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).
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.
@@Chris-hy6jy Oh! I thought this is a XAPI problem. Thanks for the heads-up!
Does the passthrough include s.m.a.r.t?
Don't think so
@@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?
Can you sand me the command line to install xcp-ng cheaper
First comment and like😎