Most active commenters
  • xienze(6)
  • kuschku(4)

←back to thread

Ubuntu on Windows

(blog.dustinkirkland.com)
2049 points bpierre | 26 comments | | HN request time: 0.203s | source | bottom
Show context
zymhan ◴[] No.11390932[source]
"Linux geeks can think of it sort of the inverse of "wine" -- Ubuntu binaries running natively in Windows. Microsoft calls it their "Windows Subsystem for Linux"."

I find it amazing that you can have such a functional Ubuntu environment by translating system calls. Microsoft does have the advantage of Linux being open-source I suppose, while the Wine project had to reverse engineer DLLs. Or have you supply them on your own.

replies(9): >>11391001 #>>11391011 #>>11391074 #>>11391084 #>>11391105 #>>11391166 #>>11391290 #>>11391798 #>>11391866 #
1. dec0dedab0de ◴[] No.11391074[source]
I would rather have the opposite. I would even pay for an official "Windows on Linux". There is a handful of games I would like to play, but other than that I have no interest in windows.
replies(4): >>11391181 #>>11391198 #>>11391351 #>>11392220 #
2. xienze ◴[] No.11391181[source]
Totally doable. Use KVM to virtualize Windows and (the important part) make sure your CPU and motherboard support VT-d. Then you can pass a graphics card (separate from the one you run Linux with, naturally) to the VM and get >95% of native performance. There's lots of videos of folks doing this.
replies(4): >>11391205 #>>11391210 #>>11391473 #>>11391500 #
3. wernercd ◴[] No.11391198[source]
The problem is that the user-base for Windows on Linux probably isn't worth Microsoft's time...

While it seems like it is worth Microsoft's time to keep people on Windows.

I for one look forward to having all my vulnerabilities in one place... Linux, windows, server, desktop...

4. plexicle ◴[] No.11391205[source]
Hi. Do you mind linking one?

Thanks. :)

replies(1): >>11391275 #
5. wernercd ◴[] No.11391210[source]
That's still "VM" not "Native".

You aren't running them "side by side"... you are running them "One inside the other".

Not exactly an apple-to-apple comparison.

replies(3): >>11391235 #>>11391363 #>>11391437 #
6. xienze ◴[] No.11391235{3}[source]
The performance hit is so negligible on modern hardware that the distinction doesn't really matter.
replies(3): >>11391346 #>>11391373 #>>11391476 #
7. xienze ◴[] No.11391275{3}[source]
Sure. Here's a guide: https://www.youtube.com/watch?v=w-hOr44oBAI

Here's the famous Linus Tech Tips 7-in-1 video: https://www.youtube.com/watch?v=LXOaCkbt4lI

8. geofft ◴[] No.11391346{4}[source]
And the performance hit is almost certainly less than the relative performance of a "native" reimplementation of a foreign OS's syscalls that doesn't benefit from the decades of engineering work that went into making that foreign OS perform well.
9. zymhan ◴[] No.11391351[source]
I cannot possibly imagine a world where Microsoft cannibalizes their Windows Server sales by creating a Windows Emulation Layer for Linux.

Crossover is probably the best you'll get: https://www.codeweavers.com/products/crossover-linux

Otherwise, if you only need Windows to game, I'd highly suggested PCI Passthrough so that you can use your GPU in a Windows VM: https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVM...

replies(1): >>11391914 #
10. akiselev ◴[] No.11391363{3}[source]
That's a distinction without a difference if you're using a modern processor with special virtualization silicon like Intel VT-i/x/d or AMD-V. With these features, IO and memory management is completely isolated between different virtual machines at the hardware level so there is almost zero overhead. With VT-d, which allows you to dedicate DMA channels to a guest VM, you can completely bypass the the host for all types of hardware including PCI/e, USB, etc.
11. kuschku ◴[] No.11391373{4}[source]
Except, it does matter.

Not having a unified filesystem, not having a unified window manager, etc are quite some issues.

replies(2): >>11391395 #>>11391429 #
12. dllthomas ◴[] No.11391395{5}[source]
Those are not meaningful issues for the stated use case of playing some handful of games.
replies(1): >>11391949 #
13. xienze ◴[] No.11391429{5}[source]
As another posted pointed out, if you just want to bring up a VM for gaming, who cares?

Also, you can share directories between the native filesystem and the VM quite easily. And if you're using something like VirtualBox or VMWare there are "unity" windowing modes available.

replies(2): >>11391932 #>>11392670 #
14. Dylan16807 ◴[] No.11391437{3}[source]
The "Native" OS is also under the hypervisor. So effectively you have real CPU, real RAM, real GPU, and you can give it a real hard drive too. At that point does it really matter that the USB controller and network card are virtualized?
15. ◴[] No.11391473[source]
16. ◴[] No.11391476{4}[source]
17. khedoros ◴[] No.11391500[source]
I've heard that this works wonderfully for graphics, but the sound emulation is pretty terrible. At least, I've heard about clicks and pops when the game puts much load on the system. This was on a friend's machine; maybe he had it configured badly.
replies(2): >>11391547 #>>11391687 #
18. xienze ◴[] No.11391547{3}[source]
Well if you're giving some hypervisor-managed sound interface to the VM then I wouldn't be surprised to hear that. The answer is to get a cheap dedicated soundcard and pass it through to the VM, just like you would with the graphics card.
19. SXX ◴[] No.11391687{3}[source]
First of all there is option to emulate different sound cards and I have no issues with Intel HDA other than microphone delay.

And you can also buy $5 USB sound card and have no issues at all. Or spend few bucks more and connect PCI sound card.

20. dec0dedab0de ◴[] No.11391914[source]
I cannot possibly imagine a world where Microsoft cannibalizes their Windows Server sales by creating a Windows Emulation Layer for Linux.

Are there any Windows only server applications that would be useful in a non windows shop? I'm not trying to be snarky, I really can't think of any.

I would expect the most likely users to convert would be those using job specific desktop software.

21. kuschku ◴[] No.11391932{6}[source]
> Also, you can share directories between the native filesystem and the VM quite easily. And if you're using something like VirtualBox or VMWare there are "unity" windowing modes available.

I tried them – they don’t work at all in KDE.

Arch linux host, KDE as DE, Windows 10 Guest, just leads to a big black box in unified mode, and windows don’t properly occur in the KDE taskbar.

What I expect is integration equal to WINE – automatically putting stored data into the correct folders, easily accessible and mounted, integrating windows with the taskbar, etc.

And yes, this is "just for games" – but try gaming on a multiscreen setup when the game doesn’t show up in your taskbar and you can’t minimize it.

replies(1): >>11392434 #
22. kuschku ◴[] No.11391949{6}[source]
They are when you want to use the game on multiscreen setups, or if you want to backup the game’s save files manually.

Source: I use my VM only for gaming, and it’s a horrible experience.

23. TallGuyShort ◴[] No.11392220[source]
I also would've expected more demand for the opposite. I don't see myself ever switching back to Windows, but I'd pay $$$ to have Microsoft Project fully supported on Linux. I have more than a few colleagues who would be interested in the rest of the Office suite too, but who make do with LibreOffice because other things on Linux are more important.
24. xienze ◴[] No.11392434{7}[source]
Maybe it's a KDE problem? Other people certainly have been successful. But I guess that's par for the course in Linux -- lots of incompatibilities depending on how your environment is set up. Something like WINE is never gonna get there for running games as well as a VM can. So the options realistically are using a VM or reboot. The VM option is really pretty good all things considered.
replies(1): >>11392503 #
25. kuschku ◴[] No.11392503{8}[source]
That issue was with the VM in unified mode.

With WINE, everything works fine – but not with UPlay.

So I can run the game, via UPlay in the VM (but not unified mode), or I can pirate it and run it in WINE.

But unified mode, or paid in WINE, doesn’t work.

26. stcredzero ◴[] No.11392670{6}[source]
As another posted pointed out, if you just want to bring up a VM for gaming, who cares?

Apple needs to do a utility that supports this as smoothly as Bootcamp supports multiple boot.