- Ubuntu Documentation
- Introduction
- VMware Server 2.0 64bit on Ubuntu 8.04 LTS 64bit Server
- VMware Server 2.0 64bit on Ubuntu 8.04 LTS 64bit Desktop
- VMware Server on Ubuntu 6.06 LTS amd64
- Install Prerequisites
- Install the VMware Server
- Starting VMware Console
- Troubleshooting
- ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
- VMware Console refuses to start
- No sound under ESD / ARTS
- Ubuntu Documentation
- VMware no longer offers this product
- Installation and Quick Start
- Ubuntu 11.04 (VMware Server 2.0.x)
- Ubuntu 10.10 (VMware Server 2.0.x)
- Ubuntu 10.04 (VMware Server 2.0.x)
- Ubuntu 9.10 (VMWare Server 2.0.x)
- Ubuntu 9.04 (VMWare Server 2.0.1 Build 156745)
- Ubuntu 8.10 (VMWare Server 2.0.0 Build 122956)
- Ubuntu 8.04 (VMWare Server 2.0.0 Build 116503)
- Ubuntu 8.04 (Vmware Server 1.0.6 Stable !)
- Ubuntu 7.10 (Gutsy Gibbon)
- From Ubuntu packages
- Ugly Source + Patch Method
- Ubuntu 7.04 (Feisty Fawn)
- From Ubuntu packages
- Installing VMware Tools on an Ubuntu VMware guest system
- Other Topics
- Installing from Source
- Uninstalling Source Installs
- Transitioning from a Source Install
- VMware Server MUI Component Installation (Optional, Source Install Only)
- VMware Server Console Installation (Optional, Source Install Only)
- Running Other Operating Systems From Physical Partitions (Optional)
- Troubleshooting
Ubuntu Documentation
Introduction
For those of you having trouble with VMware, try the new VMware 2.0 server 64-bit version. Note that it uses a web interface rather than the software client; point your browser at http://localhost:8222/ui/ or https://localhost:8333/ui/ after you install and log in with the user you created during the Ubuntu installation and your normal user account’s password.
VMware Server 2.0 64bit on Ubuntu 8.04 LTS 64bit Server
First, install Ubuntu 8-04 LTS 64bit Server — suggest with ssh server only — no other services installed.
Download VMware Server 2.0 64bit version tar file and SCP it to the new host server you just installed. You’ll need to register for a serial number.
Unpack the tar file and change into the directory vmware-server-distrib
You should be able to use the default answers for pretty much everything. At the end of the install process — give the path where you want to keep your virtual machines and enter the serial number that you got when registering. When asked about what account you want to be the administrator — say yes and at the next question, enter the username you want to use. Due to a bug in the config script, single character usernames will be rejected. To get around this, enter ‘root’ as the username, then edit the file /etc/vmware/hostd/authorization.xml and change the ACEDataUser value to your username.
If you get an error about gcc versions different from the version the current kernel is compiled with — just answer yes and everything should work just fine.
Once installed you can access the web-based management interface at http://servername_or_ip:8222/ui/ or https://servername_or_ip:8333/ui/
You should now have a working VMware Server 2.0 64bit virtual machine host.
Note 1: in order to view the console of the virtual machine in Firefox you will need to install a plugin (which Firefox should get from your Vmware host). The version of the plugin is specific to the version of the Vmware Server you installed — so if you have two VMware host servers — one running VMware Server 2.0 and another running an earlier beta version of VMware Server — Firefox will complain that it needs different versions of the plugin for each — and installing one will uninstall the other. Therefore — when upgrading your VMware Server hosts — you should do all of them at once — otherwise you’ll have issues with the plugin version when accessing the consoles of the virtual machines hosted on the various servers.
Note 2: As usual — since we are installing from a tar file and there is no deb installer in the repositories (yet). any time your host server gets a kernel update — you will need to rerun the VMware installer/config script (after rebooting the server so the new kernel and header files are active) so that it can compile the necessary modules for the current running kernel version.
VMware Server 2.0 64bit on Ubuntu 8.04 LTS 64bit Desktop
If you like to have the GUI system management tools available on the VMware host server — you can follow the above procedure but install on top of an Ubuntu 8.04 LTS 64bit Desktop install. That way you can access the web based management interface directly on the server at http://localhost:8222/ui/ or https://localhost:8333/ui/ in your web browser of choice to manage your virtual machines.
If you are running the machine as a server — having the GUI always running on the vm host can chew up resources (cpu cycles, memory, etc.) unnecessarily. After installation of VMware you can set the server to start without the Gnome Display Manager (GDM).
As your initial su user.
If you ever want to back out this change.
When you reboot, the machine will now boot to a text console. To get the GUI — just log in as the user you want and
Use the ‘logout button’ to return to the text console.
VMware Server on Ubuntu 6.06 LTS amd64
This page is for information regarding installation of VMware Server on Ubuntu 6.06 LTS amd64. Feisty users have an easier way, which works for AMD64 too. See «Quick Installation» section at VMware/Server.
As of June 2006, the VMware Server’s UI is 32-bit and requires 32-bit libraries when installing on a 64-bit host, but guest OS’s can be either 32-bit or 64-bit.
Install Prerequisites
First make sure you have the build-essential, kernel headers, xinetd, gcc, and g++ packages installed:
Gutsy users will need to install the following instead:
Install the 32-bit libraries required by VMware UI. «Some of the backend components are 64 bit, but the UI is still a 32 bit application. May be sometime down the road, the UI will also be 64 bit.»
Install the VMware Server
Download VMware Server from http://www.vmware.com/products/server/. As of June 2006, the latest release is Version 1. As part of the download process you will get a 20-digit serial number also.
At the end of the installation, you will be prompted to run the /usr/bin/vmware-config.pl script.
For the most part the defaults given should be suitable.
Starting VMware Console
Here’s the easy part:
Applications|System Tools|VMware Server Console
If you have installed VMware Server 2.0 Beta, the above menu item will not appear, as this version uses a web-based interface. To access it, open up your web browser of choice and point it to http://localhost. (I’m not sure what would happen if you were previously accessing locally hosted sites at http://localhost. Someone with this experience might update this section). You’ll be prompted to log in, which you’ll need to do as root. If you haven’t set a password for your root account (it’s disabled by default), do:
The first password prompt is for your sudo password. You will then be asked to type a new UNIX password twice.
Troubleshooting
ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
You may get this error message:
This is due to either missing 32-bit libraries, or vmmon having been compiled under a different kernel (see below). Install the 32-bit libraries:
VMware Console refuses to start
If you are trying to start the VMware Console, and it just disappears, it may be due to vmmon having been compiled under a different kernel other than the one that is running. Vmmon is very finicky about having been compiled under the exact kernel that is running. Perhaps you’ve just upgraded your kernel. Or perhaps it was updated automatically via the Update Manager much earlier, and you’ve just rebooted now.
You will need to download the latest headers and set the symlink directory.
You can then recompile vmmon by:
No sound under ESD / ARTS
TODO: Maybe move this to a separate page, since it appears to be specific to Workstation?
I had this problem with VMware Workstation (not Server) on AMD64: It would start up okay otherwise, but refuse to give me sound, saying /dev/dsp was locked.
There is a hint in one of the vmware forums that the LD_PRELOAD stuff can’t run on a shell script, so I tried patching the actual /usr/local/bin/vmrun script to do the vmwareesd stuff (it’s just a couple of environment variables really) just prior to running vmrun . and lo!, it works! Here’s my patch:
You will obviously need to have the vmwaredsp libraries installed in /usr/bin. (I also had to patch the installation script to not worry even though /lib64 is a symlink.)
VMware/Server/AMD64 (последним исправлял пользователь jengelh 2011-05-17 00:10:00)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
Ubuntu Documentation
Candidate for Deletion
This article may not be appropriate for this wiki, and may be deleted. More info.
VMware no longer offers this product
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 run on top of Ubuntu. This guide provides instructions on installing, configuring and running VMware Server and VMware Server Console on Ubuntu. VMware server may be used on Desktop and Server editions of Ubuntu.
Installation and Quick Start
Ubuntu 11.04 (VMware Server 2.0.x)
Ubuntu 10.10 (VMware Server 2.0.x)
The same procedure as for Ubuntu 10.04 applies and works.
Ubuntu 10.04 (VMware Server 2.0.x)
The same procedure as for Ubuntu 9.10 applies and works.
Ubuntu 9.10 (VMWare Server 2.0.x)
Both vmware-server.2.0.1-156745 and vmware-server.2.0.2-203138 can be installed from scratch by using a script I built. For more details you can visit How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala.
Download VMware Server (2.0.1 or 2.0.2) – gz format, not rpm. For the 2.0.2 version you might need to wait a couple of hours until you will receive the license key. Whichever version you choose, keep the license key near.
Copy the script from here (copy, paste, save).
Run the script with super user rights either in the same folder where you have downloaded the server archive, or by providing it the path to that folder. The script will download the needed patch from my server. Make sure the folder where you have downloaded the server’s archive doesn’t contain spaces in its path name. You will reach to a point where a lot of warnings appear on your terminal. Do not worry unless the script exits. If it exits, it will give you a decent warning from which you should be able to tell what’s wrong. Also, the VSOCK module will not work (will fail to compile), giving you a hint that your kernel sources might not be the ones for your running kernel. This is not true, as the script takes care of this before doing the hard work. Anyway, VMware Server will work without it.
If you experience problems with the script please write them in the post’s comments so that I can offer assistance.
Ubuntu 9.04 (VMWare Server 2.0.1 Build 156745)
At Ubuntu Server installation do not choose the option Minimal Virtual Host as it includes virtualization parts that interfere with VMware Server. There is no package yet available. You can download it at http://www.vmware.com/go/getserver
- Get a serial number (displayed at the download page link received by email as part of the registration process)
- Download the tar.gz file to your home directory
- Install required packages
Download the required patch at http://ubuntuforums.org/attachment.php?attachmentid=94477&d=1227872015 and save in your home directory
Follow the settings displayed at your screen and don’t change default values if not necessary. Be sure to add your normal username as VMware Server administrator
Enter the serial number when prompted
Vmware2 has a web interface. Browse with Firefox to http://localhost:8222.
Note: You can also access the web interface via SSL at https://localhost:8333. You will probably need to add this site to your SSL Exception sites on your browser.
Ubuntu 8.10 (VMWare Server 2.0.0 Build 122956)
There is no package yet available. You can download it at http://www.vmware.com/go/getserver
- Get a serial number (displayed at the download page link received by email as part of the registration process)
- Download the tar.gz file to your home directory
- Install required packages
Download the required patch at http://ubuntuforums.org/attachment.php?attachmentid=94477&d=1227872015 and save in your home directory
Follow the settings displayed at your screen and don’t change default values if not necessary. Be sure to add your normal username as VMware Server administrator
Enter the serial number when prompted
Vmware2 has a web interface. Browse with Firefox to http://localhost:8222.
Note: You can also access the web interface via SSL at https://localhost:8333. You will probably need to add this site to your SSL Exception sites on your browser.
Ubuntu 8.04 (VMWare Server 2.0.0 Build 116503)
There is no package yet available. You can download it at http://www.vmware.com/go/getserver
- Get a serial number (displayed at the download page link received by email as part of the registration process)
- Download the tar.gz file
- Install the build package
- Unzip and run vmware-install.pl
Follow the settings displayed at your screen and don’t change default values if not necessary. Be sure to add your normal username as VMware Server administrator
Enter the serial number when prompted
Vmware2 has a web interface. Browse with Firefox to http://localhost:8222.
Note: You can also access the web interface via SSL at https://localhost:8333. You will probably need to add this site to your SSL Exception sites on your browser.
Ubuntu 8.04 (Vmware Server 1.0.6 Stable !)
Note: This will take care of uninstalling any old version of VMWare server you might have, while keeping the virtual machines and their settings intact.
- Prep
. Install the needed tools.
- Download vmware server (be sure to obtain a serial number) Place it in a safe directory ( I use
/src/VMWare) and extract.
- Select defaults.
- Enter your serial # during the installation.
- Post-install configuration. Last, before running vmware :
In addition, for 64 bit users only,
Ubuntu 7.10 (Gutsy Gibbon)
From Ubuntu packages
Get a free serial number by registering your product here.
- Install the vmware-server package
- Follow the instructions in the installer wizard
At least the 64-bit version of ubuntu-server 7.10 is affected by bug #112937. The fix provided by Walter in the bug report does the trick.
Ugly Source + Patch Method
Note: amd64 users will need to add ia32-libs. This can be found in Synaptic.
Ubuntu 7.04 (Feisty Fawn)
From Ubuntu packages
Add the universe, multiverse, and commercial repositories to your Ubuntu 7.04 install Directions.
Until bug #115295 is fixed, you might need to edit /etc/pam.d/vmware-authd to read as follows:
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.
For troubleshooting see the troubleshooting section in this document.
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 VMware/Tools
Other Topics
Installing from Source
These instructions have not been fully tested and are recommended for advanced users only.
Ubuntu 8.04 (Hardy Heron)
AMD64 users may get this error
Install Getlibs and enter the following commands.
Ubuntu 7.04 (Feisty Fawn)
Run http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz 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)
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.
Enable the universe software channel (see Repositories for instructions).
School Tool (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 ?
Install the following packages:
- Once you have installed the required packages, you can now begin the VMware installer. Open a Terminal and type the following:
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.
If you are using the server edition then you also need to install the following 3 X libraries and their dependencies.
Replace with the path of the directory where you saved the archive, and replace with the version number of the package you downloaded. The VMware installer program will be started in the Terminal window.
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)
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.
Install the following packages:
linux-headers
Replace with the path of the directory where you saved the archive, and replace with the version number of the package you downloaded. The VMware installer program will be started in the Terminal window.
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.
Uninstalling Source Installs
VMware Server installs with the web management console
VMware Server installs from source may be removed by running the following command:
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
- Follow the directions in the «Uninstalling Source Installs» section of this document, but do not remove the /var/lib/vmware directory.
- Follow the directions in the «Installation and Quick Start» section.
- Move files from /var/lib/vmware to /var/lib/vmware-server and then remove the empty /var/lib/vmware directory.
- Reregister your existing virtual machines by running vmware-cmd -s register /var/lib/vmware-server/Virtual\ Machines/machinename/diskname.vmx
- 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:
Replace with the path of the directory where you saved the archive, and replace 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:
The VMware MUI component should now be available at
which should automatically redirect you to
Next from the same or a separate client machine login to this page and chose the most appropriate install program from the selection labeled : Download VMware Server Console
Use Synaptic/Adept to remove the package.
Note: If you receive a «starting httpd.vmware:-ne failed» error at the end of running vmware-config-mui.pl you will need to run the following command. /bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this, and then run vmware-config-mui.pl again:
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. You can download the console package only from http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/1_0 and click one which version you require. Within the next page you can download the console only zip file.
To download the file:
If installing the console on Ubuntu, open a Terminal and type the following commands:
Replace with the path of the directory where you saved the archive, and replace 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.
If you are getting an error similar to the following when trying to run the console (probably hardy-specific):
Use the following command:
If this fails, you may try copying the ‘missing’ file from /usr/lib/gcc/i486-linux-gnu/3.4.6/ and replacing the one distributed with the vmware server console. If you get similar error on libpng12.so.0, the file is placed in /usr/lib. You of course have to have the appropriate packages (gcc-3.4, libpng12) installed.
Running Other Operating Systems From Physical Partitions (Optional)
To run regular virtual machines from files, no additional setup is needed. However, to be able to run operating systems from physical partitions, your user needs to be part of the disk group.
Troubleshooting
Error: When I try to install VMware Server, I get the following error message:
Solution: First of all, ensure that you «Completely Removed» vmware-player/vmware-server and all its modules. To ensure that, run the following command: If you still keep getting the above error, run the following command:
Error: If you do not have an eth0 interface, you might be affected by bug #112492
Error: When I try to connect with the VMware Server Console, I get the following error message:
Solution: VMware should be listening on port 902. To test the connection, use telnet:
- You should see something like the following:
If not, you might need to (re)install xinetd. Do this with:
- or (if it’s already installed)
Then you can run vmware-config-network.pl or reinstall the vmware-server package to kick things into place.
Error: When I try to connect to a server using the VMWare Remote Console Plugin I get the following error message:
Solution: The plugin does not honour exclusions in the system proxy settings. Bypass the proxy by pre-pending env https_proxy= http_proxy= to the command, i.e.:
Error: When I try to start a VM, I get the following error message:
Solution: The .vmx file needs to be executable. Make sure that you have permissions to create the file and to make it executable. The filesystem that the file resides on must not be mounted with the noexec flag.
Error: When I enter the license key I get the following error message:
Solution: sudo apt-get install libxtst6 libxt6
Error: Bridged networking is not working when I use an unplugged ethX interface. The linux kernel shuts down the TCP/IP stack if the cable is unplugged.
Solution: Shut down the ethX interface and create a virtual tap interface to bridge on.
Error: Sometimes the bridged network is not working if configured on vmnet0.
Solution: Use vmware-config.pl to change the bridge to vmnet2.
Error: When running the install script from the 9.10 install instructions on 10.10, I get:
Solution: .
I was finally able to get rid of this problem using this patch version 1.5.0 with Ubuntu 10.10 kernal version 2.6.35-22.
This bug report indicates that the location of autoconf.h was changed between Lucid and Maverick. The source files need to be changed to reflect that.