Android-x86

Run Android on your PC

NFS How To

---Submitted by linuxosa --

Now I am able to mount an NFS fold from Android-x86 running as a KVM guest (VNC as display). The steps I did:

1. Using eeepc-20090820.iso and install it;
2. Boot to debug mode;
3. modprobe sunrpc lockd nfs;
4. netcfg eth0 dhcp;
5. mount -t nfs -o nolock 192.168.xx.xxx:/path/nfs /sdcard, must use the busybox
mount here, toolbox mount doesn't work in my case, always report "Invalid argument".
I don't know why.
6. then exit the shell so you enter android;
7. Alt+F1 to enter shell again;
8. again: netcfg eth0 dhcp;
9. setprop net.dns1 your-dns-server;
10. route add default gw your-default-gw;

At this point, I am able to browser internet and use OI file manager to access the files in the nfs shared folder.

The virsh xml file for the VM:

<domain type='kvm'>
<name>Android</name>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='i686' machine='pc'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>preserve</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<!--disk type='file' device='cdrom'>
<source file='/home/linuxosa/VM/eeepc-20090820.iso'/>
<target dev='hdc' bus='ide'/>
</disk-->
<disk type='file' device='disk'>
<source file='/home/linuxosa/VM/android.img'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge' model='rtl8139' >
<model type='rtl8139' />
<source bridge='br0'/>
<target dev='vnet0'/>
</interface>
<input type='mouse' bus='ps2' />
<graphics type='vnc' port='-1' autoport='yes' listen="0.0.0.0" />
<video>
<model type='vga' vram='9216' heads='1'/>
</video>
<sound model='ac97'/>
</devices>
</domain>