Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»Ubuntu»Change Screen Resolution of An Ubuntu VM in Hyper-V

    Change Screen Resolution of An Ubuntu VM in Hyper-V

    RahulBy RahulMay 1, 20222 Mins ReadUpdated:May 2, 2022

    Recently I created a Ubuntu desktop virtual machine in the Hyper-V platform. After login to the desktop realises that the screen resolution is not correct. I tried to change VM to full-screen mode but it opens in partial screen. When I checked the resolution under the settings found below:

    Checking the Ubuntu Screen Resolution under Hyper-V
    Current Screen Resolution of Ubuntu on Hyper-V

    This how-to guide will help you to change the screen resolution of an Ubuntu VM in Hiper-V. This also allows you to run Ubuntu VM in full-screen mode in Hiper-V.

    Changing Screen Resolution in Hyper-V Ubuntu VM

    Follow the instructions to change the screen resolution of an Ubuntu VM in Hyper-V:

    1. Login to your system as a sudo or root account.
    2. Open a shell and edit /etc/default/groub configuration file in a text editor
      sudo vim /etc/default/grub 
      

      Update the value of GRUB_CMDLINE_LINUX_DEFAULT variable as below:

      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768"
      

      Here 1366×768 is the screen resolution of the host machine. You need to change this value as per your host machine resolution

    3. Now run the following command to update the grub configuration.
      sudo update-grub 
      
    4. Also install the linux-image-extra-virtual package that provides the extra drivers which is not included in base kernel.
      sudo apt install linux-image-extra-virtual 
      
    5. Reboot your system and test

    Once the system is rebooted, log in to the Ubuntu desktop and change to full screen. You will see the Ubuntu desktop open in full screen.

    Now, check the updated screen resolution of Ubuntu running on the Hyper-V platform.

    Change Screen Resolution  in Ubuntu Running on Hyper-V
    Updated Screen Resolution in Ubuntu Running on Hyper-V

    Wrap Up

    This tutorial helped you to change the screen resolution of an Ubuntu VM running on the Hyper-V platform.

    Hyper-V screen resolution Ubuntu virtual machine
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Check IPv4 Address on Ubuntu 22.04
    Next Article (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Related Posts

    Changing the Login Screen Background in Ubuntu 22.04 & 20.04

    Updated:May 9, 20222 Mins Read

    (Resolved) Please install all available updates for your release before upgrading

    2 Mins Read

    How to Install LightDM Display Manager on Ubuntu

    Updated:May 10, 20222 Mins Read

    How to Check IPv4 Address on Ubuntu 22.04

    2 Mins Read

    How to Configure Static IP Address on Ubuntu 22.04

    Updated:May 4, 20223 Mins Read

    Download Ubuntu 22.04 – DVD ISO Images

    Updated:May 7, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.