-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev SR not working after upgrade to XCP-ng 8.3 #666
Comments
And pinging @benjamreis regarding pass-through. |
The |
@stormi thank you for the reply. How would I test this again, is there a patch released, or would I install again from the iso, then update with yum? |
No, no patch released that would address this kind of issue. If you can reproduce on a test host, or find a way for us to reproduce, we can try to find the cause. |
Hello Stormi, Since this is my only set-up and I did not have the storage to backup my data, I was somewhat afraid to test it further on this system. What I did:
Since this is also not a supported way to pass the drives to TrueNas, I am in the process to upgrade my system to passing the disks with a HBA. I hope this is of any help, and thank you for an amazing product! |
I've just faced this exact issue. I've already commented here also. My use case is a server that doesn't support IOMMU. By the sound of it, I should be able to get it working if I install 8.2.1 instead, which would be an acceptable temporary workaround for me. All my other nodes are still running 8.2.1 anyway, this was my first foray into 8.3. I'll test out the downgrade in a few days. EDIT: I've since made the move to 8.2.1. Making the exact same configuration worked on the older release, so there's definitely something broken specific to 8.3. |
Using XCP-ng 8.2.1 is a temporary solution, but it will only last while XCP-ng 8.2.1 is supported (well, you can continue to use it after it's EOL, but without security fixes).
@Nambrok Did you reach a conclusion regarding this issue? |
@stormi Sorry, I haven't had time to look yet. I will be investigating when I have time. |
@jeremfg could you give us the exact commands that you tried on XCP-ng 8.3 and that didn't work? |
Does this mean there is no way to pass through disks with 8.3? (PCI passthrough of an HBA doesn't count) |
@stormi If you need to see how I use this code, you can find the reference here in function |
@blackliner But a whole disk as a udev? Nope, doesn't seem to work anymore. The simlinks to /dev/sd[a,b,c] don't show up in the SR. I had to revert back to the latest 8.2.1 for now. |
So, @Nambrok will provide details if needed, but here's the situation I understood from talking with him:
From here, how to go on?
|
No, that's what broke for me, and makes a distinction between 8.2.1 and 8.3. I can no longer pass a whole disk, they don't show after a sr-scan. My symlinks point to /dev/sda, not sda1 or something. Honestly, I had no ideas it was possible to pass a partition until your wrote all of this. The behavior described about following symlinks doesn't match my experience, quite the opposite. But I could be wrong in my interpretation, being familiar on the subject only as a back box and my own experiments. True. It is and has always been a hack, not officially supported. So should it be supported? All i know is I've been reduced to using this hack, being choiceless due to the hardware I have. |
(Regarding Nested Virt, proper support is still quite a long way ahead, but you'll probably be pleased to learn that we found a way to bring back to 8.3 a similar level of support of the nested virtualization as we had in 8.2.1, that is: partial, unsupported, but working for some use cases.) |
Do you still have a 8.3 host you could test on?
Just with python in 8.2.1 |
Sadly no. I would have to take my home network offline for quite a while, manually migrate a few VMs, open the hardware to swap boot drives, etc... to make any tests with 8.3 again. In other words, it's something I might consider in the future, if there's a strong enough argument for it, but it'll be quite the hassle for me. Still, here is what I'm getting on 8.2.1, where it works: >>> sysdevice.stat("sda")
{'bus': 'SCSI', 'hwinfo': 'ATA model ST24000NM000C-3W rev SN02 type 0', 'bus_path': '0:0:0:0', 'size': 24000277250048L} Based on the code of the |
Yes, it's supposed to work the same in 8.3 when you give it a base device. |
Are you implying you've made a similar test yourself, and saw it working on 8.3? I was under the assumption it's pretty easy to reproduce, and would behave the same as me, whatever SATA drive you used. |
I only tried with a NVMe device since I don't have SATA driver available. |
I'll try a few things to see soon. |
Yeah, I can confirm it does work a NVMe as I remembered.
I'll try to see if I can stole a machine with a free SATA drive to test |
FWIW, this doesn't work for me on an fully patched 8.2.1 host with a USB-connected 8TB drive. Creating the SR works fine but the process always errors when scanning the SR with SR_BACKEND_FAILURE_46. |
@dockwell-jenner hi! Can you be more specific on what doesn't work exactly, at which step? |
@olivierlambert this is what I see:
|
After a recent patch and reboot of my 8.2.1 host, and a physical disconnect/reconnect of the USB-connected drive, the above issue I mentioned is no longer there. Just recording for prosperity, |
Hi
After updating to 8.3, my SR did not work anymore.
I have created it like this:
This results in disks with an unrecognized bus type and 0B size.
I am therefore not able to assign this sr to a vm.
Recreating the SR in a similar manor did not help as well.
The text was updated successfully, but these errors were encountered: