Ubuntu Hyper-V Guest Display Resolution












25















Good afternoon,



I am trying to set up an Ubuntu guest on a Hyper-V server. I am relatively new to Linux so please bear with me, the VM is a test machine to get the hang of things and give Ubuntu a try. One of the new features of Server 2012 R2 is the improved display capabilities as mentioned here at blogs.technet.com



I don't think I am alone in finding this doesn't "just work". Some advice found online suggests updating the kernel, which I have done to 3.11.6 as described in one post, and to the latest 3.12.1. In both cases I could only see resolutions listed under the display options up to 1152x864, which is what Linux has always been limited to under Hyper-V.



Another clue was found in the next link (in Japanese) - the poster has added "video=hyperv_fb:1920x1080" to /boot/grub2/grub.cfg. When I went to repeat this I noted the message about not editing /boot/grub2/grub.cfg directly so I have added the line in /etc/default/grub instead.



yamanxworld.blogspot.co.uk



This has not given the option for the full 1920x1080 resolution either, and at this point I have run out of things to try and would not know if this is now a Hyper-V issue or something more fundamental and this would not have worked on a physical or other hypervisor machine.



If anyone can shed some light I would be most grateful.










share|improve this question





























    25















    Good afternoon,



    I am trying to set up an Ubuntu guest on a Hyper-V server. I am relatively new to Linux so please bear with me, the VM is a test machine to get the hang of things and give Ubuntu a try. One of the new features of Server 2012 R2 is the improved display capabilities as mentioned here at blogs.technet.com



    I don't think I am alone in finding this doesn't "just work". Some advice found online suggests updating the kernel, which I have done to 3.11.6 as described in one post, and to the latest 3.12.1. In both cases I could only see resolutions listed under the display options up to 1152x864, which is what Linux has always been limited to under Hyper-V.



    Another clue was found in the next link (in Japanese) - the poster has added "video=hyperv_fb:1920x1080" to /boot/grub2/grub.cfg. When I went to repeat this I noted the message about not editing /boot/grub2/grub.cfg directly so I have added the line in /etc/default/grub instead.



    yamanxworld.blogspot.co.uk



    This has not given the option for the full 1920x1080 resolution either, and at this point I have run out of things to try and would not know if this is now a Hyper-V issue or something more fundamental and this would not have worked on a physical or other hypervisor machine.



    If anyone can shed some light I would be most grateful.










    share|improve this question



























      25












      25








      25


      13






      Good afternoon,



      I am trying to set up an Ubuntu guest on a Hyper-V server. I am relatively new to Linux so please bear with me, the VM is a test machine to get the hang of things and give Ubuntu a try. One of the new features of Server 2012 R2 is the improved display capabilities as mentioned here at blogs.technet.com



      I don't think I am alone in finding this doesn't "just work". Some advice found online suggests updating the kernel, which I have done to 3.11.6 as described in one post, and to the latest 3.12.1. In both cases I could only see resolutions listed under the display options up to 1152x864, which is what Linux has always been limited to under Hyper-V.



      Another clue was found in the next link (in Japanese) - the poster has added "video=hyperv_fb:1920x1080" to /boot/grub2/grub.cfg. When I went to repeat this I noted the message about not editing /boot/grub2/grub.cfg directly so I have added the line in /etc/default/grub instead.



      yamanxworld.blogspot.co.uk



      This has not given the option for the full 1920x1080 resolution either, and at this point I have run out of things to try and would not know if this is now a Hyper-V issue or something more fundamental and this would not have worked on a physical or other hypervisor machine.



      If anyone can shed some light I would be most grateful.










      share|improve this question
















      Good afternoon,



      I am trying to set up an Ubuntu guest on a Hyper-V server. I am relatively new to Linux so please bear with me, the VM is a test machine to get the hang of things and give Ubuntu a try. One of the new features of Server 2012 R2 is the improved display capabilities as mentioned here at blogs.technet.com



      I don't think I am alone in finding this doesn't "just work". Some advice found online suggests updating the kernel, which I have done to 3.11.6 as described in one post, and to the latest 3.12.1. In both cases I could only see resolutions listed under the display options up to 1152x864, which is what Linux has always been limited to under Hyper-V.



      Another clue was found in the next link (in Japanese) - the poster has added "video=hyperv_fb:1920x1080" to /boot/grub2/grub.cfg. When I went to repeat this I noted the message about not editing /boot/grub2/grub.cfg directly so I have added the line in /etc/default/grub instead.



      yamanxworld.blogspot.co.uk



      This has not given the option for the full 1920x1080 resolution either, and at this point I have run out of things to try and would not know if this is now a Hyper-V issue or something more fundamental and this would not have worked on a physical or other hypervisor machine.



      If anyone can shed some light I would be most grateful.







      display virtualization hyper-v






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 24 '14 at 3:33









      Nathan Osman

      21k32144237




      21k32144237










      asked Dec 1 '13 at 14:57









      user221048user221048

      126124




      126124






















          6 Answers
          6






          active

          oldest

          votes


















          44














          I had the same issue and when I was looking for help I remember seeing your post. Now when I finally got it to work I might as well document it here:




          1. Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):


          2. Installed linux-image-extras with the hyperv-drivers: sudo apt-get install linux-image-extra-virtual


          3. Set video mode (Pretty much what you already did):
            Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.


          4. Update grub: sudo update-grub

          5. Reboot


          I guess the critical part was installing the updated hyperv-drivers with linux-image-extra-virtual. Also make sure they are loaded.






          share|improve this answer





















          • 4





            Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

            – alx
            Dec 21 '14 at 20:34






          • 2





            This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

            – Jerad Rose
            Jan 15 '16 at 22:53






          • 4





            The given "make sure..." link is 404

            – SeveQ
            Nov 20 '16 at 13:11











          • Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

            – oikonomopo
            Jan 16 at 13:52



















          22














          copat's answer worked for me, but only after I changed my resolution down from 1920x1200 to 1920x1080.



          Looking in the Linux source file hyperv_fb.c there is the comment:
          "This is the driver for the Hyper-V Synthetic Video, which supports screen resolution up to Full HD 1920x1080 with 32 bit color on Windows Server 2012, and 1600x1200 with 16 bit color on Windows Server 2008 R2 or earlier."






          share|improve this answer


























          • Is this still the case with 17.04?

            – user9993
            Sep 18 '17 at 11:26



















          2














          I did all this without success, and then I tried fiddling with the Hyper-V settings.



          I increased the RAM for video to 512K and also deleted the 3D driver.

          This worked for me.






          share|improve this answer

































            1














            Since this question was asked (in 2013) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’.



            There are two approaches currently:



            A) New System



            Optimized Ubuntu Desktop images available in Microsoft Hyper-V gallery



            B) Existing System



            Manually configure xRDP to support ‘Enhanced Session Mode





            Here are the details:



            Option A)




            1. In Hyper-V, on your server & select [Quick Create]

            2. In the [Create Virtual Machine] dialog, select [Ubuntu 18.04.1 LTS] && then [Create Virtual Machine]

            3. Then complete the standard Ubuntu installation options

            4. ‘Enhanced Session Mode’ will prompt you to setup screen resolution, local resources, etc.


            5. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]


            Here are the links to where I sourced the information:



            ○ Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery



            ○ Run Ubuntu virtual machines made even easier with Hyper-V Quick Create



            Option B)





            1. Modify Ubuntu 18.04 to use xrdp



              1.1 Get the scripts from GitHub



              sudo apt-get update
              sudo add-apt-repository ppa:git-core/ppa
              sudo apt update; sudo apt install git
              git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init


              1.2 Make the scripts executable and run them...



              cd ~/xrdp-init/ubuntu/18.04/
              sudo chmod +x install.sh
              sudo ./install.sh
              reboot


              1.3 <After Reboot> Run script again to finish setting up VM



              cd ~/xrdp-init/ubuntu/18.04/
              sudo ./install.sh


            2. Shutdown Ubuntu VM



            3. Register Ubuntu Session ~ run this command on host PC using powershell with admin rights:



              Set-VM -VMName YourUbuntuVMNameHere -EnhancedSessionTransportType HvSocket


            4. Restart VM


            5. Connect/Login to XRDP from Hyper-V (note ~ enter username - must be lowercase)


            6. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]





            Here is the link to where I sourced the information:





            • Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V






            share|improve this answer

































              0














              With the methods described, it didn't work for me. What worked was: I can leave my host screen at 1920x1200, but the text size increased to 125% then I get full screen in my Ubuntu guest session;






              share|improve this answer































                0














                I can recommend a way of editing grub file with grubby.



                First, you need to logged as a root user, just type:



                sudo su



                press ENTER button and enter your root password.



                After that, just type the command like below:



                grubby --update-kernel=ALL --args="video=hyperv_fb:1920X1080"



                where 1920x1080 it's your preferred resolution.



                Then just reboot your VM and new resolution must be applied.



                I hope that this solution helps you. In case of questions, please contact me and I will try to help.






                share|improve this answer



















                • 1





                  What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                  – Charles Green
                  Jan 26 at 17:09











                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f384602%2fubuntu-hyper-v-guest-display-resolution%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                6 Answers
                6






                active

                oldest

                votes








                6 Answers
                6






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                44














                I had the same issue and when I was looking for help I remember seeing your post. Now when I finally got it to work I might as well document it here:




                1. Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):


                2. Installed linux-image-extras with the hyperv-drivers: sudo apt-get install linux-image-extra-virtual


                3. Set video mode (Pretty much what you already did):
                  Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.


                4. Update grub: sudo update-grub

                5. Reboot


                I guess the critical part was installing the updated hyperv-drivers with linux-image-extra-virtual. Also make sure they are loaded.






                share|improve this answer





















                • 4





                  Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                  – alx
                  Dec 21 '14 at 20:34






                • 2





                  This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                  – Jerad Rose
                  Jan 15 '16 at 22:53






                • 4





                  The given "make sure..." link is 404

                  – SeveQ
                  Nov 20 '16 at 13:11











                • Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                  – oikonomopo
                  Jan 16 at 13:52
















                44














                I had the same issue and when I was looking for help I remember seeing your post. Now when I finally got it to work I might as well document it here:




                1. Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):


                2. Installed linux-image-extras with the hyperv-drivers: sudo apt-get install linux-image-extra-virtual


                3. Set video mode (Pretty much what you already did):
                  Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.


                4. Update grub: sudo update-grub

                5. Reboot


                I guess the critical part was installing the updated hyperv-drivers with linux-image-extra-virtual. Also make sure they are loaded.






                share|improve this answer





















                • 4





                  Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                  – alx
                  Dec 21 '14 at 20:34






                • 2





                  This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                  – Jerad Rose
                  Jan 15 '16 at 22:53






                • 4





                  The given "make sure..." link is 404

                  – SeveQ
                  Nov 20 '16 at 13:11











                • Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                  – oikonomopo
                  Jan 16 at 13:52














                44












                44








                44







                I had the same issue and when I was looking for help I remember seeing your post. Now when I finally got it to work I might as well document it here:




                1. Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):


                2. Installed linux-image-extras with the hyperv-drivers: sudo apt-get install linux-image-extra-virtual


                3. Set video mode (Pretty much what you already did):
                  Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.


                4. Update grub: sudo update-grub

                5. Reboot


                I guess the critical part was installing the updated hyperv-drivers with linux-image-extra-virtual. Also make sure they are loaded.






                share|improve this answer















                I had the same issue and when I was looking for help I remember seeing your post. Now when I finally got it to work I might as well document it here:




                1. Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):


                2. Installed linux-image-extras with the hyperv-drivers: sudo apt-get install linux-image-extra-virtual


                3. Set video mode (Pretty much what you already did):
                  Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.


                4. Update grub: sudo update-grub

                5. Reboot


                I guess the critical part was installing the updated hyperv-drivers with linux-image-extra-virtual. Also make sure they are loaded.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 3 '18 at 22:31









                Fabby

                26.9k1360161




                26.9k1360161










                answered Jan 4 '14 at 13:02









                copatcopat

                54133




                54133








                • 4





                  Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                  – alx
                  Dec 21 '14 at 20:34






                • 2





                  This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                  – Jerad Rose
                  Jan 15 '16 at 22:53






                • 4





                  The given "make sure..." link is 404

                  – SeveQ
                  Nov 20 '16 at 13:11











                • Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                  – oikonomopo
                  Jan 16 at 13:52














                • 4





                  Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                  – alx
                  Dec 21 '14 at 20:34






                • 2





                  This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                  – Jerad Rose
                  Jan 15 '16 at 22:53






                • 4





                  The given "make sure..." link is 404

                  – SeveQ
                  Nov 20 '16 at 13:11











                • Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                  – oikonomopo
                  Jan 16 at 13:52








                4




                4





                Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                – alx
                Dec 21 '14 at 20:34





                Thank you, worked for me too. Looks like step 1 is not necessary, as step 2 installs all required dependencies automatically. Also, specific version numbers in step 1 may not work for some users.

                – alx
                Dec 21 '14 at 20:34




                2




                2





                This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                – Jerad Rose
                Jan 15 '16 at 22:53





                This works, but for those on 1920x1200 monitors, you have to drop it down to 1920x1080 to get it to work (I had originally missed the answer below, so thought a comment here might be seen quicker for some).

                – Jerad Rose
                Jan 15 '16 at 22:53




                4




                4





                The given "make sure..." link is 404

                – SeveQ
                Nov 20 '16 at 13:11





                The given "make sure..." link is 404

                – SeveQ
                Nov 20 '16 at 13:11













                Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                – oikonomopo
                Jan 16 at 13:52





                Don't forget to remove from your VM settings the remotefx card (If enabled for some reason)!

                – oikonomopo
                Jan 16 at 13:52













                22














                copat's answer worked for me, but only after I changed my resolution down from 1920x1200 to 1920x1080.



                Looking in the Linux source file hyperv_fb.c there is the comment:
                "This is the driver for the Hyper-V Synthetic Video, which supports screen resolution up to Full HD 1920x1080 with 32 bit color on Windows Server 2012, and 1600x1200 with 16 bit color on Windows Server 2008 R2 or earlier."






                share|improve this answer


























                • Is this still the case with 17.04?

                  – user9993
                  Sep 18 '17 at 11:26
















                22














                copat's answer worked for me, but only after I changed my resolution down from 1920x1200 to 1920x1080.



                Looking in the Linux source file hyperv_fb.c there is the comment:
                "This is the driver for the Hyper-V Synthetic Video, which supports screen resolution up to Full HD 1920x1080 with 32 bit color on Windows Server 2012, and 1600x1200 with 16 bit color on Windows Server 2008 R2 or earlier."






                share|improve this answer


























                • Is this still the case with 17.04?

                  – user9993
                  Sep 18 '17 at 11:26














                22












                22








                22







                copat's answer worked for me, but only after I changed my resolution down from 1920x1200 to 1920x1080.



                Looking in the Linux source file hyperv_fb.c there is the comment:
                "This is the driver for the Hyper-V Synthetic Video, which supports screen resolution up to Full HD 1920x1080 with 32 bit color on Windows Server 2012, and 1600x1200 with 16 bit color on Windows Server 2008 R2 or earlier."






                share|improve this answer















                copat's answer worked for me, but only after I changed my resolution down from 1920x1200 to 1920x1080.



                Looking in the Linux source file hyperv_fb.c there is the comment:
                "This is the driver for the Hyper-V Synthetic Video, which supports screen resolution up to Full HD 1920x1080 with 32 bit color on Windows Server 2012, and 1600x1200 with 16 bit color on Windows Server 2008 R2 or earlier."







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:25









                Community

                1




                1










                answered Jan 20 '14 at 18:51









                RationalDevRationalDev

                32115




                32115













                • Is this still the case with 17.04?

                  – user9993
                  Sep 18 '17 at 11:26



















                • Is this still the case with 17.04?

                  – user9993
                  Sep 18 '17 at 11:26

















                Is this still the case with 17.04?

                – user9993
                Sep 18 '17 at 11:26





                Is this still the case with 17.04?

                – user9993
                Sep 18 '17 at 11:26











                2














                I did all this without success, and then I tried fiddling with the Hyper-V settings.



                I increased the RAM for video to 512K and also deleted the 3D driver.

                This worked for me.






                share|improve this answer






























                  2














                  I did all this without success, and then I tried fiddling with the Hyper-V settings.



                  I increased the RAM for video to 512K and also deleted the 3D driver.

                  This worked for me.






                  share|improve this answer




























                    2












                    2








                    2







                    I did all this without success, and then I tried fiddling with the Hyper-V settings.



                    I increased the RAM for video to 512K and also deleted the 3D driver.

                    This worked for me.






                    share|improve this answer















                    I did all this without success, and then I tried fiddling with the Hyper-V settings.



                    I increased the RAM for video to 512K and also deleted the 3D driver.

                    This worked for me.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 4 '18 at 8:19









                    zx485

                    1,47131115




                    1,47131115










                    answered Sep 3 '18 at 19:49









                    toddzboxtoddzbox

                    211




                    211























                        1














                        Since this question was asked (in 2013) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’.



                        There are two approaches currently:



                        A) New System



                        Optimized Ubuntu Desktop images available in Microsoft Hyper-V gallery



                        B) Existing System



                        Manually configure xRDP to support ‘Enhanced Session Mode





                        Here are the details:



                        Option A)




                        1. In Hyper-V, on your server & select [Quick Create]

                        2. In the [Create Virtual Machine] dialog, select [Ubuntu 18.04.1 LTS] && then [Create Virtual Machine]

                        3. Then complete the standard Ubuntu installation options

                        4. ‘Enhanced Session Mode’ will prompt you to setup screen resolution, local resources, etc.


                        5. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]


                        Here are the links to where I sourced the information:



                        ○ Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery



                        ○ Run Ubuntu virtual machines made even easier with Hyper-V Quick Create



                        Option B)





                        1. Modify Ubuntu 18.04 to use xrdp



                          1.1 Get the scripts from GitHub



                          sudo apt-get update
                          sudo add-apt-repository ppa:git-core/ppa
                          sudo apt update; sudo apt install git
                          git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init


                          1.2 Make the scripts executable and run them...



                          cd ~/xrdp-init/ubuntu/18.04/
                          sudo chmod +x install.sh
                          sudo ./install.sh
                          reboot


                          1.3 <After Reboot> Run script again to finish setting up VM



                          cd ~/xrdp-init/ubuntu/18.04/
                          sudo ./install.sh


                        2. Shutdown Ubuntu VM



                        3. Register Ubuntu Session ~ run this command on host PC using powershell with admin rights:



                          Set-VM -VMName YourUbuntuVMNameHere -EnhancedSessionTransportType HvSocket


                        4. Restart VM


                        5. Connect/Login to XRDP from Hyper-V (note ~ enter username - must be lowercase)


                        6. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]





                        Here is the link to where I sourced the information:





                        • Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V






                        share|improve this answer






























                          1














                          Since this question was asked (in 2013) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’.



                          There are two approaches currently:



                          A) New System



                          Optimized Ubuntu Desktop images available in Microsoft Hyper-V gallery



                          B) Existing System



                          Manually configure xRDP to support ‘Enhanced Session Mode





                          Here are the details:



                          Option A)




                          1. In Hyper-V, on your server & select [Quick Create]

                          2. In the [Create Virtual Machine] dialog, select [Ubuntu 18.04.1 LTS] && then [Create Virtual Machine]

                          3. Then complete the standard Ubuntu installation options

                          4. ‘Enhanced Session Mode’ will prompt you to setup screen resolution, local resources, etc.


                          5. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]


                          Here are the links to where I sourced the information:



                          ○ Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery



                          ○ Run Ubuntu virtual machines made even easier with Hyper-V Quick Create



                          Option B)





                          1. Modify Ubuntu 18.04 to use xrdp



                            1.1 Get the scripts from GitHub



                            sudo apt-get update
                            sudo add-apt-repository ppa:git-core/ppa
                            sudo apt update; sudo apt install git
                            git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init


                            1.2 Make the scripts executable and run them...



                            cd ~/xrdp-init/ubuntu/18.04/
                            sudo chmod +x install.sh
                            sudo ./install.sh
                            reboot


                            1.3 <After Reboot> Run script again to finish setting up VM



                            cd ~/xrdp-init/ubuntu/18.04/
                            sudo ./install.sh


                          2. Shutdown Ubuntu VM



                          3. Register Ubuntu Session ~ run this command on host PC using powershell with admin rights:



                            Set-VM -VMName YourUbuntuVMNameHere -EnhancedSessionTransportType HvSocket


                          4. Restart VM


                          5. Connect/Login to XRDP from Hyper-V (note ~ enter username - must be lowercase)


                          6. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]





                          Here is the link to where I sourced the information:





                          • Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V






                          share|improve this answer




























                            1












                            1








                            1







                            Since this question was asked (in 2013) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’.



                            There are two approaches currently:



                            A) New System



                            Optimized Ubuntu Desktop images available in Microsoft Hyper-V gallery



                            B) Existing System



                            Manually configure xRDP to support ‘Enhanced Session Mode





                            Here are the details:



                            Option A)




                            1. In Hyper-V, on your server & select [Quick Create]

                            2. In the [Create Virtual Machine] dialog, select [Ubuntu 18.04.1 LTS] && then [Create Virtual Machine]

                            3. Then complete the standard Ubuntu installation options

                            4. ‘Enhanced Session Mode’ will prompt you to setup screen resolution, local resources, etc.


                            5. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]


                            Here are the links to where I sourced the information:



                            ○ Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery



                            ○ Run Ubuntu virtual machines made even easier with Hyper-V Quick Create



                            Option B)





                            1. Modify Ubuntu 18.04 to use xrdp



                              1.1 Get the scripts from GitHub



                              sudo apt-get update
                              sudo add-apt-repository ppa:git-core/ppa
                              sudo apt update; sudo apt install git
                              git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init


                              1.2 Make the scripts executable and run them...



                              cd ~/xrdp-init/ubuntu/18.04/
                              sudo chmod +x install.sh
                              sudo ./install.sh
                              reboot


                              1.3 <After Reboot> Run script again to finish setting up VM



                              cd ~/xrdp-init/ubuntu/18.04/
                              sudo ./install.sh


                            2. Shutdown Ubuntu VM



                            3. Register Ubuntu Session ~ run this command on host PC using powershell with admin rights:



                              Set-VM -VMName YourUbuntuVMNameHere -EnhancedSessionTransportType HvSocket


                            4. Restart VM


                            5. Connect/Login to XRDP from Hyper-V (note ~ enter username - must be lowercase)


                            6. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]





                            Here is the link to where I sourced the information:





                            • Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V






                            share|improve this answer















                            Since this question was asked (in 2013) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’.



                            There are two approaches currently:



                            A) New System



                            Optimized Ubuntu Desktop images available in Microsoft Hyper-V gallery



                            B) Existing System



                            Manually configure xRDP to support ‘Enhanced Session Mode





                            Here are the details:



                            Option A)




                            1. In Hyper-V, on your server & select [Quick Create]

                            2. In the [Create Virtual Machine] dialog, select [Ubuntu 18.04.1 LTS] && then [Create Virtual Machine]

                            3. Then complete the standard Ubuntu installation options

                            4. ‘Enhanced Session Mode’ will prompt you to setup screen resolution, local resources, etc.


                            5. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]


                            Here are the links to where I sourced the information:



                            ○ Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery



                            ○ Run Ubuntu virtual machines made even easier with Hyper-V Quick Create



                            Option B)





                            1. Modify Ubuntu 18.04 to use xrdp



                              1.1 Get the scripts from GitHub



                              sudo apt-get update
                              sudo add-apt-repository ppa:git-core/ppa
                              sudo apt update; sudo apt install git
                              git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init


                              1.2 Make the scripts executable and run them...



                              cd ~/xrdp-init/ubuntu/18.04/
                              sudo chmod +x install.sh
                              sudo ./install.sh
                              reboot


                              1.3 <After Reboot> Run script again to finish setting up VM



                              cd ~/xrdp-init/ubuntu/18.04/
                              sudo ./install.sh


                            2. Shutdown Ubuntu VM



                            3. Register Ubuntu Session ~ run this command on host PC using powershell with admin rights:



                              Set-VM -VMName YourUbuntuVMNameHere -EnhancedSessionTransportType HvSocket


                            4. Restart VM


                            5. Connect/Login to XRDP from Hyper-V (note ~ enter username - must be lowercase)


                            6. Note/Caution ~ if you have problems using drives, then you may want to de-select the [Printers]





                            Here is the link to where I sourced the information:





                            • Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 8 '18 at 20:09









                            abu_bua

                            3,45081227




                            3,45081227










                            answered Nov 8 '18 at 19:46









                            George 2.0 HopeGeorge 2.0 Hope

                            312




                            312























                                0














                                With the methods described, it didn't work for me. What worked was: I can leave my host screen at 1920x1200, but the text size increased to 125% then I get full screen in my Ubuntu guest session;






                                share|improve this answer




























                                  0














                                  With the methods described, it didn't work for me. What worked was: I can leave my host screen at 1920x1200, but the text size increased to 125% then I get full screen in my Ubuntu guest session;






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    With the methods described, it didn't work for me. What worked was: I can leave my host screen at 1920x1200, but the text size increased to 125% then I get full screen in my Ubuntu guest session;






                                    share|improve this answer













                                    With the methods described, it didn't work for me. What worked was: I can leave my host screen at 1920x1200, but the text size increased to 125% then I get full screen in my Ubuntu guest session;







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Sep 21 '16 at 17:06









                                    user597624user597624

                                    1




                                    1























                                        0














                                        I can recommend a way of editing grub file with grubby.



                                        First, you need to logged as a root user, just type:



                                        sudo su



                                        press ENTER button and enter your root password.



                                        After that, just type the command like below:



                                        grubby --update-kernel=ALL --args="video=hyperv_fb:1920X1080"



                                        where 1920x1080 it's your preferred resolution.



                                        Then just reboot your VM and new resolution must be applied.



                                        I hope that this solution helps you. In case of questions, please contact me and I will try to help.






                                        share|improve this answer



















                                        • 1





                                          What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                          – Charles Green
                                          Jan 26 at 17:09
















                                        0














                                        I can recommend a way of editing grub file with grubby.



                                        First, you need to logged as a root user, just type:



                                        sudo su



                                        press ENTER button and enter your root password.



                                        After that, just type the command like below:



                                        grubby --update-kernel=ALL --args="video=hyperv_fb:1920X1080"



                                        where 1920x1080 it's your preferred resolution.



                                        Then just reboot your VM and new resolution must be applied.



                                        I hope that this solution helps you. In case of questions, please contact me and I will try to help.






                                        share|improve this answer



















                                        • 1





                                          What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                          – Charles Green
                                          Jan 26 at 17:09














                                        0












                                        0








                                        0







                                        I can recommend a way of editing grub file with grubby.



                                        First, you need to logged as a root user, just type:



                                        sudo su



                                        press ENTER button and enter your root password.



                                        After that, just type the command like below:



                                        grubby --update-kernel=ALL --args="video=hyperv_fb:1920X1080"



                                        where 1920x1080 it's your preferred resolution.



                                        Then just reboot your VM and new resolution must be applied.



                                        I hope that this solution helps you. In case of questions, please contact me and I will try to help.






                                        share|improve this answer













                                        I can recommend a way of editing grub file with grubby.



                                        First, you need to logged as a root user, just type:



                                        sudo su



                                        press ENTER button and enter your root password.



                                        After that, just type the command like below:



                                        grubby --update-kernel=ALL --args="video=hyperv_fb:1920X1080"



                                        where 1920x1080 it's your preferred resolution.



                                        Then just reboot your VM and new resolution must be applied.



                                        I hope that this solution helps you. In case of questions, please contact me and I will try to help.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jan 26 at 16:53









                                        Oleksandr BakunOleksandr Bakun

                                        1




                                        1








                                        • 1





                                          What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                          – Charles Green
                                          Jan 26 at 17:09














                                        • 1





                                          What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                          – Charles Green
                                          Jan 26 at 17:09








                                        1




                                        1





                                        What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                        – Charles Green
                                        Jan 26 at 17:09





                                        What exactly is 'grubby' and where did you obtain it from? There seems to be no package or file with this name in https://packages.ubuntu.com

                                        – Charles Green
                                        Jan 26 at 17:09


















                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f384602%2fubuntu-hyper-v-guest-display-resolution%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Human spaceflight

                                        Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                        張江高科駅