23

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?

0

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

| improve this answer | |
  • 1
    This want help change the screen resolution of Hyper-V. – Devid Jul 11 '14 at 20:43
  • The link doesn't work any more, I got: We're sorry, this download is no longer available. – GoYun.Info Dec 20 '18 at 18:45
28

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:

| improve this answer | |
  • 1
    Worked for me on my Win 8.1 host and Ubuntu 14.04 guest. – Gus Oct 8 '14 at 3:41
  • Did not work for me using Windows 8.1 host and Ubuntu 14.04 LTS. – null_pointer Nov 6 '14 at 4:37
  • When using 1920x1080 resolution it work but didn't work with 1920x1200. – null_pointer Nov 6 '14 at 4:57
  • 1
    Know i shouldn't use this for "thank yous", but this is the best description on the internet! – HockeyJ Dec 9 '15 at 22:13
  • 1
    Worked well on Thinkpad X1 with Windows 10, and Ubuntu LTS 14.04 inside Hyper-V. Resolution is 1920x1080 – mattias Feb 28 '16 at 8:19
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.

| improve this answer | |
  • 1
    There is a way to change the screen resolution, just check my answer. VNC and RDP will display in Full Screen but the performance is not good. – Devid Jul 11 '14 at 20:44
  • 2
    Can you specify How to access it? – Pablo Jomer May 23 '16 at 13:26
1

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

| improve this answer | |
  • 2
    You pretty much replicated Devid's answer, or do you think you added some value here? – zagrimsan Aug 4 '17 at 7:29
  • All the solutions i had were exact to @devid. the one thing that got me over the line on a hyperv 2012 (not R2) host was the backports repository. adding that kernel param did nothing otherwise. – Scott Pepper Aug 7 '17 at 23:46
  • Ok, fair enough. Please edit your answer to highlight that difference and I will upvote it. (so formatting on it wouldn't hurt, either) – zagrimsan Aug 8 '17 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.