| 论坛注册| 加入收藏 | 设为首页| RSS
Google
您当前的位置:首页 > Linux频道 > Linux入门与提高 > 安装与配置

linux文本模式下安装VMware虚拟机

时间:2007-09-04 11:30:18  来源:Linux联盟收集整理  作者:
 linux下有很多种虚拟机软件,但是在windows习惯了用VMware,操作比较简单,于是在linux下不妨也用用看,于是到VMware的官网(www.vmware.com)上下来一个最新的VMware-server-1.0.3-44356.tar.gz(vmwar for linux),通过几步简单的表单填写就可以申请个免费的注册码,本地解压后执行里面的vmware-install.pl脚本基本一路按默认回车下去即可,安装完毕需要给虚拟机的安装目录可读写权限,默认位置是/var/lib/vmware/,接下来就是涉及到具体操作了,最简单的方法是下载一个相同版本的windows版本,然后从windows下远程链接过去就和本机操作一样了,本人由于是在美国的服务器上安装,只好在本地windows下先安装好(虚拟机安装好的系统文件在windows下与linux通用),然后将文件打包上传,然后用命令:vmware-cmd -s regeister /var/lib/vmware/Virtual\ Machines/CentOS\ X86/Red\ Hat\ Enterprise\ Linux\ 4.vmx 先注册,再用vmware-cmd /var/lib/vmware/Virtual\ Machines/CentOS\ X86/Red\ Hat\ Enterprise\ Linux\ 4.vmx start 启动。这里本人遇到个问题,我们美国服务器是64位的机子,第一次上传本地安装好的64位系统居然启动不了,报错不支持64位,于是再上传个32位的即可,具体原因还不祥。这样虚拟机起来后就和真实机一样使用了!
 
 
相关参考:
Linux下安装VMware-gsx-3.2.1
Vmware-gsx-3.2.1-19281.tar.gzcYULinux联盟
# tar -zxvf VMware-gsx-3.2.1-19281.tar.gzcYULinux联盟
2.进入安装目录cYULinux联盟
# cd vmware-gsx-distribcYULinux联盟
3.执行安装程序cYULinux联盟
./vmware-install.plcYULinux联盟
4.安装过程cYULinux联盟
安装过程中需要输入序列号cYULinux联盟
Serial: X8TA5-HDWDD-V7H4D-4FUGQcYULinux联盟
安装过程比较简单,可以一路回车cYULinux联盟
一直到最后安装完毕cYULinux联盟
5。在其他机器上启动VMware virtual machine consolecYULinux联盟
选择remote hostcYULinux联盟
host name: 192.168.1.20cYULinux联盟
user anme: rootcYULinux联盟
password: passwordcYULinux联盟
连接以后,可以按照windows上使用vmware的方法来创建和使用虚拟机cYULinux联盟
cYULinux联盟
6。创建完windows虚拟机并安装好操作系统后,可以用cYULinux联盟
菜单VM > install vmware tool... 来安装显卡驱动cYULinux联盟
cYULinux联盟
7。vmware的启动关闭可以用一下命令cYULinux联盟
# service vmware startcYULinux联盟
# service vmware stopcYULinux联盟
cYULinux联盟
8.启动虚拟机用以下命令cYULinux联盟
启动虚拟机cYULinux联盟
vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx startcYULinux联盟
关闭虚拟机cYULinux联盟
vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx stopcYULinux联盟
cYULinux联盟
cYULinux联盟
================================cYULinux联盟
vmware 命令cYULinux联盟
vmnet-bridge vmstat vmware-config.pl vmware-smbdcYULinux联盟
vmnet-dhcpd vm-support vmware-loop vmware-smbpasswdcYULinux联盟
vmnet-natd vmware vmware-mount.pl vmware-smbpasswd.bincYULinux联盟
vmnet-netifup vmware-authtrusted vmware-nmbd vmware-uninstall.plcYULinux联盟
vmnet-sniffer vmware-cmd vmware-ping vmware-vdiskmanagercYULinux联盟
cYULinux联盟
列出虚拟机cYULinux联盟
vmware-cmd -lcYULinux联盟
启动虚拟机cYULinux联盟
vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx startcYULinux联盟
关闭虚拟机cYULinux联盟
vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx stopcYULinux联盟
cYULinux联盟
cYULinux联盟
vmware-cmd 命令cYULinux联盟
[ORACLE@test vmware]$ vmware-cmd -hcYULinux联盟
Usage: /usr/bin/vmware-cmd cYULinux联盟
/usr/bin/vmware-cmd -s cYULinux联盟
Options:cYULinux联盟
Connection Options:cYULinux联盟
-H specifies an alternative host (if set, -U and -P must als o be set)cYULinux联盟
-O

specifies an alternative portcYULinux联盟
-U specifies a usercYULinux联盟
-P cYULinux联盟

specifies a passwordcYULinux联盟
General Options:cYULinux联盟
-h More detailed help.cYULinux联盟
-q Quiet. Minimal outputcYULinux联盟
-v Verbose.cYULinux联盟
Server Operations:cYULinux联盟
/usr/bin/vmware-cmd -lcYULinux联盟
-- lists the registered VMscYULinux联盟
/usr/bin/vmware-cmd -s register cYULinux联盟
-- registers a VMcYULinux联盟
/usr/bin/vmware-cmd -s unregister cYULinux联盟
-- unregisters a VMcYULinux联盟
/usr/bin/vmware-cmd -s getresource cYULinux联盟
-- retrieves a server resourcecYULinux联盟
/usr/bin/vmware-cmd -s setresource cYULinux联盟
-- sets a server resourcecYULinux联盟
VM Operations:cYULinux联盟
/usr/bin/vmware-cmd getconnecteduserscYULinux联盟
/usr/bin/vmware-cmd getstatecYULinux联盟
-- gets the execution state of the VMcYULinux联盟
/usr/bin/vmware-cmd start cYULinux联盟

cYULinux联盟
-- powers on or resumes a VMcYULinux联盟
/usr/bin/vmware-cmd stop cYULinux联盟

cYULinux联盟
-- stops a VMcYULinux联盟
/usr/bin/vmware-cmd reset cYULinux联盟

cYULinux联盟
-- resets a VMcYULinux联盟
/usr/bin/vmware-cmd suspend cYULinux联盟

cYULinux联盟
-- suspends a VMcYULinux联盟
/usr/bin/vmware-cmd setconfig cYULinux联盟
-- sets a configuration variablecYULinux联盟
/usr/bin/vmware-cmd getconfig cYULinux联盟
-- retrieves the value for a configuration variablecYULinux联盟
/usr/bin/vmware-cmd setguestinfo cYULinux联盟
-- sets a guest info variablecYULinux联盟
/usr/bin/vmware-cmd getguestinfo cYULinux联盟
-- retrieves the value for a guest info variablecYULinux联盟
/usr/bin/vmware-cmd getidcYULinux联盟
-- retrieves the VM idcYULinux联盟
/usr/bin/vmware-cmd getpidcYULinux联盟
-- retrieves the process id of the running VMcYULinux联盟
/usr/bin/vmware-cmd getproductinfo cYULinux联盟

cYULinux联盟
-- gets various product informationcYULinux联盟
/usr/bin/vmware-cmd connectdevice cYULinux联盟
-- connects a virtual device to a VMcYULinux联盟
/usr/bin/vmware-cmd diSCOnnectdevice cYULinux联盟
-- disconnects a virtual device from a VMcYULinux联盟
/usr/bin/vmware-cmd getconfigfilecYULinux联盟
-- retrieves the path to the configuration filecYULinux联盟
/usr/bin/vmware-cmd getheartbeatcYULinux联盟
-- retrieves the heartbeat value of the guest OScYULinux联盟
/usr/bin/vmware-cmd getuptimecYULinux联盟
-- retrieves the uptime of the guest OScYULinux联盟
/usr/bin/vmware-cmd getremoteconnectionscYULinux联盟
-- retrieves the number of remote connections to a VMcYULinux联盟
/usr/bin/vmware-cmd gettoolslastactivecYULinux联盟
-- retrieves the number of seconds since last notification from the toolscYULinux联盟
/usr/bin/vmware-cmd getresource cYULinux联盟
-- retrieves a VM resourcecYULinux联盟
/usr/bin/vmware-cmd setresource cYULinux联盟
-- sets a VM resourcecYULinux联盟
/usr/bin/vmware-cmd setrunasuser cYULinux联盟

cYULinux联盟
-- sets the user that the VM runs ascYULinux联盟
/usr/bin/vmware-cmd getrunasusercYULinux联盟
-- retrieves the user that the VM runs ascYULinux联盟
/usr/bin/vmware-cmd getcapabilitiescYULinux联盟
-- retrieves the access permissions of the current user on a VMcYULinux联盟
/usr/bin/vmware-cmd addredo cYULinux联盟
-- adds a redo log to a virtual diskcYULinux联盟
/usr/bin/vmware-cmd commit cYULinux联盟
-- commits the redo log of a virtual diskcYULinux联盟
/usr/bin/vmware-cmd answercYULinux联盟
-- answers a question for a VM requesting inputcYULinux联盟
=============================================cYULinux联盟
Linux下安装和卸载vmware toolcYULinux联盟
Installing VMware Tools in a Linux or Freebsd Virtual MachinecYULinux联盟
1. Power on the virtual machine.cYULinux联盟
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.cYULinux联盟
Choose VM > Install VMware Tools.cYULinux联盟
The remaining steps take place inside the virtual machine.cYULinux联盟
3. Be sure the guest operating system is running in text mode. You cannot install VMware Tools from a terminal in an X window session.cYULinux联盟
Some recent distributions of Linux are configured to run the X server when they boot and do not provide an easy way to stop the X server. However, you can switch to a different workspace that is still in text mode and install VMware Tools from that workspace.cYULinux联盟
To switch between Linux workspaces in a virtual machine, press Ctrl-Alt-Space, release Space without releasing Ctrl and Alt, then press the function key for the workspace you want to use — for example, F2.cYULinux联盟
Note: If you changed your hot-key combination to something other than Ctrl-Alt, use that combination with Space and the function key.cYULinux联盟
4. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working Directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.cYULinux联盟
Note: You do not use an actual CD-ROM to install VMware Tools, nor do you need to download the CD-ROM image or burn a physical CD-ROM of this image file. The GSX Server software contains an ISO image that looks like a CD-ROM to your guest operating system. This image contains all the files needed to install VMware Tools in your guest operating system.cYULinux联盟
Linux Guests: Some 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 following commands to reflect the conventions used by your distribution.cYULinux联盟
Further, some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.cYULinux联盟
mount /dev/cdrom /mnt/cdromcYULinux联盟
cd /tmpcYULinux联盟
tar zxf /mnt/cdrom/vmware-linux-tools.tar.gzcYULinux联盟
umount /mnt/cdromcYULinux联盟
FreeBSD Guests: Some FreeBSD distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.cYULinux联盟
mount /cdromcYULinux联盟
cd /tmpcYULinux联盟
tar zxf /cdrom/vmware-freebsd-tools.tar.gzcYULinux联盟
umount /cdromcYULinux联盟
5. Run the VMware Tools installer.cYULinux联盟
cd vmware-tools-distribcYULinux联盟
./vmware-install.plcYULinux联盟
6. Answer the questions about default directories.cYULinux联盟
7. Run the configuration program.cYULinux联盟
vmware-config-tools.plcYULinux联盟
8. To change your virtual machine's display resolution, answer yes, then enter the number that corresponds to the desired resolution.cYULinux联盟
9. Log off of the root account.cYULinux联盟
exitcYULinux联盟
10. Start X and your graphical environment.cYULinux联盟
11. In an X terminal, launch the VMware Tools background application.cYULinux联盟
vmware-toolbox &cYULinux联盟
You can run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).cYULinux联盟
Note: To get the greatest benefit from the features of VMware Tools, always run vmware-toolbox in the guest operating system. cYULinux联盟
cYULinux联盟
Uninstalling VMware ToolscYULinux联盟
If you need to remove VMware Tools from your Linux guest operating system, log on as root (su -) and run the following command:cYULinux联盟
vmware-uninstall-tools.pl cYULinux联盟
cYULinux联盟
==========================================cYULinux联盟
管理接口 management interface cYULinux联盟
需要下载VMware-mui-3.2.1-19281.tar.gzcYULinux联盟
windows下运行cYULinux联盟
C:\Program Files\VMware\VMware Management Interface\htdocs\init.plcYULinux联盟
linux下运行cYULinux联盟
vmware-config-mui.plcYULinux联盟
cYULinux联盟
cYULinux联盟
The apache Server and the VMware Management InterfacecYULinux联盟
On GSX Server for Linux hosts, an Apache server is installed with the management interface. Listed here are the commands to start, stop and restart the Apache server.cYULinux联盟
In order to use these commands, you must first log on as root (su -), then open a terminal session.cYULinux联盟
To start the Apache server, typecYULinux联盟
/etc/init.d/httpd.vmware startcYULinux联盟
To stop the Apache server, typecYULinux联盟
/etc/init.d/httpd.vmware stopcYULinux联盟
To restart the Apache server, typecYULinux联盟
/etc/init.d/httpd.vmware restart cYULinux联盟

来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目更新
栏目热门