Linux系统下安装VMware虚拟机

Linux系统下安装VMware虚拟机

Linux系统

Linux 下,VMware 提供了两种按装包:tar 包和RPM 包 其中,后者更容易安装,这里以Redhat Linux 9系统为例。

使用tar 包安装

登陆Linux 主机

[sanren@localhost sanren]$

登陆到管理员权限

[sanren@localhost sanren]$ su -
Password:
[root@localhost root]#

进入临时目录

[root@localhost root]# cd /tmp

解压缩tar

[root@localhost tmp]# tar –zxvf VMware-workstation-6.0.0-45731.i386.tar.gz

执行安装命令

[root@localhost tmp]# cd ./vmware-distrib/vmware-install.pl

开始安装

Installing the content of the package.

选择二进制文件安装路径

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

选择库文件安装路径

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

选择操作手册文件安装路径

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 goingto create it,
including needed parent directories. Is this what you want?
[yes]

选择初始化目录安装路径

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]

安装完成!

The installation of VMware workstation 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.pl".

启动vmware 配置

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]

停止VMware Workstation 的服务

Making sure VMware Workstation's services 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) yes
Thank you.

安装监视模块

Trying to find a suitable vmmon 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 vmnet module for your running kernel.
The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.

配置网络

Do you want networking for your virtual machines? (yes/no/help) [yes] yes

配置vmnet0

Configuring a bridged network for vmnet0.

配置vmnet8

Configuring a NAT network for vmnet8.

探测DHCP 子网1,自动探测,随机选择

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.151.0/255.255.255.0 appears to be unused.
The version of DHCP used in this version of VMware Workstation is licensed as
described in the "/usr/share/doc/vmware/DHCP-COPYRIGHT" file.
Hit enter to continue.

探测DHCP 子网2,以主机网卡所在的网段为DHCP 的地址域

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] n
 
What will be the IP address of your host on the private network? 192.168.100.0
What will be the netmask of your private network? 255.255.255.0
The version of DHCP used in this version of VMware Workstation is licensed as
described in the "/usr/share/doc/vmware/DHCP-COPYRIGHT" file.
Hit enter to continue.

配置host-only 网络环境,如不需要可以不必配置。

Do you want to be able to use host-only networking in your virtual machines?
[no] n

配置Samba 文件系统访问

Do you want this program to automatically configure your system to allow your
virtual machines to access the host's filesystem? (yes/no/help) [no] y
The version of Samba used in this version of VMware Workstation is licensed as
described in the "/usr/share/doc/vmware/SAMBA-LICENSE" file.
Hit enter to continue.
 
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 networking on /dev/vmnet8                    [ 确 定 ]

配置Samba 客户端帐户

You have successfully configured VMware Workstation to allow your virtual
machines to access the host's filesystem. Would you like to add a username and
password for accessing your host's filesystem via network interface vmnet1 at
this time? (yes/no/help) [yes] y

主机上存在的用户

Please specify a username that is known to your host: lupaworld
New SMB password:
Retype new SMB password:
 
Added user sanren.
You have successfully configured VMware Workstation to allow your virtual
machines to access the host's filesystem. Your system appears to already be setup with
usernames and passwords for accessing the host's filesystem via network
interface vmnet1. Would you like to add another username and password at this
time? (yes/no/help) [no] n
You can add more usernames at any time by invoking the following command as
root: "/usr/bin/vmware-smbpasswd vmnet1 -a <username>"

Samba 配置完成

The configuration of VMware workstation 6.0.0 build-45731 for Linux for this
running kernel completed successfully.

vmware 配置完成

You can now run VMware Workstation by invoking the following command:
"/usr/bin/vmware".
Enjoy,
--the VMware team
使用RPM 包安装

执行安装命令

[root@localhost tmp]# rpm -ivh VMware-workstation-6.0.0-45731.i386.rpm
Preparing... ########################################### [100%]
1:VMwareWorkstation ###########################################
[100%]
在图形界面进入安装目录后,就可以直接启动vmware,然会出现图形界面,剩下的步骤和WINDOWS下安装虚拟机一样。

安装完成

 

linux下后台启动vm虚拟机技巧

经常发现使用vmrun start xxxxx.vmx nogui的方式启动linux下的虚拟机,常常失败。而用vmplayer是没有问题的,后来发现虚拟机目录下有些lckvmem的后缀文件,删除这些文件即可顺利启动vm了。      rm -fr *.lck      rm -fr *.vmem      vmrun start rhel3.vmx nogui &        另外,光能够使用vmplayer播放是不够的。一定要事先使用vmworkstation,能够播放,才算ok.第一次使用workstation时需要输入序列号的。

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值