How to change the resolution on a virtual Ubuntu machine in Hyper-V

Modified from the original poster  at the following address on 2014-11-09:

  1. Open Terminal
  2. Type: sudo nano /etc/default/grub
  3. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want].  The resolution I want is 1440x900.  So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1440x900"
  4. Write the changes and quit nano by pressing CTRL-O followed by enter to output the changed to the same file and then CTRL-X to exit.
  5. Run: sudo update-grub
  6. Reboot the virtual machine