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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityInstall the Hyper-V Integration Services. This provides better display/input/network integration between the guest and host.
Here is how you can change the resolution of Ubuntu (Linux) running in Hyper-V:
sudo apt-get install linux-image-extra-virtual
sudo gedit /etc/default/grub
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"
sudo update-grub
Increased display size of Hyper-V to 1680x1050. My Windows 8 display resolution is 1920x1200:
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.
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
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
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"