5 ms·
This is basically the inverse of WSL2, which I personally think makes it a much better proposition for the bulk of truly techie WSL users.
by ComputerGuru 5y ago
This is basically the inverse of WSL2, which I personally think makes it a much better proposition for the bulk of truly techie WSL users.
- Tenoke 5y agoIf you are using wsl because of heavy windows programs typically like games then I guarantee this won't work as well as a wsl setup. It is cool but it doesn't seem like enough for me to move away from wsl (which I'd like to do if there was true and simple 'reverse wsl')
- encryptluks2 5y agoLook into Intel GVT-G... Otherwise your best bet is Wine.
- Tenoke 5y agoI've used wine (typically via playonlinix in recent years) but it's hit and miss. Online games aren't always happy with it (especially with cheat detection), performance is sometimes worse (especially on older hardware) and sometimes you can make it work but only if you spend a few hours fixing things. The best way to do it is to have a seperate GPU that you pass through fully to the Windows VM - a friend has that setup - which works perfectly but then you can't use that gpu in Linux and I don't particularly think it's worth it for me to have multiple GPUs when wsl gives me 99% of what I want with minimal setup.
- metadat 5y agoPassthrough-capable video cards aren't cheap or that easy to find and actually get working properly. It's 100% a nice dream, but no single major virtualization vendor supports it for desktop purposes intentionally. It's looking like for the foreseeable future it'll continue to be an expensive and royal pain in the behind. Of course, YMMV, I recall seeing that linus derp tech guy YouTube make it work one time. Good luck keeping it working properly in the long haul. I feel I've already learned this the hard way, have several spare Supermicro servers to show for the result of what I consider to be a failed project. Instead, I maintain a separate windows-only machine for such occasions. Takes up very little extra space or time. Would love to hear from other folks who use this on the daily.
- encryptluks2 5y agoIntel included support on all their consumer chips until recently I believe. The mediated passthrough is different than full passthrough like you are probably thinking.
- WhyHere 5y agoThis all feels either out of date, or just incorrect. You can use consumer cards for this. Both Nvidia and AMD consumer cards. Nvidia drivers work fine now, and don't require any workarounds (they previously "blocked" VM's with their driver, but was trivial to workaround). AMD have a few hardware quirks, but that can typically be worked around too. Though you're best going with Nvidia as it's more straightforward. It also seems that a lot of virtualisation software supports it (libvirt/qemu, vmware esxi, proxmox, xen, probably a few others). It's typically also, set and forget. Once it's configured, you're good to go. There's not much of "keeping it working properly in the long haul". I've had my setup for about 4 years or so now. Even through software and hardware changes.
- metadat 5y agoThe trick may be in "the workarounds". It sounds like you're a pro, maybe I'm just not that good at configuring teh vmwares / virsh / xen / qemus.
- vadorovsky 5y ago"The workaround" is to add few lines in VM's XML, which are available in pretty much every VFIO / GPU passthrough guide (in "code 43" sections). Like these ones: https://mathiashueber.com/windows-virtual-machine-gpu-passthrough-ubuntu/ https://mathiashueber.com/windows-virtual-machine-gpu-passth... https://linustechtips.com/topic/978579-guide-linux-pci-gpu-vfio-passthrough/ https://linustechtips.com/topic/978579-guide-linux-pci-gpu-v... https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF And you don't have to do it for the most of AMD cards and the newest NVIDIA cards. Unfortunately that's not beginner-friendly, I know, but that's the problem of VFIO in general - you can't really do it without being comfortable with terminal, editing configuration files etc. It would be cool to make it automatic somehow, but that would require making some tool(s) for all the preparatiary work (assigning vfio-pci driver, building united) and adding features to virt-manager (to be able to all the stuff graphically, without modifying XML). But anyway, in your original comment you said that passthrough is not possible with consumer GPUs, which is simply not true. It's possible with pretty much every consumer card.
- metadat 5y agoIt was all fun and games until I couldn't compile a go program using the Windows Linux subsystem, showing it's really just a toy. Too many compatibility issues (go check out their GitHub issues) means I don't want anything to do with it.
- jchw 5y ago- WSL2 will not have problems like that, and I believe they were long fixed in WSL1. - I love Go but the Go runtime is a pretty big snowflake, its one of the few non-libc users of the Linux syscall interface . Also, I think they fixed it on the Go side as well, for good measure, though I could be wrong.
- metadat 5y agoThe important point is, don't "give me Linux" that then can't cover the common trendy tech projects. If it doesn't work, it's not Real Linux, and I ain't got time for that. <ms-rant> Plus, Microsoft- who needs em? Not a pleasant daily driver. My entire family already accidentally "upgraded" to windows 11. Ever since, they've fallen into a perpetual zombie-like state of confusion with regard to their windows computers and what is happening on them. What is good, better, or worse? *shrug* </ms-rant> I'd much rather cast the MS bits off to a lowly second-class Hypervised Cassowary VM. Long Live CASSOWARY!
- jchw 5y agoWSL2 does give you the real Linux kernel, if you want to have Windows with the real-deal Linux kernel. You’ll miss some things inherent to using a VM, but that’s probably the same for any comparable solution. That said, I’m certainly not trying to convince anyone to use Windows. By all means, run Linux as your desktop if you want to. I do.
- MikusR 5y agoWSL2 is real linux.
- emptysongglass 5y ago
- deleted 5y ago[deleted]
- loudmax 5y agoOf course it is. Windows is a proprietary system that only a single company has the keys to. You trade control for convenience.