How could I use VirtualBox with NAT for android-x86 4.3?

1,315 views
Skip to first unread message

kc liu

unread,
Oct 16, 2013, 2:54:57 AM10/16/13
to andro...@googlegroups.com
Hi , all,

I get android-x86 jb-x86 source code and build successfully.
But I can not setup virtualbox environment with NAT for android-x86 4.3,
even if I download 20130725 iso, NAT is always not working.
20130228 is Ok, is it because this version support Ethernet(DHCP only)?

Can anyone tell me what should I do?
I'd surveyed in this group but still not find what I need.
Thank you.



Masaki Muranaka

unread,
Oct 17, 2013, 9:39:52 PM10/17/13
to andro...@googlegroups.com
Hi,

> But I can not setup virtualbox environment with NAT for android-x86 4.3,
> even if I download 20130725 iso, NAT is always not working.

I checked it on VirtualBox 4.2.18 r88780 / OSX host. Ethernet is
working even if I set NAT.
I attach my screenshot.
(Messages in the window are Japanase. But it's enough to get the feel, right?)



2013/10/16 kc liu <ray.k...@benq.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Android-x86" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-x86...@googlegroups.com.
> To post to this group, send email to andro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-x86.
> For more options, visit https://groups.google.com/groups/opt_out.



--
--
Masaki Muranaka
Monami-ya LLC, Japan.
スクリーンショット 2013-10-18 10.35.34.png

kc liu

unread,
Oct 21, 2013, 3:13:45 AM10/21/13
to andro...@googlegroups.com

Thanks, Muranaka-san,

There's no problem to understand your screenshot.
It seems my question is not clear enough.
I do some experiments with VirtualBox 4.2.18 r88780

1. 
build-20130228 ISO (android 4.2)
It works fine behind a proxy to access internet by NAT(eth0) and host-only(eth1)

2.
Build 20130725 ISO (android 4.3)
a.  It works fine without proxy when enables NAT but disable host-only.
      - I using the command " netcfg eth1 down" to disable eth1(host-only).
      - I guess you're this kind of environment?

b.  It didn't work behind a proxy when enable NAT and enable/disable host-only.

I really wanna know what I lost,thanks.

Masaki Muranaka

unread,
Oct 21, 2013, 6:25:43 AM10/21/13
to andro...@googlegroups.com
Hi, I didn't append eth1. I'm not sure but it may be one of the reason.
I'll check it later. Thanks,

2013/10/21 kc liu <ray.k...@benq.com>:

Masaki Muranaka

unread,
Oct 21, 2013, 6:41:24 AM10/21/13
to andro...@googlegroups.com
Hi liu,
I checked the issue. (finished in a short time less than I estimated. :-)

> Build 20130725 ISO (android 4.3)

Exactly I re-generated similar situation you reported.
eth0 is not activated when we configure eth0 (as NAT) and eth1 (as host-only)

You'll activate eth0 by executing "netcfg eth0 dhcp" manually for now.
And it should be fixed by reviewing init scripts.


2013/10/21 Masaki Muranaka <mon...@monami-ya.jp>:

kc liu

unread,
Oct 22, 2013, 6:18:10 AM10/22/13
to andro...@googlegroups.com

Thanks so much.
Although I still can not access internet even if netcfg eth0 dhcp.
Anyway, I will try to find out what difference between 20130725 and 20130228.
It seems I need to study more.




a於 2013年10月21日星期一UTC+8下午6時41分24秒寫道:
Hi liu, 


Masaki Muranak

kc liu

unread,
Oct 23, 2013, 4:26:49 AM10/23/13
to andro...@googlegroups.com
Very funny.
When I using Genymotion, I noticed that its eth0 uses host-only and eth1 uses NAT.
So I switch my settings.
After that, it's working.
I can access internet and adb connect at the same time.

Reply all
Reply to author
Forward
0 new messages