Hyper-v Ubuntu sets the resolution, hyper-vubuntu

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.