Ubuntu on Hyper-V
Original Chinese title: ubuntu on hyper-v
- Really didn’t want to develop Spark programs on Windows.
- I’d set up a test HDFS + Spark cluster in Hyper-V.
- So I figured I’d install an Ubuntu desktop VM for development, and ended up wrestling with it for days.
Resolution Issues
- On Windows 10’s built-in Hyper-V, both Ubuntu Desktop 16.10 and 16.04 only had an 800x600 option.
- Tried this solution How can I increase the Hyper-V display resolution? — failed.
- Tried VNC, only to find I still couldn’t change the resolution: Install VNC on Ubuntu 16.04
- 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.
- Tried switching from 16.04 to 16.10 — still no luck.
- Thought maybe GNOME lacked graphics drivers: I can’t set screen resolution above 800x600 — still didn’t work.
- Tried Google Remote Desktop with this config: Configuring Chrome Remote Desktop with Ubuntu Gnome 14.04
- 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.
- For the proper setup method, see — Changing Ubuntu Screen Resolution in a Hyper-V VM | Ben Armstrong’s Virtualization Blog
- 实在不想用windows 开发spark 的程序。
- 手里用hyper-v 搭建了一个测试的hdfs+spark集群。
- 那就想着在装一个desktop 用来开发。结果折腾了好几天。
分辨率问题
- win 10 自带hyper-v ubuntu desktop 16.10,16.04 都是只有800x600 一个选项。
- 试过这个方案How can I increase the Hyper-V display resolution? 失败
- 用VNC 后来发现还是不能懂分辨率[Install VNC on Ubuntu 16.04]https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04
- VNC 解决不全屏的问题,装server 版的ubuntu然后装gnome 跑桌面环境。也没有解决 vnc 分辨率不行
- 更换16.04 到16.10 试试 仍旧不行
- 可能是gnome 然后没有显卡驱动,I can’t set screen resolution above 800x600,还是不行
- 用google remote desktop 配置如下Configuring Chrome Remote Desktop with Ubuntu Gnome 14.04
- 换centos kd 试试
优化方案用的这个
hyper-v centos安装后优化
终于找到问题了关闭remote 3d就可以
[Archived image unavailable in 2013–2019 mirror: 1.jpg]
graphics - Ubuntu 14.04 Desktop under Windows 8.1 Hyper-V - Ask Ubuntu
看文章应该是我选的1代的虚拟机而这个功能是为2代设计的。所以一直不行。