Error while coping

 

是因为没有安装VW-TOOL

安装虚拟机工具如下:

 

 

 

 

 

 

 

 

 

 

/opt/vmware-tools-distrib

./vmware-install.pl

 

 

重启:

 

/reboot

 

 

然而有时候你会发现还是不可以哦,因为CentOS7,本来还有自带的一堆的vmware-tools,或者没有安装好,都有可能。

卸载重新来。

 

 

 

 

[root@localhost ~]# yum list installed | grep open-vm-*
open-vm-tools.x86_64                        11.0.5-3.el7_9.1           @updates 
open-vm-tools-desktop.x86_64                11.0.5-3.el7_9.1           @updates 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# yum remove open-vm-tools
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package open-vm-tools.x86_64 0:11.0.5-3.el7_9.1 will be erased
--> Processing Dependency: libhgfs.so.0()(64bit) for package: open-vm-tools-desktop-11.0.5-3.el7_9.1.x86_64
--> Processing Dependency: libvmtools.so.0()(64bit) for package: open-vm-tools-desktop-11.0.5-3.el7_9.1.x86_64
--> Processing Dependency: open-vm-tools(x86-64) = 11.0.5-3.el7_9.1 for package: open-vm-tools-desktop-11.0.5-3.el7_9.1.x86_64
--> Running transaction check
---> Package open-vm-tools-desktop.x86_64 0:11.0.5-3.el7_9.1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch       Version                Repository    Size
================================================================================
Removing:
 open-vm-tools             x86_64     11.0.5-3.el7_9.1       @updates     2.1 M
Removing for dependencies:
 open-vm-tools-desktop     x86_64     11.0.5-3.el7_9.1       @updates     476 k

Transaction Summary
================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 2.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : open-vm-tools-desktop-11.0.5-3.el7_9.1.x86_64                                                               1/2 
  Erasing    : open-vm-tools-11.0.5-3.el7_9.1.x86_64                                                                       2/2 
  Verifying  : open-vm-tools-11.0.5-3.el7_9.1.x86_64                                                                       1/2 
  Verifying  : open-vm-tools-desktop-11.0.5-3.el7_9.1.x86_64                                                               2/2 

Removed:
  open-vm-tools.x86_64 0:11.0.5-3.el7_9.1                                                                                      

Dependency Removed:
  open-vm-tools-desktop.x86_64 0:11.0.5-3.el7_9.1                                                                              

Complete!
[root@localhost ~]# 

 

 

 

 

 

 

 

 

 

后面跟着他写地址就好了:

 

 

 

 

 

 

 

[root@localhost ~]# yum list installed | grep *vm-tools*
[root@localhost ~]# cd /opt
[root@localhost opt]# ll
total 70756
drwxr-xr-x. 2 root root        6 Oct 30  2018 rh
-rw-------. 1 root root 72448981 Aug 25  2016 VMwareTools-10.0.10-4301679.tar.gz
drwxr-xr-x. 9 root root     4096 Aug 25  2016 vmware-tools-distrib
[root@localhost opt]# cd /opt/vmware-tools-distrib
[root@localhost vmware-tools-distrib]# ll
total 512
drwxr-xr-x.  2 root root     84 Aug 25  2016 bin
drwxr-xr-x.  5 root root     36 Aug 25  2016 caf
drwxr-xr-x.  2 root root     64 Aug 25  2016 doc
drwxr-xr-x.  5 root root   4096 Aug 25  2016 etc
-rw-r--r--.  1 root root 284342 Aug 25  2016 FILES
-rw-r--r--.  1 root root   2538 Aug 25  2016 INSTALL
drwxr-xr-x.  2 root root   4096 Aug 25  2016 installer
drwxr-xr-x. 15 root root   4096 Aug 25  2016 lib
drwxr-xr-x.  3 root root     20 Aug 25  2016 vgauth
-rwxr-xr-x.  1 root root    243 Aug 25  2016 vmware-install.pl
-rwxr-xr-x.  1 root root 214600 Aug 25  2016 vmware-install.real.pl
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
open-vm-tools are available from the OS vendor and VMware recommends using 
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [yes] 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] yes

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping vmware-tools (via systemctl):  [  OK  ]

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

The removal of VMware Tools 10.0.10 build-4301679 for Linux completed 
successfully.

Installing VMware Tools.

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

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

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

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

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] /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] yes

In which directory do you want to install the common agent library files? 
[/usr/lib] /usr/lib

In which directory do you want to install the common agent transient files? 
[/var/lib] /var/lib

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] /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] yes

The installation of VMware Tools 10.0.10 build-4301679 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] yes

Initializing...


(process:15431): GLib-CRITICAL **: 08:00:01.693: g_file_test: assertion 'filename != NULL' failed

Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done
Stopping vmware-tools (via systemctl):  [  OK  ]


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] yes


(process:15562): GLib-CRITICAL **: 08:00:23.348: g_file_test: assertion 'filename != NULL' failed

(process:15603): GLib-CRITICAL **: 08:00:24.072: g_file_test: assertion 'filename != NULL' failed

(process:15612): GLib-CRITICAL **: 08:00:24.666: g_file_test: assertion 'filename != NULL' failed

Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...

(process:15620): GLib-CRITICAL **: 08:00:25.335: g_file_test: assertion 'filename != NULL' failed
Detected GCC binary at "/bin/gcc".
The path "/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] no

Searching for a valid kernel header path...

(process:15660): GLib-CRITICAL **: 08:01:21.534: g_file_test: assertion 'filename != NULL' failed
Detected the kernel headers at 
"/lib/modules/3.10.0-1160.15.2.el7.x86_64/build/include".
The path "/lib/modules/3.10.0-1160.15.2.el7.x86_64/build/include" appears to be
a valid path to the 3.10.0-1160.15.2.el7.x86_64 kernel headers.
Would you like to change it? [no] no


(process:15678): GLib-CRITICAL **: 08:01:25.540: g_file_test: assertion 'filename != NULL' failed
Using kernel build system.
make: Entering directory `/tmp/modconfig-E7LvRV/vmhgfs-only'
/bin/make -C /lib/modules/3.10.0-1160.15.2.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-1160.15.2.el7.x86_64'
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/backdoor.o
/tmp/modconfig-E7LvRV/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbIn()+0xd: duplicate frame pointer save
/tmp/modconfig-E7LvRV/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbOut()+0xd: duplicate frame pointer save
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-E7LvRV/vmhgfs-only/dentry.o
/tmp/modconfig-E7LvRV/vmhgfs-only/page.c: In function ‘HgfsWbRequestWait’:
/tmp/modconfig-E7LvRV/vmhgfs-only/page.c:1649:23: warning: passing argument 3 of ‘wait_on_bit’ makes integer from pointer without a cast [enabled by default]
                       TASK_UNINTERRUPTIBLE);
                       ^
In file included from include/linux/mmzone.h:9:0,
                 from include/linux/gfp.h:5,
                 from include/linux/mm.h:9,
                 from include/linux/pagemap.h:7,
                 from /tmp/modconfig-E7LvRV/vmhgfs-only/page.c:28:
include/linux/wait.h:1047:1: note: expected ‘unsigned int’ but argument is of type ‘int (*)(void *)’
 wait_on_bit(void *word, int bit, unsigned mode)
 ^
/tmp/modconfig-E7LvRV/vmhgfs-only/page.c:1649:23: error: too many arguments to function ‘wait_on_bit’
                       TASK_UNINTERRUPTIBLE);
                       ^
In file included from include/linux/mmzone.h:9:0,
                 from include/linux/gfp.h:5,
                 from include/linux/mm.h:9,
                 from include/linux/pagemap.h:7,
                 from /tmp/modconfig-E7LvRV/vmhgfs-only/page.c:28:
include/linux/wait.h:1047:1: note: declared here
 wait_on_bit(void *word, int bit, unsigned mode)
 ^
make[2]: *** [/tmp/modconfig-E7LvRV/vmhgfs-only/page.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-E7LvRV/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1160.15.2.el7.x86_64'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-E7LvRV/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder 
feature. The rest of the software provided by VMware Tools is designed to work 
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by 
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine. 
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ] 

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)

The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes] yes

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?
[no] no

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

 
Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] yes

Do you want to enable Common Agent (caf)? [yes] yes



Detected X server version 1.20.4



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
   Starting Virtual Printing daemon:                                   done
Starting vmware-tools (via systemctl):  [  OK  ]
The configuration of VMware Tools 10.0.10 build-4301679 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

[root@localhost vmware-tools-distrib]# 
[root@localhost vmware-tools-distrib]# 
[root@localhost vmware-tools-distrib]# cd /
[root@localhost /]# ll
total 36
lrwxrwxrwx.   1 root root     7 Feb 20 23:28 bin -> usr/bin
dr-xr-xr-x.   5 root root  4096 Mar 10 08:04 boot
drwxr-xr-x.  19 root root  3300 Mar 10 08:05 dev
drwxr-xr-x. 140 root root 12288 Mar 10 08:06 etc
drwxr-xr-x.   3 root root    16 Apr 10  2018 home
lrwxrwxrwx.   1 root root     7 Feb 20 23:28 lib -> usr/lib
lrwxrwxrwx.   1 root root     9 Feb 20 23:28 lib64 -> usr/lib64
drwxr-xr-x.   2 root root     6 Apr 10  2018 media
drwxr-xr-x.   3 root root    17 Mar 10 08:00 mnt
drwxr-xr-x.   4 root root    83 Mar 10 06:31 opt
dr-xr-xr-x. 235 root root     0 Mar 10 07:46 proc
dr-xr-x---.  16 root root  4096 Mar 10 07:47 root
drwxr-xr-x.  45 root root  1300 Mar 10 08:10 run
lrwxrwxrwx.   1 root root     8 Feb 20 23:28 sbin -> usr/sbin
drwxr-xr-x.   2 root root     6 Apr 10  2018 srv
dr-xr-xr-x.  13 root root     0 Mar 10 07:46 sys
drwxrwxrwt.  28 root root  4096 Mar 10 08:06 tmp
drwxr-xr-x.  13 root root  4096 Feb 20 23:29 usr
drwxr-xr-x.  23 root root  4096 Mar  8 07:37 var
[root@localhost /]# cd /root
[root@localhost ~]# ll
total 4
-rw-------. 1 root root 2742 May  1  2020 anaconda-ks.cfg
drwxr-xr-x. 3 root root   74 Mar 10 06:55 Desktop
drwxr-xr-x. 2 root root    6 May  1  2020 Documents
drwxr-xr-x. 2 root root    6 May  1  2020 Downloads
drwxr-xr-x. 2 root root    6 May  1  2020 Music
drwxr-xr-x. 2 root root    6 May  1  2020 Pictures
drwxr-xr-x. 2 root root    6 May  1  2020 Public
drwxr-xr-x. 2 root root    6 May  1  2020 Templates
drwxr-xr-x. 2 root root    6 May  1  2020 Videos
[root@localhost ~]# cd /root/Desktop
[root@localhost Desktop]# touch 1.txt
[root@localhost Desktop]# 

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐