-1

How can the screen resolution of, the Guest OS: Oracle-Linux 7, running on Hyper-V, be changed? The reason this is required is that, there are scroll bars on the side and bottom that need to be traversed to get to the end of the Guest screen and this can get tedious.

I've tried installing the "Linux Integration Services Version 4.0 for Hyper-V". This was done based on previous experience with VMware, VBox and Hyper-V that needed some sort of "Guest Additions" or "Integration Services" to be installed in the Guest OS for its screen resolution to be adjustable.

For the "Linux Integration Services Version 4.0 for Hyper-V" to be installed, the Kernel the Guest OS was running needed to be the "Redhat Kernel" and not the Oracle-Linux 7 default UEK. I followed this to get change the Kernel.

# grub2-set-default 0
# grub2-mkconfig -o /etc/grub2.cfg
# init 6

*init 6 : reboots the OS.

This did not work, for me.

Next I tried something similar to this, which says the following(for Ubuntu):

  • the poster has added "video=hyperv_fb:1920x1080" to /boot/grub2/grub.cfg. When I went to repeat this I noted the message about not editing /boot/grub2/grub.cfg directly so I have added the line in /etc/default/grub instead.

Did not Help either.

One more thing to note: I am a complete beginner with this OS.

Santa
  • 559
  • 5
  • 15
  • I would love to know why this was down voted though, this was an actual question I had. – Santa Aug 15 '16 at 10:42

1 Answers1

1

Here is what I finally had to do to get this fixed(after a full day of searching).

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

The source for this is here and here.

The "1024x768" part of the code can be changed as required.

I suspect that installing the "Linux Integration Services Version 4.0 for Hyper-V" helped as well; Since the "hyperv_fb" is being used in the code.

Next, I will need to find out as to how I can enable "sharing the clipboard" between the Host and Guest OSs

Mat
  • 1,536
  • 1
  • 17
  • 21
Santa
  • 559
  • 5
  • 15
  • Update: Just running the Grubby command given here was enough, without the "Linux Integration Services" on a fresh installation of Linux that was booted with the Linux Kernel(Oracle Linux Server, with Linux 3.10.0-123.el7x86_64). This probably works even if the server was booted other Kernels, but that needs to be tested. – Santa Dec 31 '15 at 02:05