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
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
-
Hi. I've tested this solution with Fedora 22 with success. 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
-
1
-
Doesn't work for Fedora 26 on Windows 10 x64. FWIW, the
grub.cfg
didn't exist after fresh install. After reboot thevideo=
option doesn't appear in/proc/cmdline
. Commented Oct 17, 2017 at 20:27
(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:
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).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.
-
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 thevideo
settings, similar to what Daniel has. Commented Jan 10, 2018 at 22:50
I think it's a limitation from Microsoft.
Your only option is RDP.