Ubuntu Hyper-V Guest Display Resolution Win 10 + 15.04Ubuntu 16.04 DisplayPort monitor not recognizedGuest...

Why CLRS example on residual networks does not follows its formula?

A Journey Through Space and Time

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Possibly bubble sort algorithm

Why has Russell's definition of numbers using equivalence classes been finally abandoned? ( If it has actually been abandoned).

Is it possible to do 50 km distance without any previous training?

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

How does one intimidate enemies without having the capacity for violence?

How is it possible to have an ability score that is less than 3?

How do you conduct xenoanthropology after first contact?

Can I interfere when another PC is about to be attacked?

I probably found a bug with the sudo apt install function

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

What are these boxed doors outside store fronts in New York?

Is it possible to make sharp wind that can cut stuff from afar?

What is the offset in a seaplane's hull?

Why Is Death Allowed In the Matrix?

Copycat chess is back

Is Social Media Science Fiction?

Why is this code 6.5x slower with optimizations enabled?

Why is an old chain unsafe?

A function which translates a sentence to title-case

How to type dʒ symbol (IPA) on Mac?

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)



Ubuntu Hyper-V Guest Display Resolution Win 10 + 15.04


Ubuntu 16.04 DisplayPort monitor not recognizedGuest Resizing Ubuntu 10.04 64-bit in VMware Player not workingUbuntu 13.04 running within Hyper-V Networking very flakyUbuntu Hyper-V Guest Display ResolutionT440s randomly freezing on Ubuntu 14.04 and 15.04Ubuntu 15.04 on Windows 10 Hyper-V, hangs on 1st rebootInstalling Ubuntu 15.04 on VirtualBox VMUbuntu as Hyper-V guest : multi-monitor and auto-detect resolutionUbuntu Budgie screen distortion in Hyper-VUbuntu Server 18.04 LTS cannot change resolution in Hyper-VResolution stuck 1024x768 VirtualBox 6 VboxSVGA driver on guest Lubuntu 18.04






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







7















I've got a Hyper-V on a WINDOWS 10 Surface and I'm using Ubuntu 15.04 as a guest OS. I've successfully resized the Ubuntu screen in a Hyper-V with Windows 8 and 14.04 using the recommendations found in these forums. In the current case however I've had no luck resizing. With the huge pixel count on the Surface 4 it make the guest Ubuntu a real pain in the ass to use.



I'd welcome any suggestions.



Screen shot of Hyper-V client










share|improve this question





























    7















    I've got a Hyper-V on a WINDOWS 10 Surface and I'm using Ubuntu 15.04 as a guest OS. I've successfully resized the Ubuntu screen in a Hyper-V with Windows 8 and 14.04 using the recommendations found in these forums. In the current case however I've had no luck resizing. With the huge pixel count on the Surface 4 it make the guest Ubuntu a real pain in the ass to use.



    I'd welcome any suggestions.



    Screen shot of Hyper-V client










    share|improve this question

























      7












      7








      7


      6






      I've got a Hyper-V on a WINDOWS 10 Surface and I'm using Ubuntu 15.04 as a guest OS. I've successfully resized the Ubuntu screen in a Hyper-V with Windows 8 and 14.04 using the recommendations found in these forums. In the current case however I've had no luck resizing. With the huge pixel count on the Surface 4 it make the guest Ubuntu a real pain in the ass to use.



      I'd welcome any suggestions.



      Screen shot of Hyper-V client










      share|improve this question














      I've got a Hyper-V on a WINDOWS 10 Surface and I'm using Ubuntu 15.04 as a guest OS. I've successfully resized the Ubuntu screen in a Hyper-V with Windows 8 and 14.04 using the recommendations found in these forums. In the current case however I've had no luck resizing. With the huge pixel count on the Surface 4 it make the guest Ubuntu a real pain in the ass to use.



      I'd welcome any suggestions.



      Screen shot of Hyper-V client







      15.04 virtualization display-resolution windows-10 hyper-v






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '15 at 4:09









      Bob BruniusBob Brunius

      191229




      191229






















          5 Answers
          5






          active

          oldest

          votes


















          15














          Edit /etc/default/grub with your editor of choice. Remember to use sudo:



          For example:



          sudo nano /etc/default/grub


          Change this line:



          GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


          To this.



          GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"


          Then in a console type:



          sudo update-grub


          Unfortunately, this is the highest resolution you can use for Linux Hyper-V guests.



          Other virtualization solutions have guest additions which allow for higher resolutions like VMware and VirtualBox.



          Note: If you have added the RemoteFX 3D Video Adapter in your VM settings you may have to remove it in order for this change to work.






          share|improve this answer





















          • 1





            the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

            – MattSlay
            Dec 26 '16 at 12:55






          • 2





            I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

            – mhouston100
            Jan 1 '17 at 7:41











          • Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

            – Matt West
            Sep 22 '17 at 21:24






          • 2





            I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

            – E. Moffat
            Nov 22 '17 at 18:12











          • This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

            – Herohtar
            May 11 '18 at 20:24



















          0














          additionally, to get rid of the 'could not apply the stored configuration for monitors CRTC 351' popup, you can delete the user's monitor.xml file:
          $ rm ~/.config/monitors.xml






          share|improve this answer































            0














            Since this question was asked (re ~ Ubuntu 15.04) 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














              I dont have enough rep to respond appropriately. Someone with high privledges can fix if desired. The selected answer is incorrect here.



              The answer by Abu_bua and George 2.0 Hope is the correct answer.



              Ironically I spent more than 10 hours looking for this about 6 months ago. Gave up then after several day and today needed once again to solve this- came back to this. I tried the selected answer by Zanna and Brian Herman. No dice. But I figured what the hell, Im here Ill try the other.



              Finally worked.



              Using Windows Hyper-V (This is the critical bit, if youre using something else, your answer lies elsewhere). and Ubuntu 18.04.



              I have tried scores of other things, its probably in my post history- though not in this particular Stack.






              share|improve this answer








              New contributor




              Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




























                -1














                For some reason, changing the grub config doesn't work on my Surface Book either (and I saw another Surface user complain about the same issue). I haven't found a solution yet, but here's something I can work with:



                Install an X-Server for windows (e.g. xming), login to your virtual machine using ssh and set the DISPLAY variable (export DISPLAY= < your host ip>). You can also add that line to your ~/.bashrc to have it execute automatically when you login, otherwise you'll have to do that for each session.



                This allows you to start your linux gui programms from ssh and work with them as if they were running natively on your host (much faster too, at least in my experience).



                For convenience, I create an internal virtual switch in hyper-v and set up network sharing with that virtual device, so that my host always has the IP 192.168.137.1. This allows you to access the internet in the VM while having a static IP for your host.



                Another solution which also works and gives you the full linux desktop experience (albeit slower than with X-forwarding over ssh): Install xrdp on linux as described here and use windows' remote desktop client to connect to your virtual machine. This will give you your native resolution, but is still a bit slow due to software rendering.






                share|improve this answer


























                  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%2f702628%2fubuntu-hyper-v-guest-display-resolution-win-10-15-04%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  15














                  Edit /etc/default/grub with your editor of choice. Remember to use sudo:



                  For example:



                  sudo nano /etc/default/grub


                  Change this line:



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


                  To this.



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"


                  Then in a console type:



                  sudo update-grub


                  Unfortunately, this is the highest resolution you can use for Linux Hyper-V guests.



                  Other virtualization solutions have guest additions which allow for higher resolutions like VMware and VirtualBox.



                  Note: If you have added the RemoteFX 3D Video Adapter in your VM settings you may have to remove it in order for this change to work.






                  share|improve this answer





















                  • 1





                    the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                    – MattSlay
                    Dec 26 '16 at 12:55






                  • 2





                    I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                    – mhouston100
                    Jan 1 '17 at 7:41











                  • Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                    – Matt West
                    Sep 22 '17 at 21:24






                  • 2





                    I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                    – E. Moffat
                    Nov 22 '17 at 18:12











                  • This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                    – Herohtar
                    May 11 '18 at 20:24
















                  15














                  Edit /etc/default/grub with your editor of choice. Remember to use sudo:



                  For example:



                  sudo nano /etc/default/grub


                  Change this line:



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


                  To this.



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"


                  Then in a console type:



                  sudo update-grub


                  Unfortunately, this is the highest resolution you can use for Linux Hyper-V guests.



                  Other virtualization solutions have guest additions which allow for higher resolutions like VMware and VirtualBox.



                  Note: If you have added the RemoteFX 3D Video Adapter in your VM settings you may have to remove it in order for this change to work.






                  share|improve this answer





















                  • 1





                    the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                    – MattSlay
                    Dec 26 '16 at 12:55






                  • 2





                    I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                    – mhouston100
                    Jan 1 '17 at 7:41











                  • Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                    – Matt West
                    Sep 22 '17 at 21:24






                  • 2





                    I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                    – E. Moffat
                    Nov 22 '17 at 18:12











                  • This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                    – Herohtar
                    May 11 '18 at 20:24














                  15












                  15








                  15







                  Edit /etc/default/grub with your editor of choice. Remember to use sudo:



                  For example:



                  sudo nano /etc/default/grub


                  Change this line:



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


                  To this.



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"


                  Then in a console type:



                  sudo update-grub


                  Unfortunately, this is the highest resolution you can use for Linux Hyper-V guests.



                  Other virtualization solutions have guest additions which allow for higher resolutions like VMware and VirtualBox.



                  Note: If you have added the RemoteFX 3D Video Adapter in your VM settings you may have to remove it in order for this change to work.






                  share|improve this answer















                  Edit /etc/default/grub with your editor of choice. Remember to use sudo:



                  For example:



                  sudo nano /etc/default/grub


                  Change this line:



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


                  To this.



                  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"


                  Then in a console type:



                  sudo update-grub


                  Unfortunately, this is the highest resolution you can use for Linux Hyper-V guests.



                  Other virtualization solutions have guest additions which allow for higher resolutions like VMware and VirtualBox.



                  Note: If you have added the RemoteFX 3D Video Adapter in your VM settings you may have to remove it in order for this change to work.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 12 '18 at 6:31









                  Zanna

                  51.2k13140243




                  51.2k13140243










                  answered Mar 12 '16 at 16:40









                  Brian HermanBrian Herman

                  15113




                  15113








                  • 1





                    the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                    – MattSlay
                    Dec 26 '16 at 12:55






                  • 2





                    I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                    – mhouston100
                    Jan 1 '17 at 7:41











                  • Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                    – Matt West
                    Sep 22 '17 at 21:24






                  • 2





                    I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                    – E. Moffat
                    Nov 22 '17 at 18:12











                  • This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                    – Herohtar
                    May 11 '18 at 20:24














                  • 1





                    the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                    – MattSlay
                    Dec 26 '16 at 12:55






                  • 2





                    I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                    – mhouston100
                    Jan 1 '17 at 7:41











                  • Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                    – Matt West
                    Sep 22 '17 at 21:24






                  • 2





                    I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                    – E. Moffat
                    Nov 22 '17 at 18:12











                  • This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                    – Herohtar
                    May 11 '18 at 20:24








                  1




                  1





                  the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                  – MattSlay
                  Dec 26 '16 at 12:55





                  the folder is named "default", not "defaults", and it's "video=", not "video-". So, the correct line would be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

                  – MattSlay
                  Dec 26 '16 at 12:55




                  2




                  2





                  I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                  – mhouston100
                  Jan 1 '17 at 7:41





                  I also had to add 'sudo apt-get install linux-image-extra-virtual' to get the HyperV display driver

                  – mhouston100
                  Jan 1 '17 at 7:41













                  Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                  – Matt West
                  Sep 22 '17 at 21:24





                  Doesn't work using Hyper-V under Windows 10 and either Mint or Elementary. 9/2017.

                  – Matt West
                  Sep 22 '17 at 21:24




                  2




                  2





                  I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                  – E. Moffat
                  Nov 22 '17 at 18:12





                  I had a RemoteFX video adapter added to my VM (generation 2). I had to remove the RemoteFX video adapter to get this to work.

                  – E. Moffat
                  Nov 22 '17 at 18:12













                  This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                  – Herohtar
                  May 11 '18 at 20:24





                  This solution worked for me on my Gen 1 VM, but only after removing the RemoteFX adapter from the settings as @E.Moffat mentioned.

                  – Herohtar
                  May 11 '18 at 20:24













                  0














                  additionally, to get rid of the 'could not apply the stored configuration for monitors CRTC 351' popup, you can delete the user's monitor.xml file:
                  $ rm ~/.config/monitors.xml






                  share|improve this answer




























                    0














                    additionally, to get rid of the 'could not apply the stored configuration for monitors CRTC 351' popup, you can delete the user's monitor.xml file:
                    $ rm ~/.config/monitors.xml






                    share|improve this answer


























                      0












                      0








                      0







                      additionally, to get rid of the 'could not apply the stored configuration for monitors CRTC 351' popup, you can delete the user's monitor.xml file:
                      $ rm ~/.config/monitors.xml






                      share|improve this answer













                      additionally, to get rid of the 'could not apply the stored configuration for monitors CRTC 351' popup, you can delete the user's monitor.xml file:
                      $ rm ~/.config/monitors.xml







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Oct 9 '17 at 20:15









                      GeBaGeBa

                      1




                      1























                          0














                          Since this question was asked (re ~ Ubuntu 15.04) 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














                            Since this question was asked (re ~ Ubuntu 15.04) 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












                              0








                              0







                              Since this question was asked (re ~ Ubuntu 15.04) 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 (re ~ Ubuntu 15.04) 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 7 '18 at 12:10









                              abu_bua

                              4,15981630




                              4,15981630










                              answered Nov 7 '18 at 12:00









                              George 2.0 HopeGeorge 2.0 Hope

                              412




                              412























                                  0














                                  I dont have enough rep to respond appropriately. Someone with high privledges can fix if desired. The selected answer is incorrect here.



                                  The answer by Abu_bua and George 2.0 Hope is the correct answer.



                                  Ironically I spent more than 10 hours looking for this about 6 months ago. Gave up then after several day and today needed once again to solve this- came back to this. I tried the selected answer by Zanna and Brian Herman. No dice. But I figured what the hell, Im here Ill try the other.



                                  Finally worked.



                                  Using Windows Hyper-V (This is the critical bit, if youre using something else, your answer lies elsewhere). and Ubuntu 18.04.



                                  I have tried scores of other things, its probably in my post history- though not in this particular Stack.






                                  share|improve this answer








                                  New contributor




                                  Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.

























                                    0














                                    I dont have enough rep to respond appropriately. Someone with high privledges can fix if desired. The selected answer is incorrect here.



                                    The answer by Abu_bua and George 2.0 Hope is the correct answer.



                                    Ironically I spent more than 10 hours looking for this about 6 months ago. Gave up then after several day and today needed once again to solve this- came back to this. I tried the selected answer by Zanna and Brian Herman. No dice. But I figured what the hell, Im here Ill try the other.



                                    Finally worked.



                                    Using Windows Hyper-V (This is the critical bit, if youre using something else, your answer lies elsewhere). and Ubuntu 18.04.



                                    I have tried scores of other things, its probably in my post history- though not in this particular Stack.






                                    share|improve this answer








                                    New contributor




                                    Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.























                                      0












                                      0








                                      0







                                      I dont have enough rep to respond appropriately. Someone with high privledges can fix if desired. The selected answer is incorrect here.



                                      The answer by Abu_bua and George 2.0 Hope is the correct answer.



                                      Ironically I spent more than 10 hours looking for this about 6 months ago. Gave up then after several day and today needed once again to solve this- came back to this. I tried the selected answer by Zanna and Brian Herman. No dice. But I figured what the hell, Im here Ill try the other.



                                      Finally worked.



                                      Using Windows Hyper-V (This is the critical bit, if youre using something else, your answer lies elsewhere). and Ubuntu 18.04.



                                      I have tried scores of other things, its probably in my post history- though not in this particular Stack.






                                      share|improve this answer








                                      New contributor




                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.










                                      I dont have enough rep to respond appropriately. Someone with high privledges can fix if desired. The selected answer is incorrect here.



                                      The answer by Abu_bua and George 2.0 Hope is the correct answer.



                                      Ironically I spent more than 10 hours looking for this about 6 months ago. Gave up then after several day and today needed once again to solve this- came back to this. I tried the selected answer by Zanna and Brian Herman. No dice. But I figured what the hell, Im here Ill try the other.



                                      Finally worked.



                                      Using Windows Hyper-V (This is the critical bit, if youre using something else, your answer lies elsewhere). and Ubuntu 18.04.



                                      I have tried scores of other things, its probably in my post history- though not in this particular Stack.







                                      share|improve this answer








                                      New contributor




                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      share|improve this answer



                                      share|improve this answer






                                      New contributor




                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      answered 51 mins ago









                                      Andy TAndy T

                                      1




                                      1




                                      New contributor




                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.





                                      New contributor





                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






                                      Andy T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.























                                          -1














                                          For some reason, changing the grub config doesn't work on my Surface Book either (and I saw another Surface user complain about the same issue). I haven't found a solution yet, but here's something I can work with:



                                          Install an X-Server for windows (e.g. xming), login to your virtual machine using ssh and set the DISPLAY variable (export DISPLAY= < your host ip>). You can also add that line to your ~/.bashrc to have it execute automatically when you login, otherwise you'll have to do that for each session.



                                          This allows you to start your linux gui programms from ssh and work with them as if they were running natively on your host (much faster too, at least in my experience).



                                          For convenience, I create an internal virtual switch in hyper-v and set up network sharing with that virtual device, so that my host always has the IP 192.168.137.1. This allows you to access the internet in the VM while having a static IP for your host.



                                          Another solution which also works and gives you the full linux desktop experience (albeit slower than with X-forwarding over ssh): Install xrdp on linux as described here and use windows' remote desktop client to connect to your virtual machine. This will give you your native resolution, but is still a bit slow due to software rendering.






                                          share|improve this answer






























                                            -1














                                            For some reason, changing the grub config doesn't work on my Surface Book either (and I saw another Surface user complain about the same issue). I haven't found a solution yet, but here's something I can work with:



                                            Install an X-Server for windows (e.g. xming), login to your virtual machine using ssh and set the DISPLAY variable (export DISPLAY= < your host ip>). You can also add that line to your ~/.bashrc to have it execute automatically when you login, otherwise you'll have to do that for each session.



                                            This allows you to start your linux gui programms from ssh and work with them as if they were running natively on your host (much faster too, at least in my experience).



                                            For convenience, I create an internal virtual switch in hyper-v and set up network sharing with that virtual device, so that my host always has the IP 192.168.137.1. This allows you to access the internet in the VM while having a static IP for your host.



                                            Another solution which also works and gives you the full linux desktop experience (albeit slower than with X-forwarding over ssh): Install xrdp on linux as described here and use windows' remote desktop client to connect to your virtual machine. This will give you your native resolution, but is still a bit slow due to software rendering.






                                            share|improve this answer




























                                              -1












                                              -1








                                              -1







                                              For some reason, changing the grub config doesn't work on my Surface Book either (and I saw another Surface user complain about the same issue). I haven't found a solution yet, but here's something I can work with:



                                              Install an X-Server for windows (e.g. xming), login to your virtual machine using ssh and set the DISPLAY variable (export DISPLAY= < your host ip>). You can also add that line to your ~/.bashrc to have it execute automatically when you login, otherwise you'll have to do that for each session.



                                              This allows you to start your linux gui programms from ssh and work with them as if they were running natively on your host (much faster too, at least in my experience).



                                              For convenience, I create an internal virtual switch in hyper-v and set up network sharing with that virtual device, so that my host always has the IP 192.168.137.1. This allows you to access the internet in the VM while having a static IP for your host.



                                              Another solution which also works and gives you the full linux desktop experience (albeit slower than with X-forwarding over ssh): Install xrdp on linux as described here and use windows' remote desktop client to connect to your virtual machine. This will give you your native resolution, but is still a bit slow due to software rendering.






                                              share|improve this answer















                                              For some reason, changing the grub config doesn't work on my Surface Book either (and I saw another Surface user complain about the same issue). I haven't found a solution yet, but here's something I can work with:



                                              Install an X-Server for windows (e.g. xming), login to your virtual machine using ssh and set the DISPLAY variable (export DISPLAY= < your host ip>). You can also add that line to your ~/.bashrc to have it execute automatically when you login, otherwise you'll have to do that for each session.



                                              This allows you to start your linux gui programms from ssh and work with them as if they were running natively on your host (much faster too, at least in my experience).



                                              For convenience, I create an internal virtual switch in hyper-v and set up network sharing with that virtual device, so that my host always has the IP 192.168.137.1. This allows you to access the internet in the VM while having a static IP for your host.



                                              Another solution which also works and gives you the full linux desktop experience (albeit slower than with X-forwarding over ssh): Install xrdp on linux as described here and use windows' remote desktop client to connect to your virtual machine. This will give you your native resolution, but is still a bit slow due to software rendering.







                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited Aug 30 '16 at 15:14

























                                              answered Aug 30 '16 at 14:36









                                              dominik andreasdominik andreas

                                              992




                                              992






























                                                  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%2f702628%2fubuntu-hyper-v-guest-display-resolution-win-10-15-04%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

                                                  Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                                                  Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                                                  Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...