Sometimes, when booting an image for the first time, it will appear to be hung at the boot screen.
The maximum memory for the Intel HAXM driver on a 32-bit system is 1.6GB. In the previous example, the device RAM size should not be larger than 3GB since only 3GB were allocated to Intel HAXM. When creating the image, don’t set the Device RAM Size option larger than the amount of RAM allocated to the Intel HAXM driver. This allows a good balance of memory for the Intel HAXM driver as compared to the system memory.
For example, if your system has 6GB of installed memory, then use 3GB for the Intel HAXM driver. When installing Intel HAXM, set the driver to use half of the available RAM in the system. To automatically run this command whenever a new terminal is started, you can add this command to your ∼/.bash_profile script.