设为首页 收藏本站
查看: 1108|回复: 0

[经验分享] 在LINUX上安装VMware

[复制链接]

尚未签到

发表于 2015-10-9 08:25:41 | 显示全部楼层 |阅读模式
  由于项目需要,要在Linux下虚拟一个Windows,经过查找些资料,发现可一用VMware来实现,以下就是安装的步骤.
  
  首先到https://www.vmware.com/ 下载最新的安装包,比如VMware-server-1.0.5-80187.tar.gz,这个是免费版本,使用下面的命令解压后安装.
  
  1、tar -zxvf  VMware-server-1.0.5-80187.tar.gz
  
  2、cd ./vmware-distrib
  
  3、./vmware-install.pl
  
  下面按照提示选择就可以了,如果没有特殊要求,直接回车即可.
    4、安装完启动VM,提示符下输入命令:vmware,或者按照提示输入就可以起动,就可以看到VMware的界面了.
  
  开始为Linux 服务器安装Vmware Server

    安装程序会提问一些问题,并同时给出缺省的答案。

    1. 切换到超级用户权限

    $ su -
    Password:
    [iyunv@localhost root]# cd vmware-server-distrib

   2. 开始安装

    #./vmware-install.pl

   3. 选择二进制文件安装路径

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

    4. 选择相关文件安装路径

    #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]
    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] #选择文档文件安装路径

    5. 安装结束

    #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]
    The main install is now complete and you should see something similar to what follows:
    The installation of VMware Server <build number> for Linux competed successfully.
    You can decide to remove this software from your system at any time by invoking thefollowing command:     “/usr/bin/vmware-uninstall.pl”. #安装结束

    6. 启动vmware 配置

    # Before running VMware Server 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]
    此时系统会自动关闭现有的Vmware服务守护进程,如图 8 。
DSC0000.jpg
图8 系统会自动关闭现有的Vmware服务守护进程

   7. 选择图标文件安装路径

    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]

    8. 阅读接受终端用户许可协议

    Do you accept? (yes/no) yes #接受许可协议

    9. 安装相关模块

    Trying to find a suitable vmmon module for your running kernel.
    The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
    Trying to find a suitable vmmon module for your running kernel.
    None of the pre-built vmmon modules for VMware Server is suitable for your running
    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] #安装虚拟网络模块

    10. 配置网络

    Do you want networking for your virtual machines? (yes/no/help) [yes] yes
 选择网络接口名称

    Your computer has multiple Ethernet network interfaces available: eth0, eth1.
    Which one do you want to bridge to vmnet0? [eth0]
 配置vmnet0
    The following bridged networks have been defined:
.     vmnet0 is bridged to eth0
    Do you wish to configure another bridged network? (yes/no) [no]
 配置vmnet8
    Configuring a NAT network for vmnet8.
    Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
 探测DHCP 子网,自动探测,随机选择
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.127.0/255.255.255.0 appears to be unused.
    The following NAT networks have been defined:
.   vmnet8 is a NAT network on private subnet 172.16.127.0.
    Do you wish to configure another NAT network? (yes/no) [no]
 配置host-only 网络环境
    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]
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.183.0/255.255.255.0 appears to be unused.
    The following host-only networks have been defined:
  . vmnet1 is a host-only network on private subnet 172.16.183.0.
    Do you wish to configure another host-only network? (yes/no) [no]

    11. 安装内核模块

    Trying to find a suitable vmnet module for your running kernel.
    The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
    The module loads perfectly in the running kernel.

    12. 选择远程服务端口

    Please specify a port for remote console connections to use. [902]

    13. 建立perl脚本文件

    Building the VMware VmPerl Scripting API.
    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.
    Installing the VMware VmPerl Scripting API.
    The installation of the VMware VmPerl Scripting API succeeded.

    14. 生成SSL证书文件

    Generating SSL Server Certificate
    In which directory do you want to keep your virtual machine files?
   [/var/lib/vmware/Virtual Machines]

    15. 输入注册时获得的20位产品序列号如图9. 。
DSC0001.jpg
图9 输入注册时获得的20位产品序列号

    16.如果配置过程和序列号正确,系统会完成配置并且启动Vmware服务器。如图10 。
DSC0002.jpg
图10 Vmware Server配置成功界面

    17. 系统会自动在系统工具菜单建立一个:“Vmware Service Console”服务控制台的子选项。如图 11 。
DSC0003.jpg
图11 系统工具中的Vmware Service Console

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-124466-1-1.html 上篇帖子: VMware7扩展磁盘空间 下篇帖子: using raw disk in vmware fusion
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表