Using linux mint in hyper-v resolution problem


  1. Posts : 15,477
    Windows10
       #1

    Using linux mint in hyper-v resolution problem


    I installed Linux-Mint in a gen 1 hyper-v session, and it installed fine.

    My main issue is that it setups up in an odd screen size and requires scroll bars. I go to display settings and it say laptop 12xx x 8xx (4:3) resolution, and no option to select 1366x768.

    I googled a fair bit but could not make sense of any info. Regrettably, as with many typical linux expert replies, the replies go deep into command line speak but do not lead you in a "tutorial" style approach.

    So does anybody know how I change it?


    EDIT: googled again and found simple solution

    1) Open Terminal

    2) Type: sudo nano /etc/default/grub

    3) Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want].

    So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768"

    4) Write the changes and quit nano

    5) Run: sudo update-grub

    6) Reboot the virtual machine

    Now works perfectly. Fix was actually for a ubunto distro but works fine on Mint as well.

    So next question is - can I run and rdp server and run this in enhanced mode?

    More googling to do :)
    Last edited by cereberus; 03 Jun 2017 at 04:07.
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    Enhanced mode will not work with Mint guests, but you can use remote desktop. Only Linux distro I use is CentOS, here's how I remote to and from a Hyper-V CentOS guest:



    (From tutorial RDC - Connect Remotely to your Windows 10 PC Windows 10 Network Sharing Tutorials )
      My Computer


  3. Posts : 15,477
    Windows10
    Thread Starter
       #3

    Kari said:
    Enhanced mode will not work with Mint guests, but you can use remote desktop. Only Linux distro I use is CentOS, here's how I remote to and from a Hyper-V CentOS guest:



    (From tutorial RDC - Connect Remotely to your Windows 10 PC Windows 10 Network Sharing Tutorials )
    Well, I decided to use CentOS and follow tutorial but it fell over at starting service. Any ideas?

    cheers

    C.

    Using linux mint in hyper-v resolution problem-image.png
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #4

    It seems that you have not installed XRDP as clearly shown in your screenshot, error message telling "no such file".

    Your screenshot:

    Using linux mint in hyper-v resolution problem-image.png

    Compared to screenshot from video (at 03:05):

    Using linux mint in hyper-v resolution problem-image.png
      My Computer


  5. Posts : 15,477
    Windows10
    Thread Starter
       #5

    Kari said:
    It seems that you have not installed XRDP as clearly shown in your screenshot, error message telling "no such file".

    Your screenshot:

    Using linux mint in hyper-v resolution problem-image.png

    Compared to screenshot from video (at 03:05):

    Using linux mint in hyper-v resolution problem-image.png

    Thanks - I'll have to find out why.

    Edit: ok - got xrdp now and installed etc.

    Couple of points for other who might try this.

    1) Change CentOS resolution

    Commands that worked above for Linux Mint did not work for CentOS

    This worked from a superuser prompt

    grubby --update-kernel=ALL --args="video=hyperv_fb:1366x768"


    2) XRDP installation

    I had to create a repository first

    see extract below from link

    Install xrdp on CentOS 7 / RHEL 7


    Create a repository file.
    # vi /etc/yum.repos.d/xrdp.repo

    Place the following content. Once added, save and close the file.
    [xrdp]
    name=xrdp
    baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
    enabled=1
    gpgcheck=0

    Then I followed @Kari's tutorial thereafter and it worked fine.

    Next step - trying RDP:)
    Last edited by cereberus; 04 Jun 2017 at 10:56.
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    Let us know if remote desktop worked.
      My Computer


  7. Posts : 15,477
    Windows10
    Thread Starter
       #7

    Kari said:
    Let us know if remote desktop worked.
    Yeah - it is working ok but need to optimise display settings a bit - work in progress.

    I cannot, for the life of me, see how to set sound. I configured rdp as in screen dump below as discussed on various websites.

    I notice sound is set to dummy output in Centos.

    I am obviously missing something fundamental!

    Now I remember why I am anti Linux. If there was a single version, it would be easier, but the versions have different quirks, and having to use terminal to basic things is a PITA.


    Using linux mint in hyper-v resolution problem-image.png
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
       #8

    Yes, the sound in Linux guests is a problem. I have found no way to get sound on CentOS guest, RDP or not.
      My Computer


  9. Posts : 15,477
    Windows10
    Thread Starter
       #9

    Kari said:
    Yes, the sound in Linux guests is a problem. I have found no way to get sound on CentOS guest, RDP or not.
    I came to same conclusion after much web searching. This is one area Hyper-V is inferior to other tools. MS do not seem interested as they are largely concerned with other Windows vms which can be used in enhanced mode unless Home.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:26.
Find Us




Windows 10 Forums