vmware server FileNotFound: A file was not found

简介: 在使用vmware server时,创建data store,提示FileNotFound: A file was not found,折腾了很久,原来都是权限惹的祸。

在使用vmware server时,创建data store,提示FileNotFound: A file was not found,折腾了很久,原来都是权限惹的祸。

1、情况描述
环境: win7 64bit + vmware server
      在D盘中创建有VM文件夹,下面包含多个虚拟机,由于下面其文件夹下的虚拟机最近很少使用,因此未发现有任何问题。
      最近需要用到该路径下的虚拟机,在添加data store时,一直提示文件没有找到。
      起初以为是vmware的几个服务没有启动,一看都处于启动状态,重启几次,问题依旧,看来应该排除服务异常的情况。
      Google了N多网页,才找到罪魁祸首,下面是截图
     
2、为虚拟机所在驱动器添加权限

上面的图示表明D盘VM文件夹下的权限仅仅robinson.cheng域用户有完全控制的权限

同样,从上面的图中也可以看出D盘之下的所有内容也只有robinson.cheng域用户有完全控制的权限

我们下面为D盘添加新的权限,如果仅仅修改VM文件夹的权限是不够的。

点击change permision

点击add,选择locations,指定为当前的计算机名,同时通过advanced按钮寻找到Administrators组,最终结果如下:

为刚刚加的administrator组添加full control完全控制权限

接下来一路点击Ok即可。再次添加data store成功。

注意,如果不成功,请查看该用户是否也属于__vmware__用户组。

更多有关vmware的错误:

Symptoms

  • You cannot add a datastore
  • You may experience one of the following errors when trying to add a datastore: 
    • FileNotFound: A file was not found. 
    • DuplicateName: The name already exists.

Purpose

This article provides troubleshooting steps to eliminate factors that may prevent you from adding a datastore.

Resolution

Please validate each troubleshooting step below. Each step will provide instructions in order to eliminate possible causes and take corrective action as necessary. The steps are ordered in the most appropriate sequence to isolate the issue and identify the proper resolution. Please do not skip a step.
 
Note: If you perform corrective action in any of the following steps, try to add the datastore again.
  1. Confirm that you have the correct permissions. Depending on the operating system of the VMware host installation computer, authenticate as either the local Administrator user or as root.
  2. Verify that the value entered in the Name field is not already in use by an existing datastore.
  3. Verify that the value entered in the Directory Path field exists on the filesystem. This value must point to an existing directory.

    Note: If CIFS is selected (as opposed to Local Datastore), verify that the file share location can be accessed from the computer where the VMware host is installed using the same information that has been entered in the datastore creation wizard.

  4. Confirm that you are not using a subdirectory of a directory path already that is directly defined by an existing datastore.

    For example:

    Name Directory Path Notes
    Datastore1
    Datastore2

    D:\Datastore
    D:\Datastore\NewDatastore

    Invalid. The directory path D:\Datastore is already in use by Datastore1 and cannot be used by Datastore2.
    Datastore1
    Datastore2
    D:\Datastore
    D:\NewDatastore
    Valid. The directory path D:\NewDatastore is not in use by any existing datastore and is available for use.
    Datastore1
    Datastore2

    D:\Datastores\Datastore1
    D:\Datastores\Datastore2

    Valid. Both datastores use a common D:\Datastores directory path, but neither one point directly to it.
Note: If your problem still exists after trying the steps in this article, please:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009452

目录
相关文章
|
Ubuntu Linux 虚拟化
基于VM14+ Ubuntu 16.04安装VMware Tools(VM同主机file交互的工具)以及使用的骚操作
首先,给已经装好的Ubuntu 16.04换上映像文件: 在安装VMware Tools时,需要修改指向VMware Tools所在(VMware Workstation\linux.iso),在这个路径下有个linux.iso文件,其中提供了linux操作系统平台需要的一些工具文件,当然包括VMware Tools安装文件。
1349 0
|
2月前
|
虚拟化
vmware克隆虚拟机后没有ip地址的问题
解决vmware克隆虚拟机后没有内网ip的问题
|
3月前
|
SQL 存储 数据挖掘
【虚拟机数据恢复】VMware虚拟机文件被误删除的数据恢复案例
虚拟机数据恢复环境: 某品牌R710服务器+MD3200存储,上层是ESXI虚拟机和虚拟机文件,虚拟机中存放有SQL Server数据库。 虚拟机故障: 机房非正常断电导致虚拟机无法启动。服务器管理员检查后发现虚拟机配置文件丢失,所幸xxx-flat.vmdk磁盘文件和xxx-000001-delta.vmdk快照文件还在。服务器管理员在尝试恢复虚拟机的过程中,将原虚拟机内的xxx-flat.vmdk删除后新建了一个虚拟机,并分配了精简模式的虚拟机磁盘和快照数据盘,但原虚拟机内的数据并没有恢复。
【虚拟机数据恢复】VMware虚拟机文件被误删除的数据恢复案例
|
Linux 虚拟化 数据安全/隐私保护
VMware使用 - 虚拟机克隆
如果已经安装了一台Linux操作系统,没有必要重新安装,只需要克隆就可以了,有两种方式。
23 0
|
4月前
|
存储 网络协议 虚拟化
如何操作VMware ESXi虚拟机的迁移?
如何操作VMware ESXi虚拟机的迁移?
196 1
|
4月前
|
存储 虚拟化 数据中心
如何操作VMware ESXi虚拟机的克隆?
如何操作VMware ESXi虚拟机的克隆?
86 1
|
3月前
|
Linux 虚拟化 数据安全/隐私保护
【Linux】VMware安装虚拟机- Windows + Linux
【1月更文挑战第20天】【Linux】VMware安装虚拟机- Windows + Linux
|
28天前
|
算法 虚拟化 C++
VMware虚拟机无法自适应和拖拽复制粘贴和共享目录问题
VMware虚拟机无法自适应和拖拽复制粘贴和共享目录问题
85 0
|
1天前
|
程序员 Linux KVM
【qemu虚拟化】将img镜像文件转换为VMware虚拟机
QEMU是一个开源的硬件虚拟化器,能在多种平台如x86、ARM、PowerPC上运行,支持虚拟化不同体系结构的操作系统。它具有硬件仿真、虚拟化支持、磁盘和网络仿真、快照回滚及可扩展性等特点。要使用QEMU,首先从[官网](https://www.qemu.org/download/)下载,然后通过命令行运行进行转换。转换后的vMDK文件可在VMware中导入,创建新的虚拟机进行使用。
31 1
【qemu虚拟化】将img镜像文件转换为VMware虚拟机
|
1月前
|
Linux 虚拟化 数据安全/隐私保护
使用VMware安装linux虚拟机
使用VMware安装linux虚拟机
使用VMware安装linux虚拟机