8

I installed Fedora 19 in windows 8 hyper-v and its working fine but there is one small problem with the display setting, as fedora 19 display setting not providing 1366x768, but i need to set the display to 1366x768 to view full screen, so any suggestions??

3 Answers 3

22
  • Open a Terminal (Ctrl-Alt-T)

  • Run

      sudo vi /etc/default/grub 
    
  • Find the line starting with GRUB_CMDLINE_LINUX, and add

      video=hyperv_fb:[the resolution you want]
    

If the resolution I want is 1280×720 then my line ends up looking like this:

    GRUB_CMDLINE_LINUX="… quiet splash video=hyperv_fb:1280×720"
  • Write the changes and quit vi by hitting ESC and typing

      :wq
    
  • Run:

      sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    

    or when installed in EFI mode

      sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    
  • Reboot the virtual machine

9
  • Hi. I've tested this solution with Fedora 22 with success.
    – ilMattion
    Commented Oct 12, 2015 at 20:14
  • works with Fedora 23 too, except the variable name is GRUB_CMDLINE_LINUX, and not GRUB_CMDLINE_LINUX_DEFAULT . Commented May 27, 2016 at 10:12
  • 2
    Worked perfectly for Fedora 24 on Windows 10 x64.
    – Contango
    Commented Nov 14, 2016 at 21:54
  • 1
    And for Fedora 25 on Windows 10 x64
    – mghaoui
    Commented Nov 23, 2016 at 14:07
  • Doesn't work for Fedora 26 on Windows 10 x64. FWIW, the grub.cfg didn't exist after fresh install. After reboot the video= option doesn't appear in /proc/cmdline. Commented Oct 17, 2017 at 20:27
4

(Note: this is just an over-sized reply.)

I'm using Windows 10 and Fedora 26. Basically what Daniel said still holds, with some modifications:

  1. The file /boot/grub2/grub.cfg doesn't exist on fresh install Fedora 26, and creating the file doesn't affect booting parameters at all (verified with /proc/cmdline). The correct file is /boot/efi/EFI/fedora/grub.cfg (I get the path from Fedora Wiki).

  2. Not every resolution is supported: 1920x1080 is, 2560x1080 is not. Unsupported resolution is simply ignored. I ended up setting it 1920 although my monitor is 2560.

And finally an advice: back up everything you edit. You'll need it some day.

Update: still works in Fedora 27.

2
  • Running Fedora 27 in Hyper-V on 10x64 1709, I cannot get anything other than 1024x768. Looking at /proc/cmdline, I can see it had the correct video parameter imgur.com/x8cYva8 (I'm like you, I have a 2560x1080 monitor, but gotta limit to 1920x1080) Commented Jan 6, 2018 at 2:26
  • @jparnell8839 Not sure whether it helps, but mine has splash before the video settings, similar to what Daniel has. Commented Jan 10, 2018 at 22:50
0

I think it's a limitation from Microsoft.

Here's the link http://social.technet.microsoft.com/Forums/windowsserver/en-US/19f32070-46c7-4dec-8824-9942f7fc5a2c/hyperv-and-display-resolution?forum=winserverhyperv

Your only option is RDP.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.