VMware Workstation 9 kernel modules for Ubuntu 12.10 Quantal Quetzal – Instructions for boot error and kernel patch 9

This morning i have upgraded my laptop to Xubuntu Quantal Quetzal and i have come across a boot error after reboot. A black screen complaining about vmware modules.
HostIf_SafeRDMSR Ubuntu 12.10

There is a 9.0.1 update that solves this problem and officially supports Ubuntu 12.10 as a host/guest

Here’s the fix.

1- Keep calm, you have not lost your system. You can just log in switching to the graphic environment using Ctrl + Alt + F6
2- Once we are logged on, we shut down the system and start it again repeatedly pressing Shift key to bring up the grub boot menu
3- We select Ubuntu alternate boot options, and boot with our previous 3.2.0 kernel. This old kernel already has working kernel modules and will allow us to perform the next steps.
4- After logging in, we open a console and, as root, run:
vmware-installer --uninstall-product=vmware-workstation
5- We then reboot the system and let it start up with normal 3.5.0 kernel
6- Now we reinstall VMware Workstation 9
7- Open a new console and, as root, we run the following commands to prevent vmware from starting up after the next reboot:
mkdir /etc/init.d/vm
mv /etc/init.d/vmware /etc/init.d/vm
mv /etc/init.d/vmware-USBArbitrator /etc/init.d/vm
mv /etc/init.d/vmware-workstation-server /etc/init.d/vm

8- Sorry mate, reboot one more time
9- Open a new console and, as root, we download the following patch for VMware Workstation 9 and kernel 3.5.0 (This is original from an ArchLinux Wiki. However it didn’t work for me under ubuntu so i made a tiny modification)
10- We will now undo the previous init scripts movement, so vmware-modconfig can find them, as they are invoked during kernel module build. As root:
mv /etc/init.d/vm/vmware /etc/init.d/
mv /etc/init.d/vm/vmware-USBArbitrator /etc/init.d/
mv /etc/init.d/vm/vmware-workstation-server /etc/init.d/
rmdir /etc/init.d/vm

11- We wipe possible previous kernel module patch lockfiles that may or may not exist.
rm /usr/lib/vmware/modules/source/.patched
12- We untar the .tar.gz and run it as root. It should compile the kernel modules required by VMware Workstation 9 in order to work with Ubuntu Quantal Quetzal 12.10
13- Last reboot. Now we should have a working VMware Workstation 9 in our Ubuntu 12.10 system.

9 thoughts on “VMware Workstation 9 kernel modules for Ubuntu 12.10 Quantal Quetzal – Instructions for boot error and kernel patch

  1. Reply Alvaro oct 20, 2012 17:09

    Probaaaaaaaando…gracias gracias…

  2. Pingback: Ubuntu 12.10 and VMWare Workstation 9 Black Screen Kernel Panic Workaround | the mergy notes

  3. Reply Wari oct 23, 2012 11:49

    Thanks, this worked well for me.

  4. Reply Francesco Usseglio oct 25, 2012 10:37

    Thank You very much!
    I applied your instructions and everything now is ok!

  5. Reply Valentin oct 25, 2012 17:06

    Hi,

    Thanks for the instructions and patch.
    Unfortunately the vmware player version detection didn’t work for me correctly.
    So, I’ve changed the 22nd line from:

    vmver=`vmware-installer -l 2>/dev/null | awk ‘/vmware-/{print substr($2,1,5)}’`

    to:

    vmver=`vmware-installer -l 2>/dev/null | awk ‘/vmware-/{print substr($1,8)substr($2,1,5)}’`

    (note: I didn’t bother with awk to much, just tinkered enough to work)
    Indeed the test below $vmver == … is expecting name and version.

    Regards,
    Valentin

    • Reply javierin oct 26, 2012 7:11

      Hi

      It would be good to know what version of VMware were you running, just in case people end up here and the patch does not work right out of the box.

      Thanks!

  6. Reply Manuel oct 30, 2012 15:01

    When removing vmware you are prompted if you want to preseve configuration files. You need to delete everything, otherwise vmware will still showing the error when trying to run any virtual machine.

    After purging vmware, including config files, reinstalling it again and aplying the patch, everything started working fine.

    Thanks javierin!

  7. Reply Guido Rolon nov 20, 2012 17:39

    Installed last version of Vmawre 9.0.1 under ubuntu 12.10 x64

    Linux sot 3.6.6-030606-generic #201211050512 SMP Mon Nov 5 10:12:53 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    Running ok., thanks

Leave a Reply