主题 : 求教问题关于nfs挂接文件 复制链接 | 浏览器收藏 | 打印
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
楼主  发表于: 2009-08-18 22:04

 求教问题关于nfs挂接文件

在虚拟机下如何配置nfs,不影响主机上网,我的机器是无线上网的,怎么弄
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-08-18 22:50
简单的说,
1. 把开发板接到你的无线路由器上;
2. 把虚拟机的网卡设成bridge模式+DHCP;(确保你的无线路由器的DHCP Server功能是开着的)
3 开发板启动时,把nfs server地址设定成虚拟机获得IP地址,自身网卡地址设定为DHCP,即在内核命令行上指定ip=dhcp:eth0:off
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
2楼  发表于: 2009-08-19 09:51
但是在Linux当中每次mount后,总提示
mount:192.168.0.123:failed,reason given by server:权限不够
是什么原因,如何解决
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-08-19 09:58
1. 给出你操作的步骤和终端输出
2. 检查你的/etc/exports文件中对应目录的权限
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
4楼  发表于: 2009-08-19 14:54
我就是不知道怎么配置网络,我机器上有一个无线网络,两个虚拟机的网络连接,还有一个本地连接,请问如果挂接nfs,是不是要关掉无线网连接,还有那两个虚拟机的网络连接,只开一个本地连接,另外在虚拟机redhat里还有一个连接 ,怎么设置,我现在头大了,搞不明白,bz能帮我细说下么??渴望解答,谢谢
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-08-19 15:10
引用第1楼kasim于2009-08-18 22:50发表的  :
简单的说,
1. 把开发板接到你的无线路由器上;
2. 把虚拟机的网卡设成bridge模式+DHCP;(确保你的无线路由器的DHCP Server功能是开着的)
3 开发板启动时,把nfs server地址设定成虚拟机获得IP地址,自身网卡地址设定为DHCP,即在内核命令行上指定ip=dhcp:eth0:off

中文看得懂吧,还是哪一步我还写的不够清楚?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
6楼  发表于: 2009-08-19 20:18
哦 ,谢谢版主的耐心指教!!!谢谢了
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
7楼  发表于: 2009-08-19 20:34
郁闷了,还是不行,我想在ho me 目录下挂接同一主机根文件下的一个目录,mou n t 的后出现这样的提示
[root@localhost /]# mount -t nfs 192.168.1.113: /arm2440 /home/huxinghua/nfs
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .

这是什么意思?
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
8楼  发表于: 2009-08-20 14:55
问题已解决,不过还的谢谢楼主的耐心解答
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
级别: 新手上路
UID: 59300
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2011-11-22
最后登录: 2011-11-29
9楼  发表于: 2011-11-22 17:05

 回 7楼(zhuimengcany) 的帖子

我也碰到了这样的问题,怎么解决的。谢谢。