`
piperzero
  • 浏览: 3465354 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

Linux操作系统文本模式下安装VMware虚拟机

 
阅读更多
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

来自:http://www.jjzx.cn/3010.html

Vmware-gsx-3.2.1-19281.tar.gz

# tar -zxvf VMware-gsx-3.2.1-19281.tar.gz

2.进入安装目录

# cd vmware-gsx-distrib

3.执行安装程序

./vmware-install.pl

4.安装过程

安装过程中需要输入序列号

Serial: X8TA5-HDWDD-V7H4D-4FUGQ

安装过程比较简单,可以一路回车

一直到最后安装完毕

5。在其他机器上启动VMware virtual machine console

选择remote host

host name: 192.168.1.20

user anme: root

password: password

连接以后,可以按照windows上使用vmware的方法来创建和使用虚拟机

6。创建完windows虚拟机并安装好操作系统后,可以用

菜单VM > install vmware tool... 来安装显卡驱动

7。vmware的启动关闭可以用一下命令

# service vmware start

# service vmware stop

8.启动虚拟机用以下命令

启动虚拟机

vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx start

关闭虚拟机

vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx stop

=====================

vmware 命令

vmnet-bridge vmstat vmware-config.pl vmware-smbd

vmnet-dhcpd vm-support vmware-loop vmware-smbpasswd

vmnet-natd vmware vmware-mount.pl vmware-smbpasswd.bin

vmnet-netifup vmware-authtrusted vmware-nmbd vmware-uninstall.pl

vmnet-sniffer vmware-cmd vmware-ping vmware-vdiskmanager

列出虚拟机

vmware-cmd -l

启动虚拟机

vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx start

关闭虚拟机

vmware-cmd /var/lib/vmware/Virtual\ Machines/Windows2003/winNetEnterprise.vmx stop

vmware-cmd 命令

[ORACLE@test vmware]$ vmware-cmd -h

Usage: /usr/bin/vmware-cmd

/usr/bin/vmware-cmd -s

Options:

Connection Options:

-H specifies an alternative host (if set, -U and -P must als o be set)

-O

specifies an alternative port

-U specifies a user

-P

specifies a password

General Options:

-h More detailed help.

-q Quiet. Minimal output

-v Verbose.

Server Operations:

/usr/bin/vmware-cmd -l

-- lists the registered VMs

/usr/bin/vmware-cmd -s register

-- registers a VM

/usr/bin/vmware-cmd -s unregister

-- unregisters a VM

/usr/bin/vmware-cmd -s getresource

-- retrieves a server resource

/usr/bin/vmware-cmd -s setresource

-- sets a server resource

VM Operations:

/usr/bin/vmware-cmd getconnectedusers

/usr/bin/vmware-cmd getstate

-- gets the execution state of the VM

/usr/bin/vmware-cmd start

-- powers on or resumes a VM

/usr/bin/vmware-cmd stop

-- stops a VM

/usr/bin/vmware-cmd reset

-- resets a VM

/usr/bin/vmware-cmd suspend

-- suspends a VM

/usr/bin/vmware-cmd setconfig

-- sets a configuration variable

/usr/bin/vmware-cmd getconfig

-- retrieves the value for a configuration variable

/usr/bin/vmware-cmd setguestinfo

-- sets a guest info variable

/usr/bin/vmware-cmd getguestinfo

-- retrieves the value for a guest info variable

/usr/bin/vmware-cmd getid

-- retrieves the VM id

/usr/bin/vmware-cmd getpid

-- retrieves the process id of the running VM

/usr/bin/vmware-cmd getproductinfo

-- gets various product information

/usr/bin/vmware-cmd connectdevice

-- connects a virtual device to a VM

/usr/bin/vmware-cmd diSCOnnectdevice

-- disconnects a virtual device from a VM

/usr/bin/vmware-cmd getconfigfile

-- retrieves the path to the configuration file

/usr/bin/vmware-cmd getheartbeat

-- retrieves the heartbeat value of the guest OS

/usr/bin/vmware-cmd getuptime

-- retrieves the uptime of the guest OS

/usr/bin/vmware-cmd getremoteconnections

-- retrieves the number of remote connections to a VM

/usr/bin/vmware-cmd gettoolslastactive

-- retrieves the number of seconds since last notification from the tools

/usr/bin/vmware-cmd getresource

-- retrieves a VM resource

/usr/bin/vmware-cmd setresource

-- sets a VM resource

/usr/bin/vmware-cmd setrunasuser

-- sets the user that the VM runs as

/usr/bin/vmware-cmd getrunasuser

-- retrieves the user that the VM runs as

/usr/bin/vmware-cmd getcapabilities

-- retrieves the access permissions of the current user on a VM

/usr/bin/vmware-cmd addredo

-- adds a redo log to a virtual disk

/usr/bin/vmware-cmd commit

-- commits the redo log of a virtual disk

/usr/bin/vmware-cmd answer

-- answers a question for a VM requesting input

=====================

Linux下安装和卸载vmware tool

Installing VMware Tools in a Linux or Freebsd Virtual Machine

1. Power on the virtual machine.

2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.

Choose VM > Install VMware Tools.

The remaining steps take place inside the virtual machine.

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.

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.

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.

Note: If you changed your hot-key combination to something other than Ctrl-Alt, use that combination with Space and the function key.

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.

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.

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.

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.

mount /dev/cdrom /mnt/cdrom

cd /tmp

tar zxf /mnt/cdrom/vmware-linux-tools.tar.gz

umount /mnt/cdrom

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.

mount /cdrom

cd /tmp

tar zxf /cdrom/vmware-freebsd-tools.tar.gz

umount /cdrom

5. Run the VMware Tools installer.

cd vmware-tools-distrib

./vmware-install.pl

6. Answer the questions about default directories.

7. Run the configuration program.

vmware-config-tools.pl

8. To change your virtual machine's display resolution, answer yes, then enter the number that corresponds to the desired resolution.

9. Log off of the root account.

exit

10. Start X and your graphical environment.

11. In an X terminal, launch the VMware Tools background application.

vmware-toolbox &

You can run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).

Note: To get the greatest benefit from the features of VMware Tools, always run vmware-toolbox in the guest operating system.

Uninstalling VMware Tools

If you need to remove VMware Tools from your Linux guest operating system, log on as root (su -) and run the following command:

vmware-uninstall-tools.pl

==================================

管理接口 management interface

需要下载VMware-mui-3.2.1-19281.tar.gz

windows下运行

C:\Program Files\VMware\VMware Management Interface\htdocs\init.pl

linux下运行

vmware-config-mui.pl

The apache Server and the VMware Management Interface

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.

In order to use these commands, you must first log on as root (su -), then open a terminal session.

To start the Apache server, type

/etc/init.d/httpd.vmware start

To stop the Apache server, type

/etc/init.d/httpd.vmware stop

To restart the Apache server, type

/etc/init.d/httpd.vmware restart

分享到:
评论

相关推荐

    操作系统的实验环境与引导

    我们的OS实验,以安装了Windows和Linux操作系统的PC机为开发平台,以汇编语言和C语言为编程工具。 具体来说,以Windows XP SP3(或Windows 7 SP1)为主平台,在Windows中安装虚拟机软件VMware,并在该虚拟机中安装...

    Linux基本命令(带参考答案).doc

    虚拟机WMWare中安装Linux操作系统Fedora Core 10.0 (1) 在启动的VMWare界面中点击主页中的“+”图标或选择“文件”菜单中的“新建虚拟机”项,后选择“自定义(高级)(C)”选项,“下一步”中的选择项默认后,再“下...

    嵌入式系统开发基础——基于ARM微处理器和Linux操作系统[滕英岩][习题解答]

    嵌入式系统开发基础——基于ARM微处理器和Linux操作系统[滕英岩][习题解答] 目录第1章 嵌入式系统基础知识 1.1 嵌入式系统的特点及分类 1.1.1 嵌入式系统的特点 1.1.2 嵌入式系统的分类 1.2 嵌入式系统的软硬件...

    Linux概述及系统安装

    Linux操作系统软件包不仅包括完整的Linux操作系统,而且还包括了文本编辑器、高级语言编译器等应用软件。它还包括带有多个窗口管理器的X-Windows图形用户界面,允许我们使用窗口、图标和菜单对系统进行操作。

    vmtools-linux.iso

    在Ubuntu下安装VMware-Tools不像在Windows下安装容易,昨晚整了挺长时间终于安上了.方法在下面. 感谢提供方法的大侠! VMware Tools位置:VMware的安装路径\VMware\VMware Workstation\linux.iso 启动后按Esc选择...

    Linux基础知识与系统管理教学课件-pdf.rar

    2.1 Linux系统安装-VMware虚拟机安装与使用 2.2 Linux系统安装-系统分区 2.3 Linux系统安装-Linux系统安装 2.4 Linux系统安装-远程登录管理工具 3 给Linux初学者的建议 兄弟连新版Linux教程 3.1 给初学者的建议-...

    Linux基础知识与系统管理视频.rar

    2.1 Linux系统安装-VMware虚拟机安装与使用 2.2 Linux系统安装-系统分区 2.3 Linux系统安装-Linux系统安装 2.4 Linux系统安装-远程登录管理工具 3 给Linux初学者的建议 兄弟连新版Linux教程 3.1 给初学者的建议-...

    ESX 和 vCenter Server 安装指南.rar

    使用文本模式安装 ESX 40 使用脚本模式安装 ESX 42 7 ESX 分区57 必需分区57 可选分区58 VMware, Inc. 3 8 ESX 的安装后注意事项59 下载 vSphere Client 59 为主机授权许可59 将 ESXi 主机设置为评估模式60...

    VMware Workstation Pro v15.5.1 Linux系统安装教程

    VMware Workstation Pro v15.5.1 Linux系统安装教程 选用“CentOS-7-x86_64-Everything-1908.iso” 下载链接 阿里云站点: http://mirrors.aliyun.com/centos/7/isos/x86_64/ 进入图形界面后,可以按Ctrl+Alt+F2,...

    linux实验报告.doc

    在虚拟机下安装Linux操作系统(如Ubuntu桌面版本)。 3.配置Linux系统运行环境。 4.利用空闲分区创建新的Linux系统分区。 5.将新的Linux系统分区挂载到系统中;卸载新挂载的分区,重新挂载到目录树中的其 他位置...

    Linux基础命令学习系列 | 博客目录索引

    VMware虚拟机安装Centos 8系统的详细操作步骤(最全介绍) CentOS 8.x以桥接模式联网的网卡配置详解 CentOS 8 for Linux的根目录下各个目录的用途及含义,添加挂载点实现的具体方法 Linux系统的文件目录、类型和颜色的...

    老骥伏枥黑威联通母盘QNAP1G-BOOT已配置好启动(优化版)

    文件>新建虚拟机>自定义高级>最高版本硬件兼容>稍后安装>客户机操作系统Linux,版本是centos 7>下一步>下一步>虚拟机内存2G够了>网络使用桥接模式>推荐的就行>IDE>使用现有磁盘,选择的是老骥伏枥1G版威联通启动盘>...

    linux应用与开发基础

    第一章 了解LINUX操作系统.......................................................... 6 1.1 什么是LINUX ................................................................. 6 1.2 LINUX商标的故事...............

    BookOS:BookOS是一个基于xbook2内核的微型操作系统,您可以使用它来学习!

    --钱学森BookOS操作系统BookOS操作系统是一个基于xbook2内核的操作系统,可运行在qemu,bochs,virtual box,vmware等虚拟机中。也可以在物理机上面运行(需要有系统支持的驱动才行)xbook2内核地址:目录描述...

    最强大的王爽汇编语言学习环境

    这是采用VMwere Workstation 12 pro虚拟机软件,搭建的MS-DOS学习环境,在windowsXP/8/10及linux中均可以使用,在这个环境中,我集成了CCDOS中文系统,pdos中文系统,使用这些系统,可以进行中文输入与显示。...

    coursera的VTT字幕20190121_1543.7z

    字幕有TXT和VTT格式的,貌似两种格式都是LINUX/UNIX文本格式。TXT格式的没有时间轴,VTT格式的有时间轴。 在虚拟机VMware12(Ubuntu 14.04)中转换为windows格式。 将UTF-8格式的 0103操作系统安全的重要性.vtt ...

Global site tag (gtag.js) - Google Analytics