Sizing the Console in Hyper-V

When deploying a virtual guest in Hyper-V that offers no GUI (text console only) you may find that the default size of the terminal window is quite small. You can address this through the boot options of your terminal (speaking to Linux OS here). In my case I’m using Ubuntu as example:

sudo vi /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT="" where "" might be "quiet splash" instead. Add the following at the end of the line, inside the double quotes section:

video=hyperv_fb:800x600

Or use which ever resolution you need. Save and quit the text editor then update grub with:

sudo update-grub

After doing all this you’ll need to restart the VM to see the changes.