Currently when I run a test on a VM it opens the chrome browser correctly, but it doesn't open the android emulator.
androiddriver = new AndroidDriver(new URL("http:// capabilities);
Error Connect to VM IP;4728 failed: Connection refused.
Doesn't look like it matter. You cannon run emulator within a VM.