个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/VMware/Troubleshooting/Xorg7}} {{Languages|php5}} == Disclaimer == I'm not sure why these steps work, but they do. They're pieced together from dif...)
 
第18行: 第18行:
 
GRUB loading, please wait...
 
GRUB loading, please wait...
 
Press 'ESC' to enter the menu... 2
 
Press 'ESC' to enter the menu... 2
</nowiki></code>
+
</nowiki></pre>
  
 
This will bring you into a menu where you should choose the first entry having "(recovery mode)" in its description.
 
This will bring you into a menu where you should choose the first entry having "(recovery mode)" in its description.
第38行: 第38行:
 
cd /tmp
 
cd /tmp
 
tar zxpvf /media/cdrom/VMwareTools-*.tar.gz
 
tar zxpvf /media/cdrom/VMwareTools-*.tar.gz
</nowiki></code>
+
</nowiki></pre>
  
 
==== VMware update ====
 
==== VMware update ====
第49行: 第49行:
 
wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz
 
wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz
 
tar zxpvf vmware-tools-any-update2.tar.gz
 
tar zxpvf vmware-tools-any-update2.tar.gz
</nowiki></code>
+
</nowiki></pre>
  
 
==== Patch file to vmware-config-tools.pl ====
 
==== Patch file to vmware-config-tools.pl ====
第56行: 第56行:
 
<pre><nowiki>cd /tmp
 
<pre><nowiki>cd /tmp
 
wget http://community.webathome.org/vmware-config-tools-patch.txt
 
wget http://community.webathome.org/vmware-config-tools-patch.txt
</nowiki></code>
+
</nowiki></pre>
  
 
=== Actual installation ===
 
=== Actual installation ===
第64行: 第64行:
 
/etc/init.d/networking stop
 
/etc/init.d/networking stop
 
rmmod vmxnet
 
rmmod vmxnet
</nowiki></code>
+
</nowiki></pre>
  
 
==== Installing the new VMware tools ====
 
==== Installing the new VMware tools ====
第70行: 第70行:
 
cd /tmp/vmware-tools-distrib
 
cd /tmp/vmware-tools-distrib
 
./vmware-install.pl
 
./vmware-install.pl
</nowiki></code>
+
</nowiki></pre>
  
 
Answer all questions with the default answer, except for the following:
 
Answer all questions with the default answer, except for the following:
第78行: 第78行:
 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
 
this program to invoke the command for you now? [yes] no
 
this program to invoke the command for you now? [yes] no
</nowiki></code>
+
</nowiki></pre>
  
 
Answer no here.
 
Answer no here.
第86行: 第86行:
 
cd /tmp/vmware-tools-any-update2/
 
cd /tmp/vmware-tools-any-update2/
 
./runme.pl
 
./runme.pl
</nowiki></code>
+
</nowiki></pre>
  
 
Here, the default answer the whether you want to run "vmware-config-tools.pl" already is no. Accept this.
 
Here, the default answer the whether you want to run "vmware-config-tools.pl" already is no. Accept this.
第93行: 第93行:
 
<pre><nowiki>
 
<pre><nowiki>
 
patch /usr/bin/vmware-config-tools.pl /tmp/vmware-config-tools-patch.txt
 
patch /usr/bin/vmware-config-tools.pl /tmp/vmware-config-tools-patch.txt
</nowiki></code>
+
</nowiki></pre>
  
 
==== Run the new vmware-config-tools.pl ====
 
==== Run the new vmware-config-tools.pl ====
 
<pre><nowiki>
 
<pre><nowiki>
 
vmware-config-tools.pl
 
vmware-config-tools.pl
</nowiki></code>
+
</nowiki></pre>
  
 
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.
 
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.
第107行: 第107行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Driver "mouse"
 
Driver "mouse"
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
Driver "vmmouse"
 
Driver "vmmouse"
</nowiki></code>
+
</nowiki></pre>
  
 
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.
 
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.
第118行: 第118行:
 
<pre><nowiki>
 
<pre><nowiki>
 
reboot
 
reboot
</nowiki></code>
+
</nowiki></pre>
  
 
=== Finishing up ===
 
=== Finishing up ===

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

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.