Breaking News

How to setup Android in VM (virtual machine).


How to setup Android in VM (virtual machine).

How to add "nomodeset xforcevesa" and fix a not booting virtual machine 

1. Installing Virtual Machine and Launching the VM

The first step is, of course, installing Virtual Machine. To do so, download the software from the official website and follow the simple install process.

Once you’ve got Virtual Machine installed and your Android ISO ready to go, you’ll want to open up Virtual Machine and click “New” to create a new VM. You’ll need to configure a name and file location, and it’s also recommended that you set the type to “Other” and the version to “Other/Unknown (64-bit)” (or the 32-bit version if you downloaded a 32-bit ISO). Doing so can avoid some compatibility issues later on.

 








 

The next stage of the VM creation process is to make a new virtual hard drive for your virtual machine. Make sure to select the option to “create a virtual hard disk now” and hit next. Any file type will work, the default of VDI is perfectly functional. Again, hit next, and set the file to be a “Fixed Size”. Finally, configure where on your hard drive you want to save your new virtual drive, and how big a hard drive you need. The minimum hard drive size required for the Android-x86 image is 8GB. Depending on what you are planning to do with the virtual machine a hard drive of 16GB should be more than enough and shouldn’t be too much of a drain on your computer’s resources.

 

 Configuring the VM

The next stage is to configure the amount of memory (RAM) that the VM is allocated.  The maximum number is based on the system resources of your computer – you can’t use a 16GB machine to give your VM 32GB of RAM! The absolute minimum that you should allocate is 2GB, but somewhere between 6 and 8GB of RAM is recommended. Remember, this VM needs the same sort of resources a physical mobile handset would have, so more is generally better.

In the settings, your first stop is the “Processor” tab under “System”. Here, you can configure the number of CPU cores the VM will have. You should increase this to at least two but preferably more. Just like RAM, this is the same as you wouls see in a physical mobile handset, so more is better.

Tip: The Android-x86 developers warn that only assigning one virtual CPU core to the VM is likely to cause a high chance of system crashes. 

The maximum number of CPU cores you can allocate depends on how many cores your computer’s CPU has. Make sure to leave at least two CPU cores to your operating system, although four is better.

Tip: Only physical CPU cores (rather than logical hyperthreaded cores) can be reliably assigned to virtual machines, so don’t go into the red portion of the slider, or you may encounter stability issues.




  1. Boot in debug mode (second option in boot menu)

  2. When booting stops press 'Enter' and enter command mount -o remount,rw /mnt

  3. Command cd /mnt/grub

  4. Command vi menu.lst

  5. Press 'i' to enter edit mode

  6. Replace quiet parameter in first config with 'nomodeset xforcevesa video=1920x1080' or use own params.You can also add depth buffer like this video=1280x720x32 or add dpi setting video=1280x720x32 DPI=400

  7. Press 'Esc', type ':w', press 'Enter' to save.

  8. Press 'Esc', type ':x', press 'Enter' to exit.

  9. Type reboot -f

    Thats all!

 



No comments:

Post a Comment

Designed & Published By... TRICKS TO SOLVED