I tried to install Ubuntu 13.10 on my Windows 8.1 Pro laptop. Now installing it as a gen 1 works fine but installing it as a gen 2 does not. I have to disable secure boot to get anything to happen which is expected but when I disable it i just get into grub version 2 with a couple options. No matter which i choose I get a blank screen and nothing happens. am I doing something wrong or am I missing any steps or is Hyper-v not going to be able to run Ubuntu as a gen 2 virtual machine?

3 Answers 3


For the sake of completeness. 14.04 works on Hyper-V generation 2. Among other things kernel version 3.13 is required for generation 2. I am using it myself and it works nicely.

You might want to set the screen resolution manually though, as mode setting in the usual way is not yet supported by the hyperv_fb kernel module.

This can be archived by opening the file /etc/default/grub with the editor of your choice as root. Then edit the line


to read


replacing [width] and [height] with the desired values. For example for FullHD resolution I use


to apply the new settings run afterwards in a terminal window

sudo update-grub

and restart the the guest system. The next time your guest Linux should have the desired resolution.

  • I tried to set the resolution to 2160x1440 to match my Surface 3's screen. However this gives an out of range error on boot-up. Is there any way to get it to support resolutions this high? If not what is the maximum it will support? Commented Oct 12, 2014 at 19:20
  • FullHD seems the maximum supported resolution right now. You can check the comment at the top of the Hyper-V frame-buffer driver file (git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/…). It looks like a limitation of Hyper-V.
    – Jan Henke
    Commented Oct 13, 2014 at 10:03

Yes you can!

There is only one thing you need to know: Secure Boot has to be disabled. Hyper-V enables secure boot by default so if you just click through the wizard to create a VM it will not work. You have to disable Secure Boot. You can do so by changing the Settings of the virtual machine with the Hyper-V Manager. Under Firmware is an option for Secure Boot.



As noted in the discussion in the following blog post by one of the PM's working on Hyper-V it doesn't look like the current Linux distros support Hyper-V gen2.

Linux support is being worked on. It doesn't require any changes in Hyper-V, rather in the set of LIS components, plus some kernel changes to support the appropriate devices.




You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .