LiuZhiping
出自Ubuntu中文
目录 |
UBUNTU as a VMware host
UBUNTU 作为 VMware 主机
For VMware-workstation-5.5.1-19175.tar.gz
对于VMware-workstation-5.5.1-19175.tar.gz
Steps required to get VMware Workstation 5.5.1 installed on Ubuntu 5.10 system on i686.
在基于i586的Ubuntu 5.10系统上安装VMware Workstation 5.5.1需要如下步骤:
0. Install the required compiler and kernel headers needed to compile the vmware kernel module.
sudo apt-get install linux-headers-$(uname -r) build-essential g++-3.4
根据需要安装所需的编译器和内核头来编译vmware的内核模块。
sudo apt-get install linux-headers-$(uname -r) build-essential g++-3.4
0. Download VMWare Workstation 5.5.1 from VMware and upack:
tar xzf VMware-workstation-5.5.1-19175.tar.gz
从VMware的主页下载VMware 并解压:
tar xzf VMware-workstation-5.5.1-19175.tar.gz
0. Run the VMware install script.
( export CC=/usr/bin/gcc-3.4 && cd vmware-distrib && sudo ./vmware-install.pl )
运行VMware 安装脚本
( export CC=/usr/bin/gcc-3.4 && cd vmware-distrib && sudo ./vmware-install.pl )
It is safe to take all the defaults.
保持所有设置为默认的比较安全。
UBUNTU as a VMware host (older)
UBUNTU 作为VMware主机(旧版的)
The following instructions are may no longer be required if installing VMware-workstation-5.5.1-19175.tar.gz (or possibly later). - PaulSchulz
如果安装VMware-workstation-5.5.1-19175.tar.gz(或更新的)则不再需要下面的使用说明。- PaulSchulz
Here are the steps I took to get VMWare Workstation 5.0 running on an Ubuntu 5.10 system on an amd64 based computer.
下面是我在基于amd64的Ubuntu 5.10的系统上运行VMWare Workstation 5.0的步骤:
0. Install the required compiler and kernel headers needed to compile the vmware kernel module.
sudo apt-get install linux-headers-$(uname -r) build-essential g++-3.4
根据需要安装所需的编译器和内核头来编译vmware的内核模块。
sudo apt-get install linux-headers-$(uname -r) build-essential g++-3.4
0. Download VMWare Workstation 5.0 from VMware and upack.
tar xzf VMware-workstation-5.0.0-13124.tar.gz
从VMware的主页下载VMware 并解压:
tar xzf VMware-workstation-5.5.1-19175.tar.gz
0. Run the VMware install script, but DO NOT run vmware-config.pl (as offered by the install script).
( cd vmware-distrib && sudo ./vmware-install.pl )
运行 VMware 的安装脚本,但是 并不运行 vmware-config.pl (它由安装脚本提供)。
( cd vmware-distrib && sudo ./vmware-install.pl )
- You should be able to accept the default answers.
- You want to use the vmware-any-any-update package (below) in place of running vmware-config.pl.
0. Download the current vmware-any-any-update package from http://ftp.cvut.cz/vmware/ and unpack.
tar xzf vmware-any-any-update95.tar.gz
从http://ftp.cvut.cz/vmware/下载当前的 vmware-any-any-update 包并解压。
tar xzf vmware-any-any-update95.tar.gz
0. Run the vmware-any-any-update script, with the environment variable CC set to the version of gcc used to compile the Linux kernel.
export CC=/usr/bin/gcc-3.4 ( cd vmware-any-any-update95 && sudo ./runme.pl )
运行vmware-any-any-update脚本,并用环境变量CC来设置编译Linux内核所用的gcc的版本。
export CC=/usr/bin/gcc-3.4 ( cd vmware-any-any-update95 && sudo ./runme.pl )
With any luck, the modules should be compiled and tested, and vmware should be installed and ready to run at this point:
$ /usr/local/bin/vmware
如果一切顺利,则模块应该能通过编译和测试,vmware也已经安装完成,此时已可以运行。
$ /usr/local/bin/vmware
UBUNTU as a VMware guest
UBUNTU作为 VMware 客户机
VMware version 5 is reported to work with Ubuntu out-of-the-box. Try using NAT rather than bridging when using VMware 5 with Ubuntu as a guest OS.
VMware Workstation 4, VMware Workstation 4.5, or VMware GSX 3.1 under Ubuntu causes some problems because of Ubuntu's use of udev. Fortunately there is a patch for VMware that solves this and many other problems. Follow the instructions below after you have installed VMware.
0. Open a terminal and change into a temporary directory.
打开终端并转到临时目录。
0. Apply a patch to /usr/bin/vmware-config.pl.
cat > kubuntu-5.10.patch << EoF
2696,2699c2696,2702
< $kernel_gcc_version = $2;
< if ($kernel_gcc_version eq $gcc_version) {
< return 'yes';
< }
---
> # kubuntu 5.10
> #$kernel_gcc_version = $2;
> $kernel_gcc_version = '3.4.5';
> return 'yes';
> #if ($kernel_gcc_version eq $gcc_version) {
> # return 'yes';
> #}
EoF
patch /usr/bin/vmware-config.pl kubuntu-5.10.patch
对 /usr/bin/vmware-config.pl 作修补:
cat > kubuntu-5.10.patch << EoF
2696,2699c2696,2702
< $kernel_gcc_version = $2;
< if ($kernel_gcc_version eq $gcc_version) {
< return 'yes';
< }
---
> # kubuntu 5.10
> #$kernel_gcc_version = $2;
> $kernel_gcc_version = '3.4.5';
> return 'yes';
> #if ($kernel_gcc_version eq $gcc_version) {
> # return 'yes';
> #}
EoF
patch /usr/bin/vmware-config.pl kubuntu-5.10.patch
0. Download the patch by running
wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update95.tar.gz
下载补丁,如下:
wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update95.tar.gz
(check the directory for new versions if that wget fails).
(如果wget失败,检查新版本的目录)。
0. Extract the patch by running
tar xzvf vmware-any-any-update95.tar.gz
解压补丁,如下:
tar xzvf vmware-any-any-update95.tar.gz
0. Change into the directory where the patch was extracted.
cd vmware-any-any-update95
转到补丁被解压到的目录。
cd vmware-any-any-update95
0. Apply the patch.
# sudo ./runme.plAfter the patch is applied it will prompt to run vmware-config.pl. Choose Yes and accept the defaults.
应用补丁
# sudo ./runme.pl补丁应用之后会提示运行 vmware-config.pl,选择Yes接受默认安装。
Installation tips
安装提示
0. The install script asks for the path of gcc. If it isn't automatically found find the path on your system by running
which gcc. Set the full path to the binary in the variable CC:
export CC=/usr/bin/gcc-3.4
安装脚本需要的安装路径,如果路径不能自动找到,你能在系统上查找它,如下:
which gcc. 设置变量CC为其二进制文件的完全路径名:
export CC=/usr/bin/gcc-3.4
0. When you run vmware-config.pl, if the script can't find your kernel's C headers you must install the appropriate headers package. Do this by running
sudo apt-get install linux-headers-$(uname -r)
You must then point vmware-config.pl to the appropriate directory, such as
/usr/src/linux-headers-2.6.10-5-686/include
当你运行 vmware-config.pl时,如果该脚本不能找到内核的C头文件,则你必须安装相应的头文件包。如下:
sudo apt-get install linux-headers-$(uname -r)
你必须让 vmware-config.pl 指向相应的目录,如下
/usr/src/linux-headers-2.6.10-5-686/include
0. If the VMware Management Interface (MUI) for GSX complains about a lack of libdb.so.3 and instruct you to get compat-db-3.3.<##>-<#>.i386.rpm. You want the ubuntu package libdb2 for this.
Enabling Parallel Port Access
使 Parallel Port 能访问
VMware allows direct access to parallel ports, which is handy if you've got a scanner that only has Windows drivers. You may need to make the following minor change to VMware's startup script.
VMware 允许直接访问parallel ports,它很方便当你有一个扫描仪而仅有Windows驱动。你可能要对启动脚本作如下的一点改变。
0. Open /etc/iniit.d/vmware in an editor by running
sudo gedit /etc/init.d/vmware
在编辑器中打开 /etc/iniit.d/vmware 如下:
sudo gedit /etc/init.d/vmware
0. Find the case statement that looks like this (around line 814)
# See how we were called. case "$1" in start)
查找像下面的语句(约在814行)
# See how we were called. case "$1" in start)
0. Add the following text at the end of the case statement
rmmod lp chgrp lpadmin /dev/parport0 chmod g+rw /dev/parport0
在case语句后添加如下内容:
rmmod lp chgrp lpadmin /dev/parport0 chmod g+rw /dev/parport0
SEE ALSO
VMware Guide: Installing VMware Server on Ubuntu 6.06 LTS amd64
InstallingVMware
VmWare/InstallAsGuest
VmwareEsx VmwarePlayer VmwareServer VmwareWorkstation
文章来源:https://help.ubuntu.com/community/VMware
翻译人员:LiuZhiping
校对人员:
文章状态:等待翻译
