29

I just started experimenting with the Hyper-V of Windows 8 and installed Ubuntu on it. However when I launch it my screen resolution is small.

How can I scale Ubuntu to the resolution of my screen?

Devid
  • 6,455
  • 13
  • 58
  • 75
Ladineko
  • 393

6 Answers6

36

Here is how you can change the resolution of Ubuntu (Linux) running in Hyper-V:

  • Install linux-image-extras (hyperv-drivers): sudo apt-get install linux-image-extra-virtual
  • Open the Terminal and type: sudo gedit /etc/default/grub
  • Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:1920x1080 (or your preferred resolution) in between the quotes (The maximum possible resolution is 1920x1080) like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
  • Save and Exit
  • Run sudo update-grub
  • Restart Hyper-V (restarting Ubuntu (Linux) might be enough)


Increased display size of Hyper-V to 1680x1050. My Windows 8 display resolution is 1920x1200:

Devid
  • 6,455
  • 13
  • 58
  • 75
5

In the latest release of Ubuntu, the Hyper-V Integration Services are built into the kernel and won't help. Unfortunately even with windows, hyper-v won't display a larger resolution when accessing it through the virtual machine manager.

Try accessing it through VNC, you will be able to get a better resolution that way.

3

I know this thread is old, but if it answers the question for others.

sudo nano /etc/default/grub

find:

GRUB_CMDLINE_LINUX_DEFAULT="There is probably stuff here"

At the end add splash video=hyperv_fb:1920x1080

It should appear like

GRUB_CMDLINE_LINUX_DEFAULT="quiet elevator=noop splash video=hyperv_fb:1920x1080"

then run

sudo update-grub

Enable BackPorts, for Jessie.

sudo nano /etc/apt/scources.list

add

deb http://ftp.debian.org/debian jessie-backports main

sudo apt-get update

sudo apt-get -t jessie-backports install hyperv-daemons

Reboot. Hopefully you will have joy!

Scobber

Hossein
  • 123
Scobber
  • 61
3

The following command will change the display resolution:

sudo gedit /etc/default/grub

Change the following line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

finally run this command:

sudo /etc/kernel/postinst.d/zz-update-grub

The above command is used, because sudo update-grup is not available anymore.

Power off the virtual machine and start it again.

The highest resolution is 1920 x 1080.

See as well

Wollmich
  • 447
1

If your installation is using the Hyper-V DRM driver instead of hyperv_fb, the correct config should be video=Virtual-1:... instead of video=hyperv_fb:....

In doubt, you could leave both in your grub CMDLINE config: GRUB_CMDLINE_LINUX_DEFAULT="video=Virtual-1:1920x1080 video=hyperv_fb:1920x1080"

0

Install the Hyper-V Integration Services. This provides better display/input/network integration between the guest and host.

Vinayak
  • 10,885
allquixotic
  • 34,882