Legacy Archive (2017): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Ubuntu on Hyper-V

Original Chinese title: ubuntu on hyper-v

  1. Really didn’t want to develop Spark programs on Windows.
  2. I’d set up a test HDFS + Spark cluster in Hyper-V.
  3. So I figured I’d install an Ubuntu desktop VM for development, and ended up wrestling with it for days.

Resolution Issues

  1. On Windows 10’s built-in Hyper-V, both Ubuntu Desktop 16.10 and 16.04 only had an 800x600 option.
  2. Tried this solution How can I increase the Hyper-V display resolution? — failed.
  3. Tried VNC, only to find I still couldn’t change the resolution: Install VNC on Ubuntu 16.04
  4. To fix the non-fullscreen issue in VNC, I installed Ubuntu Server and added GNOME to run the desktop environment. Still didn’t solve the VNC resolution problem.
  5. Tried switching from 16.04 to 16.10 — still no luck.
  6. Thought maybe GNOME lacked graphics drivers: I can’t set screen resolution above 800x600 — still didn’t work.
  7. Tried Google Remote Desktop with this config: Configuring Chrome Remote Desktop with Ubuntu Gnome 14.04
  8. Decided to try CentOS KDE instead
    Used this optimization guide
    Post-install optimization for CentOS on Hyper-V

Finally found the problem—just turn off Remote 3D!
[Archived image unavailable in 2013–2019 mirror: 1.jpg]
graphics - Ubuntu 14.04 Desktop under Windows 8.1 Hyper-V - Ask Ubuntu
From the post, it looks like I picked a Generation 1 VM while this feature was designed for Generation 2. No wonder it never worked.

  1. For the proper setup method, see — Changing Ubuntu Screen Resolution in a Hyper-V VM | Ben Armstrong’s Virtualization Blog