ESXi 5.1虚拟机无法再从其他虚拟机安装NFS共享

时间:2015-01-28 00:54:42

标签: linux ubuntu centos vmware nfs

我正在运行VMWare ESXi 5.1作为主机。

在该主机中,我运行了多个虚拟机:

  • NiY 我的主服务器(CentOS版本5.10(最终版))
  • downloadstation 我的下载服务器(Ubuntu 14.04.1 LTS)
  • 以及其他一些不重要的

我还有一个HTPC,它使用来自NiY的TFTP引导xbmcbuntu iso,并为写入时的副本安装额外的NFS共享。

下载服务器从NiY安装NFS共享

我的问题是,由于我将downloadserver从Ubuntu 12升级到Ubuntu 14,它无法再从NiY挂载NFS共享。 HTPC仍然可以挂载所有NFS共享。

到目前为止我尝试过:

  • 通过主机名和IP对所有计算机中的所有计算机进行Ping操作
  • 授予/ etc / exports
  • 中的所有访问权限
  • 在NiY上禁用iptables(downloadserver未运行iptables)
  • 使用showmount检查NiY的导出,这有效: http://pug205.nl/stackoverflow/showmount.jpg
  • 在NiY上安装nfs共享,这可以正常工作
  • 使用Ubuntu 12安装新的虚拟机并装载,工作
  • 使用CentOS 7安装新的虚拟机并安装,工作
  • 通过NFS挂载我的NAS, 所有计算机
  • 工作
  • 检查NiY上的日志,他们没有提到任何与NFS相关的内容
  • 登录downloadstation包含一些信息
    • RPC:已注册的命名为UNIX套接字传输模块。
    • RPC:已注册的udp传输模块。
    • RPC:已注册的tcp传输模块。
    • RPC:已注册的tcp NFSv4.1反向通道传输模块。
    • FS-Cache:Netfs' nfs'注册用于缓存
    • 安装knfsd(版权所有(C)1996 okir@monad.swb.de)。
    • init:idmapd-mounted(/ mnt / media)主进程(296)被TERM信号杀死
    • init:由TERM信号杀死的statd-mount(/ mnt / media)主进程(297)
    • NFS:注册id_resolver密钥类型
    • 已注册密钥类型id_resolver
    • 已注册的密钥类型id_legacy
    • init:由TERM信号
    • 杀死的故障安全主进程(542)
    • nfs:服务器{IP NiY}没有响应,仍在尝试

最后一行不断出现在日志中

的/ etc /出口:

#XBMC Frodo 12.2 XBMCBUNTU
/export/XBMC/xbmcbuntu-12.2.Intel-NVIDIA *(ro,nohide,async,mp,no_root_squash,insecure,no_subtree_check)
/export/nfsroot/xbmcbuntu-12.2.Intel-NVIDIA/{MAC ADDRESS HTPC} {IP HTPC}(rw,nohide,async,no_root_squash,insecure,no_subtree_check)

#XBMC Gotham 13.0 XBMCBUNTU
/export/XBMC/xbmcbuntu-13.0~gotham_amd64 * (ro,nohide,async,mp,no_root_squash,insecure,no_subtree_check)
/export/nfsroot/xbmcbuntu-13.0~gotham_amd64/{MAC ADDRESS HTPC} {IP HTPC (rw,nohide,async,no_root_squash,insecure,no_subtree_check)

#Media share
/mnt/data/media *(rw,nohide,sync,no_root_squash,no_subtree_check)

我尝试使用详细日志记录并运行Wireshark来检查是否有任何内容发送到NiY(通过主机名或IP地址):

root@downloadstation:~# mount -vvv -t nfs niy:/mnt/data/media /mnt/Download/
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "niy:/mnt/data/media"
mount: node:  "/mnt/Download/"
mount: types: "nfs"
mount: opts:  "(null)"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "niy:/mnt/data/media"
mount: external mount: argv[2] = "/mnt/Download/"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
mount.nfs: timeout set for Wed Jan 28 01:30:59 2015
mount.nfs: trying text-based options 'vers=4,addr={IP NiY},clientaddr={IP downloadstation}'

直到按[CTRL] + [C]

,它才会挂起

这是使用之前的mount命令在NiY上运行的Wireshark的输出(仅显示来自和下载站的流量)

No.     Time        Source               Destination         Protocol Info
    514 3.258878    IP downloadstation   IP NiY              NFS      V4 COMP Call <EMPTY> PUTROOTFH PUTROOTFH;GETFH GETFH;GETATTR GETATTR
    515 3.258898    IP NiY               IP downloadstation  TCP      nfs > 859 [ACK] Seq=1 Ack=121 Win=46 Len=0 TSV=314460502 TSER=78612280
   1135 35.288077   IP downloadstation   IP NiY              SMB      Echo Request
   1136 35.288140   IP NiY               IP downloadstation  SMB      Echo Response
   1137 35.288223   IP downloadstation   IP NiY              TCP      37709 > microsoft-ds [ACK] Seq=43 Ack=43 Win=2296 Len=0 TSV=78620288 TSER=314492532
   1681 63.319756   IP downloadstation   IP NiY              TCP      [TCP Keep-Alive] 859 > nfs [ACK] Seq=120 Ack=1 Win=229 Len=0 TSV=78627296 TSER=314460502
   1682 63.319769   IP NiY               IP downloadstation  TCP      [TCP Keep-Alive ACK] nfs > 859 [ACK] Seq=1 Ack=121 Win=46 Len=0 TSV=314520564 TSER=78612280
   1683 63.319790   IP downloadstation   IP NiY              TCP      859 > nfs [FIN, ACK] Seq=121 Ack=1 Win=229 Len=0 TSV=78627296 TSER=314460502
   1684 63.358905   IP NiY               IP downloadstation  TCP      nfs > 859 [ACK] Seq=1 Ack=122 Win=46 Len=0 TSV=314520604 TSER=78627296
   1944 78.359607   IP downloadstation   IP NiY              TCP      859 > nfs [RST, ACK] Seq=122 Ack=1 Win=229 Len=0 TSV=78631056 TSER=314520604
   1945 78.359639   IP downloadstation   IP NiY              TCP      [TCP Port numbers reused] 859 > nfs [SYN] Seq=0 Win=29200 Len=0 MSS=1460 TSV=78631056 TSER=0 WS=7
   1946 78.359654   IP NiY               IP downloadstation  TCP      nfs > 859 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=314535605 TSER=78631056 WS=7
   1947 78.359715   IP downloadstation   IP NiY              TCP      859 > nfs [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSV=78631056 TSER=314535605
   1948 78.359737   IP downloadstation   IP NiY              NFS      V4 COMP Call <EMPTY> PUTROOTFH PUTROOTFH;GETFH GETFH;GETATTR GETATTR
   1949 78.359743   IP NiY               IP downloadstation  TCP      nfs > 859 [ACK] Seq=1 Ack=121 Win=5888 Len=0 TSV=314535605 TSER=78631056
   1950 78.359760   IP downloadstation   IP NiY              NFS      V4 COMP Call <EMPTY> PUTROOTFH PUTROOTFH;GETFH GETFH;GETATTR GETATTR
   1951 78.359763   IP NiY               IP downloadstation  TCP      nfs > 859 [ACK] Seq=1 Ack=241 Win=5888 Len=0 TSV=314535605 TSER=78631056
   5308 95.447441   IP downloadstation   IP NiY              SMB      Echo Request
   5309 95.447488   IP NiY               IP downloadstation  SMB      Echo Response
   5310 95.447545   IP downloadstation   IP NiY              TCP      37709 > microsoft-ds [ACK] Seq=85 Ack=85 Win=2296 Len=0 TSV=78635328 TSER=314552692
  13721 138.455024  IP downloadstation   IP NiY              TCP      [TCP Keep-Alive] 859 > nfs [ACK] Seq=240 Ack=1 Win=29312 Len=0 TSV=78646080 TSER=314535605
  13722 138.455045  IP NiY               IP downloadstation  TCP      [TCP Keep-Alive ACK] nfs > 859 [ACK] Seq=1 Ack=241 Win=5888 Len=0 TSV=314595700 TSER=78631056
  16183 155.606860  IP downloadstation   IP NiY              SMB      Echo Request
  16184 155.606928  IP NiY               IP downloadstation  SMB      Echo Response
  16185 155.607035  IP downloadstation   IP NiY              TCP      37709 > microsoft-ds [ACK] Seq=127 Ack=127 Win=2296 Len=0 TSV=78650368 TSER=314612853

1 个答案:

答案 0 :(得分:0)

我已经弄明白了。通过强制版本3,我可以再次安装。我会一直在寻找它为什么不能使用第4版,但现在我很高兴。