-
Notifications
You must be signed in to change notification settings - Fork 74
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
Nested Virtualisation (XCP-ng hosting other virtualized hypervisors) doesn't work with Hyper-V #105
Comments
Please double check your BIOS have all the virt options enabled. |
Does XCP-ng displays an error message when you try to install it in a nested VM? (it should tell you it can use HVM in the installer screen). Also, double check you are using (in the nested VM) the same amount of RAM (dynamic min = dynamic max = static max) |
Will try XCP tomorrow. Ram is static. /Mobile |
argh, fudge.... I'll se if I can get'r'done tomorrow. I tried starting the installer on an existing VM, it got to where i select the install disk. But the disk doesn't have enough space (32gb). Sorry. |
well, since we don't have mission critical servers like most other companies - i went ahead and upgraded the whole pool via http. |
Well, it works with XCP-ng. |
And another thing - why the heck doesn't xcp-ng come with xcp-tools preinstalled? :) |
|
It would seem that the hyper-v role tries to update the CPU's microcode. // https://communities.vmware.com/thread/525611 quote:: |
Yes, this is probably the reason. If you want more insights, you can always post on the Xen mailing list, because it's a very specific and "low level" Xen question :) |
Does this make any sense to you when it comes to XCP? as far as i can see, commit:58f5bcaf solves the problem. |
|
oh, I'll give it a whirl. |
This is a poopshow, I'm giving up - I've been banging my head against the wall with xe param-set, xapi and very last, but not least, poorly formatted XCP-template-xml-export-files. In my struggle to set the CPU mask, i noticed that you set the exp-nested-hvm flag when changing nested virtualisation in XOA, not HAP and NestedHVM - why is that? Both does seem to work, but I just figured the the EXP-Nested-HVM flag would be depricated when it is no longer experimental. :) |
This is a long story. You can find "guides" for Xen (the hypervisor) but XS/XCP-ng aren't just Xen but the whole thing built around. That's why I said I have no idea how to pass cpuid. If it's not exposed in XAPI, then you are doomed to dig for days on how to do so. |
Hi, and thank you. Before the feature was added to XOA, I tested with xe param-set. Adding NestedHVM and HAP worked just like the Exp-nested flag. I just figured that EXP-nested would be removed from Xen one day. /edit |
And I think, that someone more skilled than me in the art of XML - would be able to create a XCP-template with the CPU-mask included. |
Maybe there is an option is "other vm param" of VM object that's read by Xen, try to dig on Google. |
CPUID can be added anywhere, without any sign of verification that it was the right place. xe vm-param-list uuid=3ea123c5-f36f-93f3-6979-802cc57c6dcd|grep cpuid platform (MRW): timeoffset: 0; exp-nested-hvm: true; cpuid: ['0x1:ecx=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']; videoram: 8; hpet: true; device-model: qemu-upstream-compat; apic: true; device_id: 0002; cores-per-socket: 2; pae: true; vga: std; nx: true; viridian_time_ref_count: true; viridian: true; acpi: 1; viridian_reference_tsc: true |
Maybe something you should look into: the article at (https://wiki.xenproject.org/wiki/Nested_Virtualization_in_Xen) I don't know if the flag you set en XO (exp-nested-hvm) sets both of these options, I wouldn't even know how to test it either. |
Again, Xen is the engine. We don't really have control on what's passed to the hypervisor except via XAPI. Using the nested flag should enable everything in the hypervisor parameters on VM boot. |
Sorry to bump an old issue, however, it seems too me that because of nested virtualisation issues, WSL2 on Win 10 does not work (WSL1 works). When I try, for example, import a distro as WSL2, I get the following error (same thing happens when I try to install a fresh distro image): I have enabled nested virtualisation, also in BIOS I have enabled virtualisations > wsl --import centos_7_v2 "$env:userprofile\centos_7_v2"
"$env:userprofile\Desktop\centos_7.tar" --version 2
Please enable the Virtual Machine Platform Windows feature and ensure virtualization
is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install Also note that I have enabled all required Windows features, even Hyper-V, but that error still persists. Is there anything I could do in order to make WSL2 work? Thanks. 😃 |
I also am trying to figure out how to get wsl2 working in a windows xen guest. Any updates? |
OK, the VMs get ACPI devices, but Hyper-V requires an APIC and not an ACPI... |
Thanks, @michael-newsrx! Thanks to your link I have found this website that I can run (as an admin) Note that the website I linked above states (implicitly) it should not work on Win 10, however it worked on Win 10 x64 2004 Build 19041.746. Also note that the Microsoft documentation navigates us using Update: Could this setting be set in XCP VM configuration? It’d be awesome! 😉 |
Hrm.. I ran the bcdedit command, rebooted, but it still shows ACPI and not APIC ? Do I need to do something to the VM's configuration via xe? |
Actually, neither I have Anyway, I have just noticed that there is warning emblem on Windows cannot initialise the device driver for this hardware. (Code 37)
The request is not supported. I have no idea how could I solve this. On the other hand, I successfully run Update: Similar issue for VMware: https://communities.vmware.com/t5/VMware-Fusion-Discussions/Driver-conflict-MS-Hyper-V-Virtual-Machine-Bus-Provider/td-p/939114 BTW, I’ve just tried to uninstall Then I restarted the VM, removed Hyper-V from system features, restarted the VM, installed Hyper-V into system features, restarted the VM. It didn’t help to solve the issue. Also, based on a comment from @lurendrejer, I double-checked if I have set |
Any updates on this? |
Hi All I'm also struggling into getting Hyper-V nested into XEN but I get this message: this is my xen VM configuration: boot='cd' name = "nlentsv1001" memory = 8192 vif = [ 'type=vif,bridge=blan,mac=00:16:3e:0f:bb:11' ] disk = [ 'phy:/dev/vmstor/nlentsv1001,xvda,rw','file:/mnt/iso/20348.169.210806-2348.fe_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso,hdc:cdrom,r','file:/mnt/iso/winpvguest.iso,hdd:cdrom,r' ] vnc = 1 usbdevice='tablet' on_poweroff = 'destroy' in the event viewer I get this error: |
Hi, XCP-ng isn't just Xen. Anyway, I think we can consider HyperV nested in Xen broken at the moment. Hopefully, someone or some company will invest into it next year. We'll continue to monitor the situation. |
It's been more than a year, has any progress been reported upstream on this? It is starting to make XCP-ng look like a dead project for Windows guests as I understand M$ continues to incorporate more and more into their hypervisor component as a requirement. We are reaching the point in the small office I work in that we will need to try and find an alternative solution as we can't run WSL2 or Docker in Windows 11 or Windows 10. Any hope? |
It's not really nice to hear we are looking like a dead project 😞 This part is a responsibility of the upstream (Xen), which we are contributing to, sure, but we are not alone. Also, this is far from being a simple "problem"/limitation to fix. Feel free to ask and push for your requirement at https://matrix.to/#/#XenProject:matrix.org |
I understand the feeling about looking like a "dead project", but, (IMHO) the stack is losing usability and relevance because of this. Sorry. FYI: Really not interested in signing up for another online service. I was only wanting to know if anything had been reported or noticed from upstream. Based on your response, I assume the issue isn't really on any contributor's radar and probably won't be anytime soon. May you and yours enjoy prosperity.
|
Note: I'm not a Xen maintainer but I did inquire about the status of nested virt plans at the beginning of Feb in Matrix (thread). The existing nested virt implementation is described as experimental. The maintainers are currently working on fixing this (Nested Virt Revamp effort). They are starting with revamping AMD support and will later work on the Intel implementation. In terms of time line, maintainers mentioned that it would likely take 2 years. That 2 year time frame includes what it would take to productionize the new solution (includes testing time and addressing bugfixes). From my anecdotal evidence, it also seems that those involved with QubeOS are very keen on these enhancements since Windows nested virt support would benefit their project greatly. So upstream is working on it and understands that this is an important feature to users from what I can tell. |
The inability to run WSL2 on Windows guest machines is becoming more and more of an issue. Is there any type of kludge, registry setting, other, that can be done while waiting on this long term fix to get nested virtualization working in Windows? It seems to work for other OS's? |
There is no shortcut, but it's an active topic in the Xen community. Everybody is aware on this issue becoming more pressing. We'll continue to monitor the situation and contribute where we can. |
I've been fiddling with nestedHVM and HAP via cli for quite some time, without much luck. Thinking that I was the problem, I told no one.
Now that XenOrchestra supports these options (enable nested virtualisation) - and it still doesn't work i was thinking that something might be up with XCP-ng.
XCP-ng 7.6
CPU= X5670 (supports SLAT)
Hardware platform: HP BL640c G7
Installing Hyper-V and creating a new VM gives me the following error:
I've tried different CPU's
XCP-ng 7.5
Different VM's
Without any luck.
A nested VMware gives the same (unable to start vm's) error and just freezes up.
The text was updated successfully, but these errors were encountered: