Çekirdek güncellemesinden sonra VMware Workstation nasıl onarılır

Şuraya atla: kullan, ara

Kernel updates will break a previously working installation of VMware Workstation. This happens because the VMware kernel modules are built for a specific version of the kernel. Here are the steps to recover VMware Workstation.

If you did not use the vmware-any-any update to orginally install VMware on SUSE Linux 10.0, please refer to Setting up VMware on SUSE Linux

Symptoms of Breakage due to a Kernel Update

  • VMware Workstation application will not start from launcher.
  • VMware Workstation application produces this error messages when you start it from a terminal window using the vmware commmand:
   vmware is installed, but it has not been (correctly) configured
   for this system. To (re-)configure it, invoke the following command:
   /usr/bin/vmware-config.pl.
  • VMware Workstation device support has stopped working, particularly bridge networking.
  • During boot, the system start-up details shows VMware kernel modules fail to load. (To view the verbose boot screen, hit escape from boot progress screen.)
   Starting VMware services:
   Virtual machine monitor                                             done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   failed
   Host-only networking on /dev/vmnet1 (background)                    done
   Bridged networking on /dev/vmnet2                                   failed
   Host-only networking on /dev/vmnet8 (background)                    done
   NAT service on /dev/vmnet8                                          failed

Steps for Fixing VMware Workstation

Prepare the Kernel for Rebuilding the Kernel Modules

1. Open a Terminal window

2. Use su to become root

3. Change to /usr/src/linux directory, and run the following command:

make cloneconfig

4. Run the following command:

make modules_prepare

Re-configure VMware Workstation

  • You do not need to re-apply the VMware Workstation installer RPM.
  • You do not need to run the runme.pl script from the vmware-any-any

1. Open a Terminal window. (You can use the same terminal session that you opened above.)

2. Use su to become root. (If you are using the same terminal session that you opened above, you may already be root.)

3. Run the VMware configuration script (/usr/bin/vmware-config.pl) and follow the prompts to rebuild your modules.

4. At the following step, answer "yes" to preserve your previous networking configuration.

   You have already setup networking.
   
   Would you like to skip networking setup and keep your old settings as they are?
   (yes/no) [no] yes

Tips & Tricks

Consolidating Steps into a Single Command

Once you have gained confidence recovering from VMware breakages that result from updating the host's kernel, you can use the following command to consolidate several commands into a single procedure.

   # su -c "cd /usr/src/linux && make cloneconfig && make modules_prepare && vmware-config.pl --compile"

Decoding the command line:

  • su -c temporarily switches to root, and then issues the command inside the quotes.
  • make cloneconfig writes the current configuration of the running kernel from /proc/config.gz into the filesystem.
  • make modules_prepare prepares the kernel module dependencies
  • vmware-config.pl --compile starts the VMware configuration script and forces the compilation of the needed modules.

Troubleshooting

"Your sources installation is broken"

  • Symptom: When you try to re-compile the VMware kernel modules, you get the following error output:
   VMware 2 or VMware Express detected, building for VMware 2, VMware Express and VMware Workstation 4.0.x.
   *** Your sources installation is broken:
   *** /usr/src/linux/include/.. does not contain .config file
   *** vmmon/vmnet build may fail, or built vmmon/vmnet may crash.
   
   *** Hit ENTER to continue, or ^C to stop build. 
  • The compiler claims that your kernel sources do not match your kernel version.
  • Solution
    • Most likely, you skipped the steps for make cloneconfig and make modules_prepare. Run these before you run vmware-config.pl
    • It is also possible that there is in fact a mismatch between your kernel and source versions. Check to make sure that these package versions correspond:
        • kernel-default
        • kernel-source
        • kernel-syms

Compile Still Does Not Complete

  • Symptom: You have done all the recommended steps, but still you get compile errors. Your hair is thinning, and your bloodshot eyes bulge ominously.
    • Kernel-Upgrades sometimes leave behind older .config files that are based on the old kernel version. This may cause problems when you run vmware-config.pl.
  • Solution: Open a terminal, become root, switch to /usr/src/linux, and then use make mrproper to clean out any old configuration and object files that may still refer to an older kernel version. (Basically, this resets the complete Kernel Source Tree into its original state.) Once completed, try using the vmware-config.pl script again.

See Also



VMware-Documentation: Setting up VMware on SUSE Linux | Uninstalling VMware from SUSE Linux | Recovering VMware Workstation After a Kernel Update | Installing SUSE Linux 9.0 as a VMware guest | Installing SUSE Linux 9.1 as a VMware guest