特殊:Badtitle/NS100:VMware/Troubleshooting/Xorg7

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月14日 (一) 11:42的版本
跳到导航跳到搜索

{{#ifexist: :VMware/Troubleshooting/Xorg7/zh | | {{#ifexist: VMware/Troubleshooting/Xorg7/zh | | {{#ifeq: {{#titleparts:VMware/Troubleshooting/Xorg7|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:VMware/Troubleshooting/Xorg7|1|-1|}} | zh | | }}

Disclaimer

I'm not sure why these steps work, but they do. They're pieced together from different sources and some problems were fixed. The original source the major part of this introduction is from [1]

Introduction

After upgrading my VMware Ubuntu 6.06 installation to 6.10 Edgy, my screen stayed black, except for a few colored dots at the bottom of the screen.

I'm not sure what the problem is, but reinstalling the VMware tools help. The problem with this procedure is that Ubuntu 6.10 Edgy uses Xorg 7, which isn't supported by the VMware tools distributed with my current VMware workstation. I expect this to be updated in the near future, but in the mean time, the following helps.

Installation guide

I started this entire process after upgrading to Ubuntu 6.10. If you miss a step or make a mistake, don't hesitate to restart the entire installation. If you at one moment don't have network available, but need it, simply install the VMware tools as you would normally do (answer yes instead of no when asked to run vmware-config-tools.pl; see below) and reboot your machine. Networking should work again. If you follow the steps below though, everything should go without a glitch.

Go into recovery mode

When booting, press escape during the following notice:

GRUB loading, please wait...
Press 'ESC' to enter the menu... 2

This will bring you into a menu where you should choose the first entry having "(recovery mode)" in its description.

After Ubuntu goes through its initial stages, it asks you to enter the root password or press Control+D. I previously set my root password, so could use it. If you haven't done this, press Control+D and switch to root later on using "sudo bash".

If you continue the normal logon process (i.e. pressing Control+D), you should eventually get a dialog stating X couldn't be started and if you want to view the logs. Skip this, switch to root using "sudo bash", and follow the steps below.

Getting all required files

You need three files from three different sources to get everything done.

VMware tools

To get the VMware tools, choose "Install VMware Tools..." from the "VM" menu in your virtual machine.

Next, mount the Cd Rom and extract the drives using the following steps:

mount /media/cdrom
cd /tmp
tar zxpvf /media/cdrom/VMwareTools-*.tar.gz

VMware update

Next you need an update to VMware. This is located at [2]. This URL could be changed, so please take a look at [3] if the above link doesn't work.

Download and extract this file using the following steps:

cd /tmp
wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz
tar zxpvf vmware-tools-any-update2.tar.gz

Patch file to vmware-config-tools.pl

This is located at [4]. Get this using the following steps:

cd /tmp
wget http://community.webathome.org/vmware-config-tools-patch.txt

Actual installation

Uninstalling the current VMware tools

vmware-uninstall-tools.pl
/etc/init.d/networking stop
rmmod vmxnet

Installing the new VMware tools

cd /tmp/vmware-tools-distrib
./vmware-install.pl

Answer all questions with the default answer, except for the following:

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] no

Answer no here.

Installing the update

cd /tmp/vmware-tools-any-update2/
./runme.pl

Here, the default answer the whether you want to run "vmware-config-tools.pl" already is no. Accept this.

Updating the current vmware-config-tools.pl

patch /usr/bin/vmware-config-tools.pl /tmp/vmware-config-tools-patch.txt

Run the new vmware-config-tools.pl

vmware-config-tools.pl

Answer all questions with their default answer. You should of course choose the correct resolution though, but this can be changed later on in the screen settings.

Update your xorg.conf

The VMware mouse driver isn't set by default. Do this by changing the following line into the one below that in the file located at /etc/X11/xorg.conf:

Driver "mouse"
Driver "vmmouse"

In my config, this line is located at line 53. You can search on "mouse", because that only appears one time in the config file.

Rebooting your installation

reboot

Finishing up

By now everything should be set up correctly. I should note that this doesn't enable the splash screen in my installation, but the Gnome login window does eventually come up.