Resolution of custom Android-x86 in VirtualBox

Source: Internet
Author: User

Virtual machine installation will not say, the network is more, mainly in detail how to set the resolution, in case of the development of convenient use.

1. Add Custom Resolution

After shutting down the virtual machine, Note that the numbers are lowercase x, not multiplication sign .

Method one: The corresponding virtual machine's XML file "<ExtraData>" under the new line, plus the following content

<extradataitem name= "CustomVideoMode1" value= "480x800x16"/> <extradataitem name= "CustomVideoMode2" value= " 320x480x16 "/>

Method Two: Execute the command, where "VMname" is replaced with the name of your own virtual machine

Vboxmanage setextradata "VMname" "CustomVideoMode1" "480x800x16" Vboxmanage setextradata "VMname" "CustomVideoMode2" " 320x480x16 "


2. For ease of use, the virtual machine can be set up to simplify the use (Linux-related knowledge required)

If you want Android to go to the resolution selection screen by default at boot time or start the virtual machine by default at the resolution you specify, then refer to the following steps

1. Press ALT+F1 to enter the command line after entering the Android virtual machine

2. Enter MKDIR/DATA/FS

3. Mount the hard drive using the following command

MOUNT-T hard disk format/dev/block/hard drive name/data/fs

Hard disk format for your virtual machine hard disk format, I here is ext3 hard drive name is your virtual machine

Hard drive name I this default is sda1, means the first SATA hard disk, Linx under the specific hard disk naming rules, Google's own

Mount-t ext3/dev/block/sda1/data/fs

Hang the hard disk on the/data/fs folder

4. vi/data/fs/grub/menu.list Edit boot Menu list (vi This command line editor how to use Google's own)

5. Add Vga=ask to the end of the first kernel line, as you did when you started it, save

6. Restart the virtual machine, and you will find that the resolution is queried every time the android starts.

Mkdir/data/fsmount-t ext3/dev/block/sda1/data/fsvi/data/fs/grub/menu.list

VI Simple Use Introduction

Press I to edit

Press ESC and then press: Colon W to save

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.