热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

linux系统中安装vmware虚拟机环境

首先大家要下载5.5.3版forlinux的包,如图所示,因为版本低的会出现找不到内核问题。然后将该包解压缩。(我将该包全部文件解压到桌面上的vmware-distrib目录中)进入终端窗口后,输入cd/root/Desktop/vmware-distrib并回车,现在终端提示符变更为[root@
首先大家要下载5.5.3版for linux 的包,如图所示,因为版本低的会出现找不到内核问题。

            
然后将该包解压缩。(我将该包全部文件解压到桌面上的vmware-distrib目录中)进入终端窗口后,输入cd /root/Desktop/vmware-distrib 并回车,现在终端提示符变更为
[root@localhost vmware-distrib]# ,输入 ./vmware-install.pl 并回车出现以下提示:
Creating a new installer database using the tar3 format.
Installing the content of the package.
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]
回车后出现:
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
回车后出现:
In which directory do you want to install the library files?
[/usr/lib/vmware]
回车后出现:
The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]
输入y 后并回车,系统自动建立相关文件夹并复制相关文件,需要等一会,可以看见光标闪呀闪,然后会出现:
In which directory do you want to install the manual files?
[/usr/share/man]
回车后出现:
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]
回车后出现:
The path "/usr/share/doc/vmware" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]
输入y 并回车后出现:
The installation of VMware Workstation 5.5.3 build-34685 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.pl".
Before running VMware Workstation for the first time, you need to configure it
by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]
第一段的意思是告诉用户将来可以用/usr/bin/vmware-uninstall.pl 命令来卸载该软件
第二段的意思是在该虚拟机第一次运行前必须对它用/usr/bin/vmware-config.pl 这个命令进行配置,你现在是否执行?当然了,回车,然后会出现下面的提示:
Making sure services for VMware Workstation are stopped.
Stopping VMware services:
Virtual machine monitor [确定]
You must read and accept the End User License Agreement to continue.Press enter
to display it.
最后一段话是让用户阅读并接受该软件的授权许可,按回车键显示,你也可以按住回车键不放,会发现屏幕在飞快地向上滚动,同时最下面的一行会有一个百分比数字在增加,全部显示完毕后会出现:
Do you accept? (yes/no)
这里必须输入y,然后出现以下提示:
Thank you.
Configuring fallback GTK+ 2.4 libraries.
In which directory do you want to install the mime type icons?
[/usr/share/icons]
回车后出现:
What directory contains your desktop menu entry files? These files have
a .desktop file extension. [/usr/share/applications]
回车后出现:
In which directory do you want to install the application's icon?
[/usr/share/pixmaps]
回车后出现:
Trying to find a suitable vmmon module for your running kernel.
None of the pre-built vmmon modules for VMware Workstation is suitable for
yourrunning kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
输入y 并回车后出现:
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18-1.2798.fc6/build/include]
回车后出现:
Extracting the sources of the vmmon module.
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
The module loads perfectly in the running kernel.
Do you want networking for your virtual machines? (yes/no/help) [yes]
最后一行是问你是否需要虚拟机能够运行网络,当然选是,输入y 并回车出现:
Configuring a bridged network for vmnet0.
Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0]
这里是让你配置真实网卡与虚拟网卡桥接的,注意,第二段可能每个人的机器显示会不一样,如果机器上只有一块网卡就没有选择的余地了,因为我家里的台式机有两块网卡,eth1 是连接ADSL宽带用的,eth0是与笔记本电脑进行双机互联用的,所以我选eth0,请大家根据自己的实际情况配置,输入eth0 后回车出现:
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
你是否需要配置另一个桥接网络,这里默认的选项是no,回车后出现:
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]
回车后出现:
Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]
Probing for an unused private subnet (this can take some time)...
Either your host is not connected to an IP network, or its network
configuration does not specify a default IP route. Consequently, the subnet
172.16.40.0/255.255.255.0 appears to be unused.
This system appears to have a DHCP server configured for normal use. Beware
that you should teach it how not to interfere with VMware Workstation's DHCP
server. There are two ways to do this:
1) Modify the file /etc/dhcpd.conf to add something like:
subnet 172.16.40.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
2) Start your DHCP server with an explicit list of network interfaces to deal
with (leaving out vmnet8). e.g.:
dhcpd eth0
Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.
Hit enter to continue.
按一下回车键并出现:
Do you wish to configure another NAT network? (yes/no) [no]
回车后出现:
Do you want to be able to use host-only networking in your virtual machines?
[yes]
回车后出现:
Configuring a host-only network for vmnet1.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]
回车后出现:
Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.
Hit enter to continue.
回车,系统在进行相关配置后出现:
Do you wish to configure another host-only network? (yes/no) [no]
回车后出现:
Extracting the sources of the vmnet module.
Building the vmnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
CC [M] /tmp/vmware-config0/vmnet-only/netif.o
CC [M] /tmp/vmware-config0/vmnet-only/bridge.o
CC [M] /tmp/vmware-config0/vmnet-only/procfs.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
WARNING: could not open /tmp/vmware-config0/vmnet-only/includeCheck.h:
Invalid argument
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
The module loads perfectly in the running kernel.
Starting VMware services:
Virtual machine monitor [确定]
Virtual ethernet [确定]
Bridged networking on /dev/vmnet0 [确定]
Host-only networking on /dev/vmnet1 (background) [确定]
Host-only networking on /dev/vmnet8 (background) [确定]
NAT service on /dev/vmnet8 [确定]
The configuration of VMware Workstation 5.5.3 build-34685 for Linux for this
running kernel completed successfully.
You can now run VMware Workstation by invoking the following command:
"/usr/bin/vmware".
Enjoy,
--the VMware team
到此VMware虚拟机安装完毕,自动返回到终端提示符状态下,输入exit退出终端。现在你可以在菜单中的系统工具中找到VmwareWorkstation 图标,单击一下就可以运行了,第一次运行会出现下图:

                       
点击Accept按钮后出现就可以进入虚拟机工作窗口了。其实,该虚拟机软件的安装还是非常人性化,大家对照英文提示一步一步操作即可,基本选默认就行。


推荐阅读
  • 从理想主义者的内心深处萌发的技术信仰,推动了云原生技术在全球范围内的快速发展。本文将带你深入了解阿里巴巴在开源领域的贡献与成就。 ... [详细]
  • 本文详细介绍了如何正确设置Shadowsocks公共代理,包括调整超时设置、检查系统限制、防止滥用及遵守DMCA法规等关键步骤。 ... [详细]
  • Jupyter Notebook多语言环境搭建指南
    本文详细介绍了如何在Linux环境下为Jupyter Notebook配置Python、Python3、R及Go四种编程语言的环境,包括必要的软件安装和配置步骤。 ... [详细]
  • 本文详细介绍了如何搭建一个高可用的MongoDB集群,包括环境准备、用户配置、目录创建、MongoDB安装、配置文件设置、集群组件部署等步骤。特别关注分片、读写分离及负载均衡的实现。 ... [详细]
  • 本文探讨了有效学习专业技能的方法,包括编程语言、操作系统、软件组件及前沿技术的探索,旨在为初学者提供一套系统的自学指南。 ... [详细]
  • Python 领跑!2019年2月编程语言排名更新
    根据最新的编程语言流行指数(PYPL)排行榜,Python 在2019年2月的份额达到了26.42%,稳坐榜首位置。 ... [详细]
  • 解决JavaScript中法语字符排序问题
    在开发一个使用JavaScript、HTML和CSS的Web应用时,遇到从SQLite数据库中提取的法语词汇排序不正确的问题,特别是带重音符号的字母未按预期排序。 ... [详细]
  • 本文探讨了在一个使用Mongoid框架的项目中,如何处理当HABTM(has_and_belongs_to_many)关系中的逆向关联设置为nil时,子对象无法正确持久化的问题。 ... [详细]
  • Markdown 编辑技巧详解
    本文介绍如何使用 Typora 编辑器高效编写 Markdown 文档,包括代码块的插入方法等实用技巧。Typora 官方网站:https://www.typora.io/ 学习资源:https://www.markdown.xyz/ ... [详细]
  • 理解浏览器历史记录(2)hashchange、pushState
    阅读目录1.hashchange2.pushState本文也是一篇基础文章。继上文之后,本打算去研究pushState,偶然在一些信息中发现了锚点变 ... [详细]
  • 从CodeIgniter中提取图像处理组件
    本指南旨在帮助开发者在未使用CodeIgniter框架的情况下,如何独立使用其强大的图像处理功能,包括图像尺寸调整、创建缩略图、裁剪、旋转及添加水印等。 ... [详细]
  • Android与JUnit集成测试实践
    本文探讨了如何在Android项目中集成JUnit进行单元测试,并详细介绍了修改AndroidManifest.xml文件以支持测试的方法。 ... [详细]
  • 探讨符合特定需求的个人网盘选择,包括分享功能、WebDAV支持及长期稳定性等。 ... [详细]
  • importjava.io.*;importjava.util.*;publicclass五子棋游戏{staticintm1;staticintn1;staticfinalintS ... [详细]
  • 深入解析WebP图片格式及其应用
    随着互联网技术的发展,无论是PC端还是移动端,图片数据流量占据了很大比重。尤其在高分辨率屏幕普及的背景下,如何在保证图片质量的同时减少文件大小,成为了亟待解决的问题。本文将详细介绍Google推出的WebP图片格式,探讨其在实际项目中的应用及优化策略。 ... [详细]
author-avatar
yukolin1
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有