1.    03 Jun 2017 #1
    Join Date : Dec 2015
    Posts : 5,865
    Windows10

    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 ComputerSystem Spec
  2.    03 Jun 2017 #2
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,949
    Windows 10 Pro

    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 ComputerSystem Spec
  3.    04 Jun 2017 #3
    Join Date : Dec 2015
    Posts : 5,865
    Windows10
    Thread Starter

    Quote Originally Posted by Kari View Post
    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.

    Click image for larger version. 

Name:	image.png 
Views:	35 
Size:	38.1 KB 
ID:	137955
      My ComputerSystem Spec
  4.    04 Jun 2017 #4
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,949
    Windows 10 Pro

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

    Your screenshot:

    Click image for larger version. 

Name:	image.png 
Views:	36 
Size:	70.0 KB 
ID:	137966

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

    Click image for larger version. 

Name:	image.png 
Views:	36 
Size:	144.7 KB 
ID:	137968
      My ComputerSystem Spec
  5.    04 Jun 2017 #5
    Join Date : Dec 2015
    Posts : 5,865
    Windows10
    Thread Starter

    Quote Originally Posted by Kari View Post
    It seems that you have not installed XRDP as clearly shown in your screenshot, error message telling "no such file".

    Your screenshot:

    Click image for larger version. 

Name:	image.png 
Views:	36 
Size:	70.0 KB 
ID:	137966

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

    Click image for larger version. 

Name:	image.png 
Views:	36 
Size:	144.7 KB 
ID:	137968

    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 ComputerSystem Spec
  6.    04 Jun 2017 #6
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,949
    Windows 10 Pro

    Let us know if remote desktop worked.
      My ComputerSystem Spec
  7.    04 Jun 2017 #7
    Join Date : Dec 2015
    Posts : 5,865
    Windows10
    Thread Starter

    Quote Originally Posted by Kari View Post
    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.


    Click image for larger version. 

Name:	image.png 
Views:	31 
Size:	78.6 KB 
ID:	138017
      My ComputerSystem Spec
  8.    07 Jun 2017 #8
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,949
    Windows 10 Pro

    Yes, the sound in Linux guests is a problem. I have found no way to get sound on CentOS guest, RDP or not.
      My ComputerSystem Spec
  9.    07 Jun 2017 #9
    Join Date : Dec 2015
    Posts : 5,865
    Windows10
    Thread Starter

    Quote Originally Posted by Kari View Post
    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 ComputerSystem Spec

 


Similar Threads
Thread Forum
Solved Windows 10 boot menu after Linux Mint uninstallation
Hi, I installed Linux Mint alongside Windows 10 some time ago and tried it for a while. When I decided to remove Linux Mint from the laptop, I deleted the disk partitions it was installed on. Even though Linux Mint is deleted, it is still shown as...
Installation and Upgrade
Installed Windows 10. Now I can't boot Windows 10 or Linux Mint.
Hello, TenForums. I run Linux Mint on one SSD and Windows 7 on another. Linux Mint SSD is on SATA 1; Windows 7 SSD is on SATA 2; 500GB empty drive on SATA 3. I upgraded Windows 7 to Windows 10 and after getting it all set up and pretty,...
Installation and Upgrade
Linux under Hyper-V: RDP connection
I'm not sure if this is the correct place for this, but is there any way to speed up my RDP connection to an openSUSE guest running locally under Hyper-V? I'm using a NAT vSwitch to provide it with both Internet and host connectivity and remote over...
Virtualization
Dual Boot Windows 10 or 8.x with Linux Mint on OEM UEFI
This is my first tutorial. Any Ubuntu-based Linux distro will work on this tutorial. As of now, the current versions are: 1. Burning the Installer to a USB As stated above, any 64-bit Ubuntu-based distro will work. The current versions are: ...
Chillout Room
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 20:32.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums