linux下安装vmtools方法
来源:互联网 发布:js面向对象编程思想 编辑:程序博客网 时间:2024/05/20 09:21
长期有关注网络安全博客的朋友应该有发现,最近网络安全博客里涉及linux的文章多了。呵呵,向前一篇提升liunx安全的几种方法文章就有介绍了关于linux下提升安全系数的方法。今天在虚拟机中想上网,整了半天,竟然有人跟我说是没有安装VMTOOLS的原因。以前在Ubuntu下是没有安装也能上。不过为了上网死马当活马医了。弄了篇LINUX 虚拟机上安装vmtools的文章。希望大家会喜欢。
首先启动VM_Linux系统 启动后 在虚拟机菜单栏点“虚拟机” 然后点“安装VMware Tools” 然后虚拟机会加载CD-ROM…有.TAR文件 也有RPM文件,我选择了.TAR文件(看网上的文章说兼容效果能好点),
我是对其进行双击解压的,将解压文件放在了/root的目录下面,然后新建终端,进入解压后的目录(即:/root/vmware-tools-distrib),输入 ./文件名.pl(“/”前面有个小点),之后回车,我第一次好象没有安装成功,出现了如下的结果:
[root@localhost root]# cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools. This may take from several minutes to over an hour
depending upon its size.
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]
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
Execution aborted.
然后我重新启动了一下虚拟机,重新操作了一遍,这一次成功了,出现了如下的结果:
[root@localhost root]# cd vmware-tools-distrib
[root@localhost 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.
Uninstalling the tar installation of VMware Tools.
Skipping VMware Tools services shutdown on the host: [ 确定 ]
The removal of VMware Tools 6.0.0 build-45731 for Linux completed successfully.
Thank you for having tried this software.
Installing VMware Tools. This may take from several minutes to over an hour
depending upon its size.
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]
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 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] yes
The installation of VMware Tools 6.0.0 build-45731 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
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmmemctl module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
pcnet32 18016 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.
[EXPERIMENTAL] The VMware CPU Time Accounting daemon (vmware-vmdesched) can
help increase the accuracy of CPU time accounting performed by the guest
operating system. Please refer to the VMware Knowledge Base for more details on
this capability. Do you wish to enable this feature? [no] no
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment. Would you like to enable this feature? [no] no
Detected XFree86 version 4.3.0.
Please choose one of the following display sizes that X will start with (1 -
15):
[1] “640×480″
[2] “800×600″
[3]< “1024×768″
[4] “1152×864″
[5] “1280×800″
[6] “1152×900″
[7] “1280×1024″
[8] “1376×1032″
[9] “1400×900″
[10] “1400×1050″
[11] “1440×900″
[12] “1680×1050″
[13] “1600×1200″
[14] “1920×1200″
[15] “2364×1773″
Please enter a number between 1 and 15:
[3] 3
XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-8 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:18:24 EST 2003 PFMarkers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: “/tmp/vmware-config0/XF86ConfigLog.3622″, Time: Mon Jul 21 01:44:44 2008
(++) Using config file: “/tmp/vmware-config0/XF86Config.3622″
X is running fine with the new config file.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定 ]
Guest filesystem driver: [ 确定 ]
Mounting HGFS shares: [失败]
Guest memory manager: [ 确定 ]
Guest vmxnet fast network device: [ 确定 ]
Blocking file system: [ 确定 ]
DMA setup: [ 确定 ]
Guest operating system daemon: [ 确定 ]
The configuration of VMware Tools 6.0.0 build-45731 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 the following command:
“/usr/bin/vmware-toolbox” during an X server session.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
To make use of the virtual printer, you will need to restart the CUPS service
If you wish to configure any experimental features, please run the following
command: “vmware-config-tools.pl –experimental”.
Enjoy,
–the VMware team
就此VMTools安装成功。
遇到这样的情况
Unable to create symbolic link "/usr/lib/vmware-tools/bin"
Unable to create symbolic link "/usr/lib/vmware-tools/libconf"
Unable to create symbolic link "/usr/lib64/libvmcf.so"
就输入
sudo rm -rf /usr/lib/vmware-tools/libconf
sudo rm -rf /usr/lib/vmware-tools/bin
sudo rm -rf /usr/lib/vmware-tools/
- linux下安装vmtools方法
- linux下安装vmtools
- linux下安装VMtools
- linux下安装VMtools
- Ubuntu系统下安装VMtools的方法
- Linux 下安装VMTools(RPM 方式)
- linux下vmtools的安装过程
- Linux下安装vmtools图文详解
- Linux下安装vmtools图文详解
- Linux下安装vmtools图文详解
- Linux下安装VMTools的问题解决
- vmware下的linux安装vmtools
- 【Linux】VMware中Redhat9下安装VMTools
- VMware中的suse linux安装VMtools方法
- Linux之VMtools的安装方法
- unubtu下安装VMtools
- unubtu下安装VMtools
- fedora下安装vmtools
- eclipse svn插件报错
- 开源软件之七宗罪以及背后的阴谋
- C:\windows\system32\config\systemprofile\下创建的desktop 与服务有关
- swfobject.js
- 写在末日来临之前的2012 CSDN 博客之星评选
- linux下安装vmtools方法
- 网络木马丛生安全软件如何工作
- DuiLib——xml配置项
- 在 Java 的泛型类型中使用通配符
- Linux中find命令大全
- 反射学习总结
- Asp.Net 配置文件说明
- 用opencv写的BP程序,不知道opencv里面是怎样实现的,结果还行。就是具体的误差曲线,交叉验证没做到
- Extend ext3 filesystem for RH5 Virtual Machine running in vCluster