Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Ubuntu»Change Screen Resolution of An Ubuntu VM in Hyper-V

    Change Screen Resolution of An Ubuntu VM in Hyper-V

    By RahulApril 26, 20232 Mins Read

    Virtualization technology is essential in today’s IT landscape, allowing users to run multiple operating systems on a single physical host. Hyper-V is a powerful virtualization platform developed by Microsoft, widely used for running virtual machines (VMs) on Windows Server systems. When working with an Ubuntu VM in Hyper-V, one common challenge that users face is the need to adjust the screen resolution for a better user experience. The default screen resolution may not be suitable for your display, making it difficult to work efficiently.

    Advertisement

    In this article, we will provide a step-by-step guide on how to modify the screen resolution for an Ubuntu VM in Hyper-V, ensuring optimal usability and an enhanced visual experience.

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

    Changing Screen Resolution in Hyper-V Ubuntu VM

    Here are the step by strep instructions to change the screen resolution of an Ubuntu VM running on Hyper-V platform:

    1. Login to your system as a sudo or root account.
    2. Open a shell and edit /etc/default/grub 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

    Throughout this article, we have demonstrated a comprehensive method for modifying the screen resolution of an Ubuntu virtual machine running on Hyper-V. By following these steps, you can ensure that your Ubuntu VM’s display settings are tailored to your preferences, resulting in a more enjoyable and efficient user experience.

    Hyper-V screen resolution Ubuntu virtual machine
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Change the Default Screen Resolution in Ubuntu: A Step-by-Step Guide

    Setting up an SFTP Server on Ubuntu

    The Ultimate Guide to Backing Up and Restoring Your Ubuntu System

    View 6 Comments

    6 Comments

    1. incognito on October 1, 2022 4:14 pm

      Hello!

      /etc/default/groub >>>> /etc/default/grub

      Reply
      • Rahul on October 2, 2022 2:41 am

        Thanks

        Reply
    2. Sailendra P on August 14, 2022 12:41 am

      This does not seem to be an issue after updating to the latest Ubuntu studio distribution: 22.04 as of writing this comment. The GUI is the KDE Plasma environment and it is now listing all available resolutions in the Display settings applet.

      Reply
    3. Mandlenkosi on July 26, 2022 2:32 pm

      Thank you, that was so helpful.

      Reply
    4. Peer on June 4, 2022 2:12 pm

      does not work for 2560×1440, still no full screen

      Reply
    5. Paul W on June 3, 2022 2:52 am

      Thanx for the post. Worked for me. Pity that you need to do this as some other distros you can change the resolution from the settings panel

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Setting and Getting the Default Timezone in Python
    • What is Media Access Control (MAC) Address?
    • What is Cross-Site Scripting (XSS)?
    • What is Content Security Policy (CSP)?
    • A User’s Guide to Understanding Redirection Operators in Bash
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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