个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的4个中间版本)
第3行: 第3行:
 
== Disclaimer ==
 
== 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 [http://www.clendenen.net/index.php?option=com_content&task=view&id=14&Itemid=28]
 
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 [http://www.clendenen.net/index.php?option=com_content&task=view&id=14&Itemid=28]
 
 
== Introduction ==
 
== 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.
+
After upgrading my [[UbuntuHelp:VMware|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 [[UbuntuHelp:VMware|VMware]] tools help. The problem with this procedure is that Ubuntu 6.10 Edgy uses Xorg 7, which isn't supported by the [[UbuntuHelp:VMware|VMware]] tools distributed with my current [[UbuntuHelp:VMware|VMware]] workstation. I expect this to be updated in the near future, but in the mean time, the following helps.
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 ==
 
== 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.
+
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 [[UbuntuHelp:VMware|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 ===
 
=== Go into recovery mode ===
 
When booting, press escape during the following notice:
 
When booting, press escape during the following notice:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
GRUB loading, please wait...
 
GRUB loading, please wait...
 
Press 'ESC' to enter the menu... 2
 
Press 'ESC' to enter the menu... 2
 
</nowiki></pre>
 
</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.
 
 
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".
 
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.
 
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 ===
 
=== Getting all required files ===
 
You need three files from three different sources to get everything done.
 
You need three files from three different sources to get everything done.
 
 
==== VMware tools ====
 
==== VMware tools ====
To get the VMware tools, choose "Install VMware Tools..." from the "VM" menu in your virtual machine.
+
To get the [[UbuntuHelp:VMware|VMware]] tools, choose "Install [[UbuntuHelp:VMware|VMware]] Tools..." from the "VM" menu in your virtual machine.
 
+
 
Next, mount the Cd Rom and extract the drives using the following steps:
 
Next, mount the Cd Rom and extract the drives using the following steps:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
mount /media/cdrom
 
mount /media/cdrom
第39行: 第27行:
 
tar zxpvf /media/cdrom/VMwareTools-*.tar.gz
 
tar zxpvf /media/cdrom/VMwareTools-*.tar.gz
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== VMware update ====
 
==== VMware update ====
Next you need an update to VMware. This is located at [http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz]. This URL could be changed, so please take a look at [http://platan.vc.cvut.cz/ftp/pub/vmware/] if the above link doesn't work.
+
Next you need an update to [[UbuntuHelp:VMware|VMware]]. This is located at [http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-tools-any-update2.tar.gz]. This URL could be changed, so please take a look at [http://platan.vc.cvut.cz/ftp/pub/vmware/] if the above link doesn't work.
 
+
 
Download and extract this file using the following steps:
 
Download and extract this file using the following steps:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /tmp
 
cd /tmp
第50行: 第35行:
 
tar zxpvf vmware-tools-any-update2.tar.gz
 
tar zxpvf vmware-tools-any-update2.tar.gz
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== Patch file to vmware-config-tools.pl ====
 
==== Patch file to vmware-config-tools.pl ====
 
This is located at [http://community.webathome.org/vmware-config-tools-patch.txt]. Get this using the following steps:
 
This is located at [http://community.webathome.org/vmware-config-tools-patch.txt]. Get this using the following steps:
 
+
<pre><nowiki>
<pre><nowiki>cd /tmp
+
cd /tmp
 
wget http://community.webathome.org/vmware-config-tools-patch.txt
 
wget http://community.webathome.org/vmware-config-tools-patch.txt
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Actual installation ===
 
=== Actual installation ===
 
 
==== Uninstalling the current VMware tools ====
 
==== Uninstalling the current VMware tools ====
<pre><nowiki>vmware-uninstall-tools.pl
+
<pre><nowiki>
 +
vmware-uninstall-tools.pl
 
/etc/init.d/networking stop
 
/etc/init.d/networking stop
 
rmmod vmxnet
 
rmmod vmxnet
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== Installing the new VMware tools ====
 
==== Installing the new VMware tools ====
 
<pre><nowiki>
 
<pre><nowiki>
第71行: 第53行:
 
./vmware-install.pl
 
./vmware-install.pl
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Answer all questions with the default answer, except for the following:
 
Answer all questions with the default answer, except for the following:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Before running VMware Tools for the first time, you need to configure it by
 
Before running VMware Tools for the first time, you need to configure it by
第79行: 第59行:
 
this program to invoke the command for you now? [yes] no
 
this program to invoke the command for you now? [yes] no
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Answer no here.
 
Answer no here.
 
 
==== Installing the update ====
 
==== Installing the update ====
 
<pre><nowiki>
 
<pre><nowiki>
第87行: 第65行:
 
./runme.pl
 
./runme.pl
 
</nowiki></pre>
 
</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.
 
 
==== Updating the current vmware-config-tools.pl ====
 
==== Updating the current vmware-config-tools.pl ====
 
<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></pre>
 
</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></pre>
 
</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.
 
 
==== Update your xorg.conf ====
 
==== 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:
+
The [[UbuntuHelp:VMware|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:
 
+
 
<pre><nowiki>
 
<pre><nowiki>
 
Driver "mouse"
 
Driver "mouse"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Driver "vmmouse"
 
Driver "vmmouse"
 
</nowiki></pre>
 
</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.
 
 
==== Rebooting your installation ====
 
==== Rebooting your installation ====
 
<pre><nowiki>
 
<pre><nowiki>
 
reboot
 
reboot
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Finishing up ===
 
=== 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.
 
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.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月20日 (一) 01:05的最新版本

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.