个人工具

“UbuntuHelp:VMware/Server”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/VMware/Server}} {{Languages|php5}} VMware Server is a proprietary virtualization software package made available for no cost from the [http://www...)
 
第46行: 第46行:
 
  <pre><nowiki>
 
  <pre><nowiki>
 
  sudo aptitude install build-essential linux-headers-`uname -r` xinetd
 
  sudo aptitude install build-essential linux-headers-`uname -r` xinetd
  </nowiki></code>
+
  </nowiki></pre>
 
The second package is the <code><nowiki>linux-headers-</nowiki></code> package for your currently-installed kernel; the <code><nowiki>uname -r</nowiki></code> part will automatically insert your kernel version for you.
 
The second package is the <code><nowiki>linux-headers-</nowiki></code> package for your currently-installed kernel; the <code><nowiki>uname -r</nowiki></code> part will automatically insert your kernel version for you.
 
to install two required packages.
 
to install two required packages.
第55行: 第55行:
 
cd vmware-server-distrib/
 
cd vmware-server-distrib/
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
 
  Replace <code><nowiki><download-location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded.
 
  Replace <code><nowiki><download-location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded.
 
  The VMware installer program will be started in the Terminal window.
 
  The VMware installer program will be started in the Terminal window.
第74行: 第74行:
 
cd vmware-server-distrib/
 
cd vmware-server-distrib/
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
 
  Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. The VMware installer program will be started in the Terminal window.
 
  Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. The VMware installer program will be started in the Terminal window.
 
  1.#4 Follow the on-screen instructions. You can leave most of the options as their defaults, by pressing the <code><nowiki>Return</nowiki></code> key and not typing anything after each question. '''The configuration script will fail, but we'll use a workaround.'''
 
  1.#4 Follow the on-screen instructions. You can leave most of the options as their defaults, by pressing the <code><nowiki>Return</nowiki></code> key and not typing anything after each question. '''The configuration script will fail, but we'll use a workaround.'''
第83行: 第83行:
 
sudo vmware-config.pl
 
sudo vmware-config.pl
 
sudo /etc/init.d/vmware restart
 
sudo /etc/init.d/vmware restart
</nowiki></code>
+
</nowiki></pre>
  
 
=== Uninstalling Source Installs ===
 
=== Uninstalling Source Installs ===
第91行: 第91行:
 
<pre><nowiki>
 
<pre><nowiki>
 
$ sudo vmware-uninstall-mui.pl
 
$ sudo vmware-uninstall-mui.pl
</nowiki></code>
+
</nowiki></pre>
  
 
VMware Server installs from source may be removed by running the following command:
 
VMware Server installs from source may be removed by running the following command:
第97行: 第97行:
 
<pre><nowiki>
 
<pre><nowiki>
 
$ sudo vmware-uninstall.pl
 
$ sudo vmware-uninstall.pl
</nowiki></code>
+
</nowiki></pre>
  
  
第119行: 第119行:
 
tar zxvf VMware-mui-<xxx>.tar.gz
 
tar zxvf VMware-mui-<xxx>.tar.gz
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
  
 
Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. An installer program will be run. Follow the installer's instructions. Once installation has completed, run the following commands in a Terminal:
 
Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. An installer program will be run. Follow the installer's instructions. Once installation has completed, run the following commands in a Terminal:
第127行: 第127行:
 
sudo /etc/init.d/httpd.vmware restart
 
sudo /etc/init.d/httpd.vmware restart
 
sudo /etc/init.d/httpd.vmware status
 
sudo /etc/init.d/httpd.vmware status
</nowiki></code>
+
</nowiki></pre>
  
 
The VMware MUI component should now be available at
 
The VMware MUI component should now be available at
 
<pre><nowiki>
 
<pre><nowiki>
 
http://localhost:8222/
 
http://localhost:8222/
</nowiki></code>
+
</nowiki></pre>
 
which should automatically redirect you to
 
which should automatically redirect you to
 
<pre><nowiki>
 
<pre><nowiki>
 
https://localhost:8333/
 
https://localhost:8333/
</nowiki></code>
+
</nowiki></pre>
  
 
Next from the same or a separate client machine login to this page and chose the most appropriate install program from the selection labelled : Download VMware Server Console
 
Next from the same or a separate client machine login to this page and chose the most appropriate install program from the selection labelled : Download VMware Server Console
第153行: 第153行:
 
cd vmware-server-console-distrib/
 
cd vmware-server-console-distrib/
 
sudo ./vmware-install.pl
 
sudo ./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
  
 
Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. After having run the installer, press <code><nowiki>Alt + F2</nowiki></code>, type <code><nowiki>gksudo vmware</nowiki></code> and press ''Run'' to start the Server Console application.
 
Replace <code><nowiki><location></nowiki></code> with the path of the directory where you saved the archive, and replace <code><nowiki><xxx></nowiki></code> with the version number of the package you downloaded. After having run the installer, press <code><nowiki>Alt + F2</nowiki></code>, type <code><nowiki>gksudo vmware</nowiki></code> and press ''Run'' to start the Server Console application.

2007年5月13日 (日) 12:55的版本


VMware Server is a proprietary virtualization software package made available for no cost from the VMware website. VMware Server allows you to run entire operating systems in a virtual machine, which runs on top of Edubuntu, Ubuntu or Xubuntu. This guide provides instructions on installing, configuring and running VMware Server and VMware Server Console on (Ed/K/X)Ubuntu.

Installation and Quick Start

  • Ubuntu 7.04 (Feisty Fawn)

From Ubuntu packages

 1. Get a serial number by registering (for free) at http://register.vmware.com/content/registration.html
 1. Add the universe, multiverse, and commercial repositories to your Ubuntu 7.04 install Directions.
 1. Uninstall vmware-server if it is already installed according to the section in this document titled "Transitioning from a Source Install."
 1. Install the vmware-server package
 1. Start the remote access console by going to Applications > System Tools > VMWare Server Console in the menus (or run vmware from the command line). From there you will be able to access vmware servers locally or remotely, and create/open VMware virtual machines. Login with your regular username and password.

Installing VMware Tools on an Ubuntu VMware guest system

Installing VMware Tools inside your virtual machines can improve their performance. For information about speeding up your Ubuntu virtual machines see UbuntuHelp:VMware/Tools


Other Topics

Installing from Source

These instructions have not been fully tested and are recommended for advanced users only.

  • Ubuntu 7.04 (Feisty Fawn)

Run [1] after the install fails when compiling kernel modules. See Install VMWare Server To Ubuntu Feisty for other solutions. A more elegant solution here would be much appreciated, as the diff between the current kernel modules provided by vmware and the modules in that .tar.gz is substantial.

  • Ubuntu 6.06 LTS (Dapper Drake)
  • Ubuntu 6.10 (Edgy Eft)
1. Download the VMware Server Binary (.tar.gz) package for Linux from the VMware website. You will also need to register to receive the free-of-charge serial number which is required during installation.
1. Enable the universe software channel (see UbuntuHelp:Repositories for instructions).
1. (Optional) switch from 386 kernel to 686 kernel and reboot
1. (Optional) If you using Edubuntu as your host OS then you might want to un-install
    • SchoolTool (aptitude remove schooltool) Since it uses 119M in its idle state.
    • LTSP (aptitude remove ltsp-server-standalone) So you can remove DHCPD
    • DHCPD (aptitude remove dhcp3-server) How many DHCP servers do you need ?
1. Install the following packages:
    • build-essentials
    • linux-headers
    • xinetd
1.
 sudo aptitude install build-essential linux-headers-`uname -r` xinetd
 

The second package is the linux-headers- package for your currently-installed kernel; the uname -r part will automatically insert your kernel version for you. to install two required packages.

1. Once you have installed the required packages, you can now begin the VMware installer. Open a Terminal and type the following:
cd <temporary-location-with-disk-space>
tar zxvf /<download-location>/VMware-server-<xxx>.tar.gz
cd vmware-server-distrib/
sudo ./vmware-install.pl
Replace <download-location> with the path of the directory where you saved the archive, and replace <xxx> with the version number of the package you downloaded.
The VMware installer program will be started in the Terminal window.
1.#6 Follow the on-screen instructions. You can leave most of the options as their defaults, by pressing the Return key and not typing anything after each question.
  • Ed/K/X/Ubuntu 7.04 (Feisty Fawn)
1. Download the VMware Server Binary (.tar.gz) package for Linux from the VMware website. Also, register to receive the free serial number which is required for registration.
1. Install the following packages:
    • vmware-server-kernel-modules
    • xinetd
    • build-essential
    • linux-headers
1. Once you have installed the required packages, you can now begin the VMware installer. Open a Terminal and type the following:
cd <location>
tar zxvf VMware-server-<xxx>.tar.gz
cd vmware-server-distrib/
sudo ./vmware-install.pl
Replace <location> with the path of the directory where you saved the archive, and replace <xxx> with the version number of the package you downloaded. The VMware installer program will be started in the Terminal window.
1.#4 Follow the on-screen instructions. You can leave most of the options as their defaults, by pressing the Return key and not typing anything after each question. The configuration script will fail, but we'll use a workaround.
1. Reconfigure step. Make VMware server use feisty's modules:
sudo sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/modprobe -s -f \$1/" /etc/init.d/vmware
sudo sed -i -e "s/sub configure_module {/sub configure_module {\n return 'yes';/" /usr/bin/vmware-config.pl
sudo vmware-config.pl
sudo /etc/init.d/vmware restart

Uninstalling Source Installs

VMware Server installs with the web management console

$ sudo vmware-uninstall-mui.pl

VMware Server installs from source may be removed by running the following command:

$ sudo vmware-uninstall.pl


If you experience problems during the uninstall, remove ~/.vmware and retry the steps above.

You may also wish to remove your virtual machines by removing /var/lib/vmware. It is also recommended that you remove

Transitioning from a Source Install

 1. Follow the directions in the "Uninstalling Source Installs" section of this document, but do not remove the /var/lib/vmware directory.
 1. Follow the directions in the "Installation and Quick Start" section.
 1. Move files from /var/lib/vmware to /var/lib/vmware-server and then remove the empty /var/lib/vmware directory.
 1. Reregister your existing virtual machines by running vmware-cmd register /var/lib/vmware-server/Virtual\ Machines/machinename/diskname.vmx
 1. Start any needed virtual machines using the management console. It is best to do this from the console instead of restarting because it will detect that you have moved the virtual machines and offer to regenerate the machine's unique identifiers, which you should decline to do.

VMware Server MUI Component Installation (Optional, Source Install Only)

If you would like VMware ESX-style web-access for configuration of your server, you can install the VMware MUI component, available from the VMware website. After having downloaded the package, open a Terminal and run the following commands:

cd <location>
tar zxvf VMware-mui-<xxx>.tar.gz
sudo ./vmware-install.pl

Replace <location> with the path of the directory where you saved the archive, and replace <xxx> with the version number of the package you downloaded. An installer program will be run. Follow the installer's instructions. Once installation has completed, run the following commands in a Terminal:

sudo /etc/init.d/httpd.vmware start
sudo /etc/init.d/httpd.vmware restart
sudo /etc/init.d/httpd.vmware status

The VMware MUI component should now be available at

http://localhost:8222/

which should automatically redirect you to

https://localhost:8333/

Next from the same or a separate client machine login to this page and chose the most appropriate install program from the selection labelled : Download VMware Server Console

Use Synaptic/Adept to remove the package.

VMware Server Console Installation (Optional, Source Install Only)

By default, the VMware Server Console is installed on the same computer as VMware Server. However, it is possible to install the application on other computers and use it to access your VMware Server remotely. Installers are available for other operating systems, such as Windows.

If installing the console on Ubuntu, open a Terminal and type the following commands:

cd <location>
tar zxvf VMware-server-console-<xxx>.tar.gz
cd vmware-server-console-distrib/
sudo ./vmware-install.pl

Replace <location> with the path of the directory where you saved the archive, and replace <xxx> with the version number of the package you downloaded. After having run the installer, press Alt + F2, type gksudo vmware and press Run to start the Server Console application.

Additional Resources


CategoryDocumentation CategoryCleanup