个人工具

UbuntuHelp:VMware/Server

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:47的版本 (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...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


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
 </code>
The second package is the <code>linux-headers-</code> package for your currently-installed kernel; the <code>uname -r</code> 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:
<pre>
cd <temporary-location-with-disk-space>
tar zxvf /<download-location>/VMware-server-<xxx>.tar.gz
cd vmware-server-distrib/
sudo ./vmware-install.pl
</code>
 Replace <code><download-location></code> with the path of the directory where you saved the archive, and replace <code><xxx></code> 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 <code>Return</code> 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 [http://www.vmware.com/download/server/ VMware website]. Also, register to receive the free serial number which is required for registration.
 1. Install the following packages:
** <code>vmware-server-kernel-modules</code>
** <code>xinetd</code>
** <code>build-essential</code>
** <code>linux-headers</code>
 1. Once you have installed the required packages, you can now begin the VMware installer. Open a Terminal and type the following:
<pre>
cd <location>
tar zxvf VMware-server-<xxx>.tar.gz
cd vmware-server-distrib/
sudo ./vmware-install.pl
</code>
 Replace <code><location></code> with the path of the directory where you saved the archive, and replace <code><xxx></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>Return</code> 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:
<pre>
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
</code>

=== Uninstalling Source Installs ===

VMware Server installs with the web management console

<pre>
$ sudo vmware-uninstall-mui.pl
</code>

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

<pre>
$ sudo vmware-uninstall.pl
</code>


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:
<pre>
cd <location>
tar zxvf VMware-mui-<xxx>.tar.gz
sudo ./vmware-install.pl
</code>

Replace <code><location></code> with the path of the directory where you saved the archive, and replace <code><xxx></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:

<pre>
sudo /etc/init.d/httpd.vmware start
sudo /etc/init.d/httpd.vmware restart
sudo /etc/init.d/httpd.vmware status
</code>

The VMware MUI component should now be available at
<pre>
http://localhost:8222/
</code>
which should automatically redirect you to
<pre>
https://localhost:8333/
</code>

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:

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

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

== Additional Resources ==

* [[UbuntuHelp:VMware/Player]]
* [[UbuntuHelp:VMware/Esx]]
* [[UbuntuHelp:VMware/Workstation]]
* [http://macrolinz.com/macrolinz/index.php/2006/01/09/physcial-to-virtual/ How to copy an existing Windows installation to a VM]
* [http://www.vmware.com/products/converter/ Use free VMware Converter to copy a physical installation to virtual]

----
CategoryDocumentation CategoryCleanup

[[category:UbuntuHelp]]