备案 控制台
开发者社区 开发与运维 文章 正文

虚拟机VMware与主机共享文件介绍

简介:

我们经常会在 Windows平台安装虚拟机VMware,不管是出于实验测试还是工作需要,伴随而来的就是经常需要在Windows系统和虚拟机系统之间进行共享数据 文件,例如,需要将Window主机上的Oracle安装镜像文件拷贝到VMware上的Linux系统下....诸如此类需求,两者之间共享数据文件的 方法其实蛮多的,下面介绍几种比较常用的共享文件方法(有些详细介绍、有些略有介绍):

1: 通过FTP共享文件数据

使用这类方法共享文件数据,通常虚拟机系统是Linux操作系统,当然Windows系统也一样。前提条件是其中一个必须安装有FTP组件。例如如下所示:

本 机Windows 7 64位专业版,虚拟机Oracle Linux 5.7,我如果想将主机的文件拷贝到Oracle Linux 5.7,我可以通过SecureCRT下的STFP进行数据文件的拷贝传输。当然你也可以利用FTP软件进行数据文件传输。在此不做细说。如果虚拟机是 Windows系统,可以在主机或虚拟机安装FileZilla FTP Client之类的FTP软件来实现FTP共享文件数据。

clip_image001

2:通过共享文件夹功能

虚 拟机VMware提供了在宿主机与虚拟机系统之间交换文件的共享文件夹(Shared Folder)功能。不管虚拟机操作系统是Linux还是Windows都可用。你可以通过设置( Settings)>共享文件夹(Shared Folder)来设置。但是此功能选项必须要安装虚拟机工具(VMware Tools),否则如下所示,否则该功能选项不可用。

clip_image002

 

安装虚拟机工具步骤如下所示:

1:在对应虚拟机的设置选项(Settings)下,为虚拟机光驱指定虚拟机系统的镜像文件。 注意:在执行下面步骤前,必须确保虚拟机的电源开启、虚拟机系统正在运行。

clip_image003

2:在VM下选择"Install VMware Tools".

clip_image004

然后安装虚拟机组件工具,详细步骤如下所示:

[root@DB-Server ~]# cd /mnt
[root@DB-Server mnt]# mkdir cdrom
[root@DB-Server mnt]# mount /dev/cdrom  /mnt/cdrom
[root@DB-Server mnt]# cd /mnt/cdrom
[root@DB-Server cdrom]# cp  VMwareTools-8.8.2-590212.tar.gz /tmp
[root@DB-Server cdrom]#tar xz
[root@DB-Server tmp]# ls
gconfd-root     orbit-root           VMwareTools-8.8.2-590212.tar.gz
keyring-qO15Cg  ssh-EWUeHQ4064       vmware-tools-distrib
mapping-root    virtual-root.9mZzaq
[root@DB-Server tmp]# cd vmware-tools-distrib/
[root@DB-Server vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
 
 
[root@DB-Server vmware-tools-distrib]# ./vmware-install.pl 
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:
   Guest operating system daemon:[  OK  ]
   Virtual Printing daemon:[  OK  ]
   VMware User Agent (vmware-user):[  OK  ]
   Blocking file system:[  OK  ]
   Unmounting HGFS shares:[  OK  ]
   Guest filesystem driver:[  OK  ]
   VM communication interface socket family:[  OK  ]
   VM communication interface:[  OK  ]
 
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to 
remove it.  Somebody else apparently did it already.
 
File /etc/vmware-tools/vmware-user.desktop is backed up to 
/etc/vmware-tools/vmware-user.desktop.old.2.
 
File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.2.
 
File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is 
backed up to 
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.2.
 
This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to 
remove it.  Somebody else apparently did it already.
 
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove 
it.  Somebody else apparently did it already.
 
This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to 
remove it.  Somebody else apparently did it already.
 
This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to 
remove it.  Somebody else apparently did it already.
 
This program previously created the directory /etc/vmware-tools, and was about 
to remove it. Since there are files in that directory that this program did not
create, it will not be removed.
 
File /etc/X11/xorg.conf is backed up to /etc/X11/xorg.conf.old.2.
 
The removal of VMware Tools 8.8.2 build-590212 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/rc.d] 
 
What is the directory that contains the init scripts? 
[/etc/rc.d/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] 
 
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 8.8.2 build-590212 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] 
 
Initializing...
 
 
Making sure services for VMware Tools are stopped.
 
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:[  OK  ]
   Virtual Printing daemon:[  OK  ]
   VMware User Agent (vmware-user):[  OK  ]
   Blocking file system:[  OK  ]
   Unmounting HGFS shares:[  OK  ]
   Guest filesystem driver:[  OK  ]
   VM communication interface socket family:[  OK  ]
   VM communication interface:[  OK  ]
 
 
[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base 
for more details on this capability. Do you wish to enable this feature? 
[no] no
 
 
Before you can compile modules, you need to have the following installed... 
 
make
gcc
kernel headers of the running kernel
 
 
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/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...
Detected the kernel headers at 
"/lib/modules/2.6.32-200.13.1.el5uek/build/include".
The path "/lib/modules/2.6.32-200.13.1.el5uek/build/include" appears to be a 
valid path to the 2.6.32-200.13.1.el5uek kernel headers.
Would you like to change it? [no] 
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmci-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmci-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vsock-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notify.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notifyQState.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/stats.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/util.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vsock-only/vsock.mod.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vsock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vsock-only'
cp -f vsock.ko ./../vsock.o
make: Leaving directory `/tmp/vmware-root/modules/vsock-only'
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmxnet3-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmxnet3-only/vmxnet3_drv.o
  CC [M]  /tmp/vmware-root/modules/vmxnet3-only/vmxnet3_ethtool.o
  CC [M]  /tmp/vmware-root/modules/vmxnet3-only/vmxnet3_shm.o
  LD [M]  /tmp/vmware-root/modules/vmxnet3-only/vmxnet3.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmxnet3-only/vmxnet3.mod.o
  LD [M]  /tmp/vmware-root/modules/vmxnet3-only/vmxnet3.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmxnet3-only/vmxnet3.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmxnet3-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmxnet3-only'
cp -f vmxnet3.ko ./../vmxnet3.o
make: Leaving directory `/tmp/vmware-root/modules/vmxnet3-only'
 
The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=pvscsi to override.
 
The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.  Use the flag 
--clobber-kernel-modules=vmmemctl to override.
 
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] 
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmci-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmhgfs-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpName.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/filesystem.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/fsutil.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/inode.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/link.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/message.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/module.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/page.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/request.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/rpcout.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/stubs.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/super.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/tcp.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/transport.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/vmci.o
  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmhgfs-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmhgfs-only'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-root/modules/vmhgfs-only'
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmxnet-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmxnet-only/vmxnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmxnet-only/vmxnet.mod.o
  LD [M]  /tmp/vmware-root/modules/vmxnet-only/vmxnet.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmxnet-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'
 
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make -C /lib/modules/2.6.32-200.13.1.el5uek/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.ko.unsigned
  NO SIGN [M] /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-200.13.1.el5uek'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
 
!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.
 
Would you like to enable VMware automatic kernel modules?
[no] no
 
 
 
Detected X version 7.1
 
 
 
Do you want to change the starting screen display size? (yes/no) [no] 
 
 
X is running fine with the new config file.
 
Creating a new initrd boot image for the kernel.
   Checking acpi hot plug[  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:[  OK  ]
   VM communication interface:[  OK  ]
   VM communication interface socket family:[  OK  ]
   Guest filesystem driver:[  OK  ]
   Mounting HGFS shares:[  OK  ]
   Blocking file system:[  OK  ]
   Guest operating system daemon:[  OK  ]
   Virtual Printing daemon:[  OK  ]
The configuration of VMware Tools 8.8.2 build-590212 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 or by invoking "/usr/bin/vmware-toolbox" from the command line 
during an X server session.
 
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

官网关于手工安装升级虚拟机的文档如下所示:

Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
 
For Linux virtual machines, you manually install or upgrade VMware Tools by using the command line.
 
Install the latest version of VMware Tools to enhance the performance of the virtual machine's guest operating system and improve virtual machine management. When you power on a virtual machine, if a new version of VMware Tools is available, you see a notification in the status bar of the guest operating system.
 
Prerequisites
 
■ Power on the virtual machine. 
 
■ Verify that the guest operating system is running. 
 
■ Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system. 
 
Procedure
 
1 On the host, from the Workstation menu bar, select VM > Manage > Install VMware Tools. 
 
If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools.
 
2 In the virtual machine, log in to the guest operating system as root and open a terminal window. 
 
3 Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image. 
 
If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed as something like this:
 
/dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)4 If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive. 
 
a If a mount point directory does not already exist, create it. 
 
mkdir /mnt/cdromSome Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom. Modify the command to reflect the conventions that your distribution uses.
 
b Mount the CD-ROM drive. 
 
mount /dev/cdrom /mnt/cdromSome Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the command to reflect the conventions that your distribution uses.
 
5 Change to a working directory (for example, /tmp). 
 
cd /tmp
 
6 Delete any previous vmware-tools-distrib directory before you install VMware Tools. 
 
The location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib.
 
7 List the contents of the mount point directory and note the filename of the VMware Tools tar installer. 
 
ls mount-point8 Uncompress the installer. 
 
tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gzThe value x.x.x is the product version number, and yyyy is the build number of the product release.
 
If you attempt to install a tar installation over an RPM installation, or the reverse, the installer detects the previous installation and must convert the installer database format before continuing.
 
9 If necessary, unmount the CD-ROM image. 
 
umount /dev/cdrom If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.
 
10 Run the installer and configure VMware Tools. 
 
cd vmware-tools-distrib./vmware-install.plUsually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
 
11 Respond to the prompts by pressing Enter to accept the default values, if appropriate for your configuration. 
 
12 Follow the instructions at the end of the script. 
 
Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks.
 
What to do next
 
If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
 

然后在Options > Shared Folders下选择“Always enabled"选项。当然你也可以选择"Enabled until next power off or suspend"选项

clip_image005

clip_image006

clip_image007

clip_image008

clip_image009

此时在/mnt/hgfs下就会有一个tmp目录,在主机往E:\VMWARE下拷贝文件就能在Linux系统/mnt/hgfs/tmp目录下访问这些文件了。

对于虚拟机系统是Windows平台的,可以如下设置。然后接下来也是一些大家所熟知的基本配置.

clip_image010

3:组建局域网共享文件夹

此方法适用于虚拟机系统为Windows系统。网上有比较多的资料,都是一些基本配置,弄起来也有一些麻烦.感觉没啥可以说的.在此略过.

4:利用虚拟光驱共享文件

这种方法有点奇葩,第一次见到这种共享文件的方法,我当时的反应就是居然可以这样共享文件。其实就是利用软件将文件打包成镜像文件,然后在虚拟机设置(Settings)——“CD/DVD(IDE)”里面指定ISO镜像文件位置。 这种方法适用于虚拟机系统是Linux、Windows系统。不足之处就是只能从主机拷贝文件到虚拟机,不能从虚拟机拷贝文件到主机,而且折腾起来相当麻烦。

clip_image011

5:利用网盘实现共享文件

这个是我在论坛里面看到的一种方法,没有尝试过。这种方法只适用于小文件的共享,大文件共享适用这类方法不太合适。毕竟网络传输是瓶颈.

潇湘隐者
目录
相关文章
敏叔V587
|
3天前
|
大数据 Linux 虚拟化
OVA Import:一个最快速度打造Linux虚拟机的操作 | Linux vmware
OVA Import:一个最快速度打造Linux虚拟机的操作 | Linux vmware
敏叔V587
9 0
1436047922066202
|
3天前
|
存储 SQL 数据挖掘
服务器数据恢复—误删除VMware虚拟机vmdk文件的数据恢复案例
服务器数据恢复环境: 某大厂PS4000服务器,服务器上部署VMware ESXi虚拟化平台。 服务器故障: 机房断电,重启后服务器中的某台虚拟机不能正常启动。管理员查看虚拟机配置文件,发现无法启动的虚拟机的配置文件除了磁盘文件以外其他配置文件全部丢失,xxx-flat.vmdk磁盘文件和xxx-000001-delta.vmdk快照文件还存在。联系VMware原厂工程师进行诊断,VMware原厂工程师尝试新建一个虚拟机,但发现存储空间不足,于是将故障虚拟机下的xxx-flat.vmdk磁盘文件删除了。VMware工程师重新建了一个虚拟机,分配了固定大小的虚拟磁盘,为虚拟机安装了Window
1436047922066202
120 5
服务器数据恢复—误删除VMware虚拟机vmdk文件的数据恢复案例
月亮给我抄代码
|
6天前
|
Shell Linux 开发工具
Vmware 虚拟机挂起恢复后发现无法 Ping 通,无法连接到主机
在Linux主机上,以`root`用户停止NetworkManager服务并重启网络: ```shell systemctl stop NetworkManager systemctl restart network ``` 或修改网卡配置文件`ifcfg-ens33`,添加`NM_CONTROLLED="no"`,然后重启`network`服务: ```shell vim /etc/sysconfig/network-scripts/ifcfg-ens33 systemctl restart network ```
月亮给我抄代码
22 6
XError_xiaoyu
|
17天前
|
网络协议 Linux 网络安全
虚拟机Vmware详细安装(包含kali,win7与winxp三系统相互ping与安装)
本文是一篇关于虚拟机安装和配置的教程,包括使用VMware安装虚拟机和在虚拟机中安装Kali Linux、Windows 7和Windows XP系统。作者提供了详细的步骤和截图说明,指导读者如何下载和安装VMware,以及如何从提供的链接下载预配置的操作系统镜像文件。安装过程中,重点介绍了如何选择安装路径、接受许可协议、启动安装过程,并强调了不要勾选某些选项以保持默认设置。此外,还提到了如何在虚拟机中配置网络,确保三个系统在同一网段并能互相ping通。最后,作者布置了一些练习,如熟悉操作系统的使用、获取IP地址和互相通信,以及鼓励读者享受学习网络安全的过程。
XError_xiaoyu
93 9
我菜就爱学
|
17天前
|
存储 Linux 虚拟化
虚拟机(vmware)中安装linux系统
虚拟机(vmware)中安装linux系统
我菜就爱学
42 0
渐暖
|
17天前
|
网络协议 Linux 程序员
【Linux】虚拟机ipv4地址消失,主机ping不通
【Linux】虚拟机ipv4地址消失,主机ping不通
渐暖
48 0
XPcode7
|
17天前
|
程序员 Linux KVM
【qemu虚拟化】将img镜像文件转换为VMware虚拟机
QEMU是一个开源的硬件虚拟化器,能在多种平台如x86、ARM、PowerPC上运行,支持虚拟化不同体系结构的操作系统。它具有硬件仿真、虚拟化支持、磁盘和网络仿真、快照回滚及可扩展性等特点。要使用QEMU,首先从[官网](https://www.qemu.org/download/)下载,然后通过命令行运行进行转换。转换后的vMDK文件可在VMware中导入,创建新的虚拟机进行使用。
XPcode7
279 1
【qemu虚拟化】将img镜像文件转换为VMware虚拟机
技术小阿哥
|
虚拟化 Windows
Vmware虚拟机的克隆
技术小阿哥
1407 0
科技小能手
|
Linux 虚拟化
用VMware克隆虚拟机时,克隆好的linux系统网卡启动不起来的解决方法
科技小能手
1085 0
科技小能手
|
虚拟化 数据安全/隐私保护 Linux
VMware克隆虚拟机
科技小能手
1032 0

热门文章

最新文章

  • 1
    阿里云携手 VMware 共建云原生 IoT 生态,聚开源社区合力打造领域标准
  • 2
    SCOM 2012 SP1服务器上安装和配置Veeam MP for VMware
  • 3
    VMware架构设计第一期视频下载及问题征集
  • 4
    通过VMM2008控制台添加及管理Vmware Esx 3.5
  • 5
    《VMware 网络技术:原理与实践》—— 1.2 重复的工作
  • 6
    centos6.4安装Vmware exsi CLI
  • 7
    Jumbo聊VMware终端用户计算
  • 8
    使用PowerGUI管理你的VMware ESX
  • 9
    为VMware虚拟主机添加新磁盘
  • 10
    vmware克隆server2008R2造成SID冲突
  • 1
    下载Ubantu镜像文件、创建虚拟机以及ubantu安装详细教程(系统性学习day1)
    134
  • 2
    virsh一个管理虚拟机的命令行工具
    44
  • 3
    倚天产品介绍|倚天虚拟化:虚拟机热迁移特性介绍
    202
  • 4
    云计算中的虚拟机管理
    49
  • 5
    如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
    131
  • 6
    如何在 VM 虚拟机中安装 Windows 7 操作系统保姆级教程(附链接)
    133
  • 7
    如何在 VM 虚拟机中安装 Windows XP 操作系统保姆级教程(附链接)
    242
  • 8
    云计算基础与实战:从虚拟机到容器化应用
    48
  • 9
    如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
    139
  • 10
    如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
    245
  • 相关课程

    更多
  • Java 虚拟机原理
  • KVM 虚拟化
  • Linux磁盘与文件系统管理
  • 相关电子书

    更多
  • 基于英特尔 SSD 的虚拟机缓存解决SSD
  • Virtualizing Spark on Vmware vSphere
  • 低代码开发师(初级)实战教程
  • 相关实验场景

    更多
  • 部署Linux主机管理系统WDCP
  • 下一篇
    2024年阿里云免费云服务器及学生云服务器申请教程参考

    深圳SEO优化公司长葛外贸网站制作多少钱十堰SEO按效果付费报价龙岩网站推广系统哪家好遵义营销网站推荐赤峰网站制作推荐龙岗百姓网标王推广玉溪网站优化按天计费汕头外贸网站建设公司阳泉关键词排名包年推广公司龙岩推广网站多少钱德宏网络推广多少钱邵阳网站建设设计价格南通推广网站公司资阳网站搭建公司霍邱百度竞价包年推广报价张北关键词排名包年推广推荐蚌埠网站推广多少钱中山网站制作设计公司怒江关键词按天收费公司许昌网站建设日照企业网站制作阳江网站优化软件公司海西网站推广系统哪家好巢湖模板制作哪家好大芬SEO按效果付费哪家好吉祥SEO按天收费价格坂田外贸网站设计报价甘孜seo网站优化哪家好钦州企业网站设计公司日照百度爱采购公司歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

    深圳SEO优化公司 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化