Hyper-v Ubuntu sets the resolution, hyper-vubuntu
Today, I have nothing to do with installing Ubuntu16.04 in Microsoft's Virtual Machine Hyper-v.
The landlord uses xuanlong p6, but after the installation, There is only 1024 × 768 resolution, which is very embarrassing, so I searched the internet for a lot of methods to set resolution, various installation drivers, install the miscellaneous... finally, I decided to record the most useful methods to help myself and help people who needed them.
The landlord prefers to use vim. At first, he installed Ubuntu without vim. He can switch to the root user and then use the command
Apt-get install vim or sudo apt-get install vim // the latter does not need to use the root user.
Root default password setting method:
Sudo passwd // enter the command to set the Default root Password
Su // enter the command to switch to the root user
Then we started our discussion:
1. edit the following file: vim/etc/default/grub2. find the row where grub_linline_linux_default = "" and add the value video = hyperv_fb: [Resolution] (640x480 800x600x1024 ...) for example: GRUB_CMDLINE_LINUX_DEFAULT = "video = hyperv_fb: 1920x1080" 3. after the modification, Press Esc and press Shift +: Enter wq to save and exit. 4. run sudo update-grub5. after reboot restarts the machine, the resolution changes. If you set multiple resolutions, set one in the display.