Can I KVM with the Hyper-V MobyLinuxVM?

Expected behavior

When connecting to MobyLinuxVM via Hyper-V Manager, a KVM/Shell is presented.

Actual behavior

When connecting to MobyLinuxVM via Hyper-V Manager, a black screen is presented which does not accept input and only shows a white dot cursor.

Information

Should I expect to be able to do this? What I want is to be able to KVM with the host directly. With the old Docker Toolbox VirtualBox default this was something I very rarely needed (usually only an issue if my VM lost connectivity for some reason), but I can’t see how I would KVM with the new default host?

Steps to reproduce the behavior

  1. Install Docker for Windows
  2. Open Hyper-V Manager
  3. Double-click MobyLinuxVM
1 Like

You can try this in the powershell:

docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -i sh

I saw it in a video somewhere, but I don’t find the link anymore :slight_smile: It works for me.

Found it :slight_smile: https://youtu.be/7da-B3rY9V4?t=1168 … It was part of the “Docker for Mac and Windows: The Insider’s Guide by Justin Cormack” see: https://blog.docker.com/2016/07/dockercon-docker-developers/