Ubuntu16在VMWare中使用共享文件夹

安装 VMWare-tools 后共享文件夹一直无法使用,在网上折腾了好多方法,最后发现成功了。

多安装几次 VMWare-tools 吧,正确的时候如下:

[email protected]:~/Desktop$ cd vmware-tools-distrib/
[email protected]:~/Desktop/vmware-tools-distrib$ ls
bin  caf  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl  vmware-install.real.pl
[email protected]:~/Desktop/vmware-tools-distrib$ sudo ./vmware-install.pl
[sudo] password for leozheng:
The installer has detected an existing installation of open-vm-tools on this
system and will not attempt to remove and replace these user-space
applications. It is recommended to use the open-vm-tools packages provided by
the operating system. If you do not want to use the existing installation of
open-vm-tools and attempt to install VMware Tools, you must uninstall the
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] 

A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes] 

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done

The removal of VMware Tools 10.0.0 build-2977863 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] 

What is the directory that contains the init scripts?
[/etc/init.d] 

In which directory do you want to install the daemon files?
[/usr/sbin] 

In which directory do you want to install the library files?
[/usr/lib/vmware-tools] 

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] 

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] 

The installation of VMware Tools 10.0.0 build-2977863 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] 

The file /usr/bin/vmware-hgfsclient that this program was about to install
already exists.  Overwrite? [no] yes

The file /usr/bin/vmhgfs-fuse that this program was about to install already
exists.  Overwrite? [no] yes

Initializing...

Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done
Stopping VMware Tools services in the virtual machine:
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [yes] 

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] 

Thinprint provides driver-free printing. Do you wish to enable this feature?
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
   Starting Virtual Printing daemon:                                   done
   Checking acpi hot plug                                              done
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   VMware Automatic Kmods:                                             done
   Guest filesystem driver:                                            done
   Mounting HGFS shares:                                               done
   VMware User Agent:                                                  done
The configuration of VMware Tools 10.0.0 build-2977863 for Linux for this
running kernel completed successfully.

Enjoy,

--the VMware team

[email protected]:~/Desktop/vmware-tools-distrib$ 
[email protected]:~/Desktop/vmware-tools-distrib$ lsmod | grep vm
vmw_vsock_vmci_transport    32768  0
vsock                  32768  1 vmw_vsock_vmci_transport
vmw_balloon            20480  0
vmw_vmci               61440  2 vmw_vsock_vmci_transport,vmw_balloon
vmw_pvscsi             24576  0
vmxnet3                49152  0
vmwgfx                204800  3
ttm                    90112  1 vmwgfx
drm_kms_helper        131072  1 vmwgfx
drm                   311296  6 ttm,drm_kms_helper,vmwgfx

lsmod 的执行结果中还是没有 vmhgfs!但是 /mnt/hgfs 中已经出现了共享目录。

时间: 2024-08-06 03:43:53

Ubuntu16在VMWare中使用共享文件夹的相关文章

设置Vmware中Kali_linux 共享文件夹

kali_linux_2018.1 安装 Vmware-Tools 创建与 windows 的共享文件夹 vmware 设置共享目录 安装 Vmware-Tools [email protected]:~# apt-get install open-vm-tools-desktop fuse 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 fuse 已经是最新版 (2.9.7-1). open-vm-tools-desktop 已经是最新版 (2:10.

Unbutu在VMWare中挂载共享文件夹

第一,安装VMTools,步骤自行搜索,安装成功后重启虚拟机. 第二,重启后,在虚拟机管理页面设置共享目录,选择总是启用,开启虚拟机. 第三,在终端进入挂载目录cd /mnt/hgfs/,通过命令sudo vmware-hgfsclient 查看共享文件夹.如果出现共享文件夹,说明可以开始下一步,否则说明虚拟机设置共享文件夹没有成功(我曾因笔记本屏幕尺寸问题,导致设置页面看不到"确认"按钮,所以一直无法成功设置,此时可以开启VMWare全屏,就能看到按钮). 第四,尝试使用命令sudo

设置VMware中Kali 共享文件夹

(软件环境: Vmware workstion15, Kali Linux2019.3) 1. VMware设置共享目录 2. 安装VMware-Tools 命令: apt-get install open-vm-tools-desktop fuse 3. 创建目录 命令: mkdir -p /mnt/hgfs/sharedir 4. 挂载共享文件夹 命令: /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs/sharedir/ -o subtype=vmhgfs-fu

在 Linux 客户机中装载共享文件夹

启用共享文件夹后,除默认位置/mnt/hgfs外,您还可以将共享文件夹中的一个或多个目录/子目录装载到文件系统中的任意位置. 使用mount命令可将所有共享.某一个共享或共享中的某个子目录装载到文件系统的任意位置. 装载命令语法 命令 说明 mount -t vmhgfs .host:/ /home/user1/shares 将所有共享装载到 /home/user1/shares mount -t vmhgfs .host:/foo /tmp/foo 将名为foo的共享装载到/tmp/foo m

SQL Server 2012将数据库备份到网络中的共享文件夹

把计算机computer1 中的数据库备份到计算机computer2(IP:192.168.0.130)中的一个共享文件夹下 在computer2中的F盘下建一个共享文件夹叫DBBackupShare,注意在安全tab页内要把Everyone加进去. 在computer1和computer2计算机中各建立一个用户,都是管理员组的,用户名和密码必须一样, cmd命令行 给计算机添加用户,用户名是sql Net user sql 123 /add 把用户sql添加到管理员组里 Net localgr

IIS7站点/虚拟目录中访问共享文件夹(转)

IIS7.0站点/虚拟目录中访问共享 目的:实现一个2008serve的IIS的虚拟目录(通过网络路径(UNC)的形式,共享在另外一个2008服务器上) 准备工作 1.运行组策略编辑器(gpedit.msc) 找到本地安全策略-本地策略-安全选项子项中的:网络安全:LAN管理器身份验证级别,默认是“没有定义”,更改为“发送LM和NTLM响应”. 2.共享资源服务器为 ShareServer,IP地址为:192.168.100.10: 3.Web服务器为 WebServer,IP地址为:192.1

如何在VirtualBox 虚拟机中挂载共享文件夹

啊,好长时间没写博客了,最近有点忙~~ 不得不说 VirtualBox 对于一些不想装很多个系统又很想实验新系统的人来说确实是神器: 哈哈,个人还是比较爱玩这些个各种各样的Linux 发型版的,但是不得不说其中有的是不熟,还有的是实在不适合做长期使用的操作系统(比如主打界面的ElementaryOS 以及超像MacOS的梨子PearOS),所以我自己常年使用Debian ,而这些想玩的只能放在虚拟机中玩玩咯.我用的是 VirtualBox 4.3.10 版,今天想试试Mint 下能不能正常安装

vmware 下linux 共享文件夹消失

今天遇到了vmware下linux和宿主win7系统共享文件,突然在linux下消失的问题 环境:vmware10.0.0下装了centos, 主机系统是win7. 背景:事情的初衷是想让win7 下的文件能够和linux 共享,不用单独拷贝(麻烦). 问题:先在vmware中,设置了共享文件夹,win7系统共享文件夹,然后就去linux中找共享文件,之前都可以找到,今天开机发现消失了. 解决:于是google, 得知可能是vmtools 更新. 新装这个工具,之前以为为这个工具就是,鼠标灵活进

centos7+VMware Workstation创建共享文件夹

1.第一步设置宿主机共享文件夹路径 2.挂载VMware Tools,如下操作会将tools以光盘挂载点的方式进入到系统中. 3.centos7 挂载存有VMware Tools的光盘并进行安装 1)为避免安装Tools是报错,预先安装编译等环境 yum install *headers -y yum -y install perl gcc make kernel-devel yum install open-vm-tools 2)挂载光盘 mkdir /mnt/cdrom mount /dev