Unity Editor window panes flicker when running in Hyper V - windows

I'm running Unity inside of a HyperV virtual machine (VM), where the host and VM are both running Windows 10. When using Enhanced Mode, Unity's windows will flicker to solid black:
I so far haven't seen the issue in any other software running in the VM. I also don't see the problem when running in Basic Mode. While normally I use Basic Mode, I frequently need to use Enhanced Mode to allow USB devices connected to the host to passthru to the VM.
I've reproduced this in both Unity 2021.3.9 and 2021.3.12.
How do I fix this?

Related

Running gui docker container (based on ubuntu) in Windows Docker Desktop is extremely lagging

i have a docker container based on ubuntu:20.04 with running qtcreator. I tested this container in Ubuntu host machine and its work perfectly and fast.
But with windows docker desktop there is extremely lagging.. for XServer i use VcSrv from https://sourceforge.net/projects/vcxsrv/.
Actually, any gui docker app works same way (i tried xeyes and firefox apps, they are lagging too approximately the same - the program window does not keep up with the user's actions: resize window, scroll, typing, etc)
gif with lagging
to fix this problem i tried:
with and without wsl2 based engine
wsl2 based engine
wsl integration (and without it)
wsl integration
create .wslconfig with maximum resource priority to wsl
disable hyper-v
nothing works.
Maybe I don't understand something and this issue is somehow very easily solved.
Please tell me how to significantly speed up the response of such an application running in a linux container on a windows host machine

Is it possible to run windows container with GUI support (like xorg with linux container)?

i recently started to move our c++ render tests inside docker containers.
I managed to run tests with a Linux based container with xorg and nvidia toolkit in Linux just fine. But I'm struggling to find a similar solution for windows based image (windows:2004).
Currently I run in a "process" isolation mode which allows me to pass gpu, but the tests require a surface to render, so without a monitor they fail.
My Environment:
Docker Desktop v4.11.0
Docker Engine v20.10.17
Windows 10 Enterprise 21H2 19044.1826
DirectX WDDM WDDM 2.7
I'm using windows official image mcr.microsoft.com/windows:2004
So my question is can I run similar setup as I do for Linux with docker, but for windows?

Simulate a Windows Docker setup in a VM

I'm developing a command line (in Golang) which interacts with Docker. It works fine on Linux & Mac, although I have a bug when I try to make it work with Windows 10, but I don't have a Windows 10 laptop available.
What are my solutions ? I've tried the nested virtualization, but Hyper-v (which is used by Docker Desktop) is not able to start in my Windows virtual machine (created with VirtualBox which obviously doesn't support thise use case).
The Cloud providers don't seem to support this use case either, I'm kind of stucked.

Windows Phone Emulator loses connection

I am running Windows 10 Education from a Macbook Pro, 2,7 GHz Intel Core i5, 8GB ram running OS X 10.11 using Parallels Desktop 11.
I have spend the last two days trying to get Visual Studio 2015 to run the Windows phone emulators properly (More precisely: Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB). Managed to solve most, but now stuck with the emulator being very unreliable mainly giving me the following errors:
The connection to 169.254.17.107:8117 has been lost. Debugging will be aborted.
or
The emulator couldn't determine the host IP address, which is used to communicate with the guest virtual machine.
Some functionality may be disabled.
I can't find a pattern because sometimes it happens while the application is deploying - sometimes after it has loaded perfectly and I was able to use the emulator. Every now and then, after getting an error, I simply run the application again right away and it will work ok, until next time i need to run it.
The virtual switch in Hyper-V is set to Interal and I have also tried External and Private.
I have tried setting the MAC type to static for the network adapter under settings in Hyper-V.
Tried deleting the emulators and all virtual switches.
Tried disabling and enabling the virtual switch in Network Sharing.
Some of the guides and posts elsewhere about similar problems are a bit outdated (Running Windows 8 and Parallels 8 ect.) Can anyone help me make the emulators work every time with my setup?

Boot2docker VM graphics

Boot2docker is a lightweight Linux distribution running in VirtualBox VM. All basic functionality works fine, I am able to use docker containers in MacOS X.
However my application requires OpenGL rendering and I cannot get it working.
How do I control which graphics acceleration is used inside that VirtualBox VM? I want to completely remove any 3D acceleration functions, because Mesa software drivers should just work perfectly (tested on VMware VM).
Is there a way to control boot2docker VM graphics settings like I do for normal VirtualBox VMs?
I'd say the most straightforward way (and I'd place this as a feature/bug request with the boo2docker devs) would be to install a pure Mesa llvm softpipe build for OpenGL. This should give you OSMesa. However for a classical OpenGL context you'll probably need some kind of X server (until EGL / offscreen Wayland works satisfactory). A X.org server with a dummy device should work perfectly, as long as you use framebuffer objects.
It turns out that boot2docker is just a wrapper around the VBoxManage command.
And if you really want to, you can control the VM created by boot2docker using VBoxManage command - you can change 3D graphics acceleration, VMem, etc.

Resources