Changing the default screen resolution for Ubuntu hosted in Hyper-V

Dear Future Robert,

You keep forgetting to write this down, so I’m putting it in a blog post. If you have Ubuntu (or presumably any Debian Linux mutation) running in Hyper-V, and when you connect to the console and the screen is too big, here is how you change that. Edit the grub file:

$ sudo pico /etc/default/grub

Sudo runs it as admin, pico is a MUCH better editor than “vi” (eyeroll), and the rest is the path to the file. Modify the “GRUB_CMDLINE_LINUX_DEFAULT” line from this:

GRUB_CMDLINE_LINUX_DEFAULT=””

to this:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=hyperv_fb:800×600″

where “800×600” is your desired screen resolution for that console window. Then, and this is important – run:

$ sudo update-grub

Then reboot. You’ll see that the console now takes on that new resolution! (I re-found this information from this source blog post)

Signed,

Past Robert

Posted in Cloud Computing, Computers and Internet, General, Infrastructure, Linux, Uncategorized
One comment on “Changing the default screen resolution for Ubuntu hosted in Hyper-V
  1. […] create a new virtual machine in Hyper-V and install the OS. Then, see here for fixing the default resolution. […]

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 5 other followers

%d bloggers like this: