ubuntu安装nfs
1. 服务端安装
apt-get install nfs-kernel-server -y
2. 客户端安装
apt-get install nfs-common -y
3. 编辑服务端配置文件
vim /etc/exports
#在文件的最后添加想要共享的文件
/nfsroot *(rw,sync,no_root_squash)
4. 启动服务
/etc/init.d/nfs-kernel-server start
5. 挂载使用
mount -t nfs 10.0.2.15:/nfsroot /mnt -o nolock
6. 配置永久挂载
vim /etc/fstab
192.168.10.206:/controller01 /var/lib/nova/instances nfs defaults,_netdev 0 0