个人工具

UbuntuHelp:VMware/Server/AMD64

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:47的版本 (New page: {{From|https://help.ubuntu.com/community/VMware/Server/AMD64}} {{Languages|php5}} == Introduction == This page is for information regarding installation of VMware Server on Ubuntu 6.06 ...)

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


Introduction

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 UbuntuHelp: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:

sudo apt-get install build-essential linux-headers-`uname -r` xinetd gcc-4.0 g++-4.0
</code>

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."
<pre>
sudo apt-get install ia32-libs libc6-i386
</code>

== Install the VMware Server ==

Download VMware Server from http://www.vmware.com/. 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.
<pre>
tar xvzf VMware-server-e.x.p-23869.tar.gz
cd vmware-server-distrib 
sudo ./vmware-install.pl
</code>

At the end of the installation, you will be prompted to run the /usr/bin/vmware-config.pl script.
<pre>
Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]
</code>

For the most part the defaults given should be suitable.

== Starting VMware Console ==

Here's the easy part: 

Applications|System Tools|VMware Server Console




== Troubleshooting ==

=== ldd: /lib/ld-linux.so.2 exited with unknown exit code (127) ===
You may get this error message:
<pre>
/usr/bin/ldd: line 171: /lib/ld-linux.so.2: No such file or directory
ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
</code>

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:
<pre>
sudo apt-get install ia32-libs
</code>

=== 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.
<pre>
sudo apt-get install linux-headers-`uname -r`
sudo rm /usr/src/linux
sudo ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux
</code>

You can then recompile vmmon by:
<pre>
sudo vmware-config.pl --recompile
</code>

=== 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.

According to http://kb.vmware.com/vmtnkb/search.do?cmd=displayKC&docType=kc&externalId=1611&sliceId=SAL_Public
vmwaredsp from http://knihovny.cvut.cz/ftp/pub/vmware/ is supposed to fix this,
but it would refuse to run for me. It would keep telling me
<pre>
ERROR: ld.so: object 'libvmdsp.so' from LD_PRELOAD cannot be preloaded: ignored. 
</code>

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:

<pre>
--- /usr/local/bin/vmrun~	2006-09-27 11:07:00.000000000 +0300
+++ /usr/local/bin/vmrun	2006-09-29 13:47:11.000000000 +0300
@@ -194,6 +194,8 @@
 vm_run() {
    # Append any libraries that are still missing.
    export LD_LIBRARY_PATH="`LANGUAGE=C LANG=C ldd "$binary" | vm_append_missing`"
+   export LD_PRELOAD=libvmdsp.so${LD_PRELOAD+:}"$LD_PRELOAD"
+   export VMDSP_BACKEND=esd
 
    exec "$binary" "$@"
 }
</code>

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.)

-- https://wiki.ubuntu.com/Era

----
CategoryDocumentation

[[category:UbuntuHelp]]