News for hackers. Stuff that matters.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by Mathnerd314 on Saturday July 17, 2021 @11:41PM (#27870623)
One thing that isn't clear from the website is that it requires two GPUs, one for the host and one for the VM.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by 77pt77 on Sunday July 18, 2021 @03:19AM (#27871280)
What about machines with dual graphics cards, like one intel on board and another nvidia?

Would that be OK?

I ask because many laptops used to have similar setups.

Re:Looking Glass: Run a Windows VM on Linux in a window with... by gnif on Sunday July 18, 2021 @03:57AM (#27871444)
Yes, this works for many laptops but it depends on how the laptop is internally wired. We have many members that use their iGPU for Linux, and the dGPU for the VM.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by fragileone on Sunday July 18, 2021 @06:04AM (#27871816)
I haven't tried in about 6 months but I had issues with reusing that same dGPU if I wanted to use it for Linux gaming when the VM is offline. I thought it would be easy to bind and unbind it as needed but had issues with doing so. Is this a possible/recommended setup, is there another alternative or I shouldn't bother trying?
Re:Looking Glass: Run a Windows VM on Linux in a window with... by solarkraft on Sunday July 18, 2021 @04:11AM (#27871493)
In theory yes, but I concluded my attempts on a Dell 9570 with “forget it”.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by 77pt77 on Monday July 26, 2021 @12:02AM (#27955519)
I fear I'll get a similar result.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by imhoguy on Sunday July 18, 2021 @03:10AM (#27871248)
Wouldn't be it possible to let Linux/Xorg give up GPU for a time Windows is used? Which could still let me access it via VNC from Windows. My native platform is Xubuntu on AMD Renoir laptop.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by guilhas on Sunday July 18, 2021 @05:01AM (#27871632)
That is already possible without the Looking Glass. Just regular libvirt GPU passthrough.

I would say the use case here would be a machine that does not have a monitor connected, for example some Bitcoin mining server in the attic. With Looking Glass the game screen can get streamed to a ultrabook in your living room, with the server GPU performance

Re:Looking Glass: Run a Windows VM on Linux in a window with... by pizza234 on Sunday July 18, 2021 @04:35AM (#27871560)
It's technically possible, but not stable. On my system, it's not stable, so I prefer to have two cards, but YMMV.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by genewitch on Sunday July 18, 2021 @03:43AM (#27871370)
If this uses vfio then no, the host never sees the GPU, it's blind to it from boot.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by fulafel on Sunday July 18, 2021 @03:55AM (#27871434)
What is stopping GPU hot plugging from working?

There was this recent improvement at least: https://phoronix.com/scan.php?page=news_item&px=Linux-5.14-A...

edit: seems there are some howtos - eg https://github.com/joeknock90/Single-GPU-Passthrough

Re:Looking Glass: Run a Windows VM on Linux in a window with... by pizza234 on Sunday July 18, 2021 @07:55AM (#27872199)
Two reasons (in the context of a standard desktop user, not headless server):

1. Desktop environment, which uses the video card; this is not a big deal, since one can terminate the session

2. video drivers correctly and fully releasing the card; this is possible, but in my opinion, not stable.

Re:Looking Glass: Run a Windows VM on Linux in a window with... by throwaway2048 on Sunday July 18, 2021 @03:55AM (#27871433)
Not really a problem, you can unbind the VFIO driver
Re:Looking Glass: Run a Windows VM on Linux in a window with... by genewitch on Sunday July 18, 2021 @02:52PM (#27875414)
> linux /vmlinuz-5.10.27-gentoo root=/dev/nvme0n1p2 ro amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction pci-stub.ids=10de:1b82,10de:10f0

the host never sees the card.

Re:Looking Glass: Run a Windows VM on Linux in a window with... by throwaway2048 on Sunday July 18, 2021 @07:48PM (#27877786)
thats using the pci-stub driver, not VFIO
Re:Looking Glass: Run a Windows VM on Linux in a window with... by AlphaSite on Saturday July 17, 2021 @11:58PM (#27870676)
Does an iGPU fill the same criteria?
Re:Looking Glass: Run a Windows VM on Linux in a window with... by LASR on Sunday July 18, 2021 @12:03AM (#27870689)
Yes it does. Intel usually is the host adapter.
Re:Looking Glass: Run a Windows VM on Linux in a window with... by reilly3000 on Sunday July 18, 2021 @04:45AM (#27871588)
The host can use a $15 5450, doesn’t have to be fancy.