虚拟机要选用桥接方式,并且配置好IP 202.114.146.4 255.255.255.0 202.114.146.254 重启或者 /etc/init.d/networkin restart
开发板也配置好ip ifconfig eth0 202.114.146.1
1.在虚拟机ubuntu中 apt-get install nfs-kernel-server
2 在虚拟机 vi /etc/exports
/home/nfs *(rw,sync,no_root_squash)
3 在虚拟机启动nfs和portmap
/etc/init.d/portmap start
/etc/init.d/nfs-kernel-server start
4 在开发板上挂载
mount -o nolock 202.114.146.4:/home/nfs /mnt (/home/nfs 为虚拟机里面的目录 /mnt为板子的目录)
如果虚拟机要上网的话改为net模式,networt Connection中的 wired 中的 Auto eth0点击编辑--> IPV4 setting 中的Method改为Automatic(DHCP)模式
在虚拟机上查看挂载的节点为 showmount -e