Documentation‎ > ‎

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 /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'>
<type arch='i686' machine='pc'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
<clock offset='localtime'/>
<!--disk type='file' device='cdrom'>
<source file='/home/linuxosa/VM/eeepc-20090820.iso'/>
<target dev='hdc' bus='ide'/>
<disk type='file' device='disk'>
<source file='/home/linuxosa/VM/android.img'/>
<target dev='hda' bus='ide'/>
<interface type='bridge' model='rtl8139' >
<model type='rtl8139' />
<source bridge='br0'/>
<target dev='vnet0'/>
<input type='mouse' bus='ps2' />
<graphics type='vnc' port='-1' autoport='yes' listen="" />
<model type='vga' vram='9216' heads='1'/>
<sound model='ac97'/>