Newinstall hangs on hyper-v after trying to install grub

297 views
Skip to first unread message

ma...@xemi.net

unread,
Apr 21, 2016, 8:29:08 AM4/21/16
to Android-x86
Last version of android that I successfully installed and hyper on Hyper-V was 4.4.3 R3.  Had no problems, and it installed GRUB (no GPT) and booted just fine.

I was using a motherboard with a dedicated serial port that would allow me to debug easier, however the serial port has gone bad, so now I'm trying to use Hyper-V again.

However, I noticed that the latest Android builds (i.e. 5.1 and above) can not install on Hyper-V.  I'm guessing this has to do with the newinstaller changes.

Specifically, I see that after I format the partition ext4, and then it asks me if I want to install GRUB, it hangs.

I looked at the install script, and can't find where it might be hanging....

A few questions:

1.  Is there a way to add debug in the install scripts....such as printing something after each command?
2.  Any ideas why it would hang in hyper-V but work fine on real hardware?


ma...@xemi.net

unread,
Apr 21, 2016, 9:19:38 PM4/21/16
to Android-x86
I found that it hangs here in 1-install:

echo "setup (hd$d) (hd$d,$p)" | grub --device-map /hd/grub/device.map > /dev/tty5

I'm guessing the tty5 part was left over from a previous debug.  I'm using this same way to debug (except on hyper-V the serial port is ttyS0).  But, I don't think tty5 has anything to do with the issue, as its simply redirecting the output of the grub command.

So, it seems like it hangs on grub --device-map /hd/grub/device.map.... it doesn't produce any output, it just hangs..

Still debugging, but if anyone has any ideas, let me know.

Luke

unread,
Apr 21, 2016, 10:39:49 PM4/21/16
to Android-x86
Hi,

Create a gen 1 VM.
Boot android x86 select install.
Create partition (npn gpt).
Detect devices.
Select partition to install to (make sure it says sda[0-9]. not sda without a number).
Install grub
Skip gpt grub2.

Luke

Luke

unread,
Apr 21, 2016, 10:51:50 PM4/21/16
to Android-x86
After install edit grub and add vga=788 to the kernel line.

ma...@xemi.net

unread,
Apr 21, 2016, 11:49:21 PM4/21/16
to Android-x86
Thanks for the suggestion... I tried this (even including making a brand new vhd), but same result.  It hangs when trying to install GRUB.

I'm going to try backtracking and seeing what's the last build that worked.  

Are you able to get it to work on hyper-v?

ma...@xemi.net

unread,
Apr 21, 2016, 11:55:34 PM4/21/16
to Android-x86
To add to my last e-mail.... seems like 4.4-r5 was the last version that can successfully install (and boot) on Hyper-V for me.

Interestingly, both GPT and MBR (non-GPT) methods work on the 4.4-r5 build.  While neither method works on subsequent builds.

Luke

unread,
Apr 22, 2016, 12:55:24 AM4/22/16
to Android-x86
Tested working fine with latest marshmallow.

Luke

unread,
Apr 22, 2016, 12:55:37 AM4/22/16
to Android-x86

ma...@xemi.net

unread,
Apr 22, 2016, 1:20:17 AM4/22/16
to Android-x86
Thanks for confirming.. What version of Windows and Hyper-V do you have?

I tried on two separate machines, each running Windows 8, and had same result....

I did some more investigation on my side:

1. Latest marshmallow with kernel 4.4 does not work (can't install and get past grub install).
2. Latest marshmallow but using older kernel 4.0 DOES work (installs fine, gets past grub install, and boots up).

I'm guessing it might be a compatibility issue with my version of Hyper-V and the defconfigs.  Almost seems like the 4.4 kernel has issues writing to the Hyper-V VHD...
Reply all
Reply to author
Forward
0 new messages