Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8, Fedora 19 OS Hyper-V Virtual Machine

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??

like image 943
AvmnuSng Avatar asked Aug 11 '13 13:08

AvmnuSng


People also ask

Can Hyper-V run on Windows 8?

To enable Client Hyper-V on Windows 8 or Windows 8.1You can enable the Hyper-V role in Program and Features or by using Windows PowerShell.

Does Windows 8.1 support Hyper-V?

Hyper-V in Windows Server 2012 adds support for Windows 8.1 (up to 32 CPUs) and Windows Server 2012 R2 (64 CPUs); Hyper-V in Windows Server 2012 R2 adds support for Windows 10 (32 CPUs) and Windows Server 2016 (64 CPUs).

Can you run Linux VM on Hyper-V?

Hyper-V can run not only Windows but also Linux virtual machines. You can run an unlimited number of Linux VMs on your Hyper-V Server because the majority of Linux distributions are free and open source. Installing Linux on a Hyper-V VM has some features which compare to installing Windows.

What OS supports Hyper-V?

System requirements Hyper-V is available on 64-bit versions of Windows 10 Pro, Enterprise, and Education. It is not available on the Home edition. Upgrade from Windows 10 Home edition to Windows 10 Pro by opening Settings > Update and Security > Activation.


2 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

like image 167
Daniel Fisher lennybacon Avatar answered Oct 12 '22 23:10

Daniel Fisher lennybacon


(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.

like image 30
Franklin Yu Avatar answered Oct 13 '22 01:10

Franklin Yu