HOWTO (Repost) – Vanilla Kernel, VMware Server, and Kubuntu 7.10…

Since my article on rolling a vanilla kernel on Kubuntu (HOWTO – Vanilla Kernel on Gutsy Gibbon…) has gotten most of the visits lately, I thought I would report it updated for kernel, with a couple minor changes, and I included some VMware steps as well. Hopefully, this is a little easier to read…

  1. Download the latest full kernel ( at the time of this writing).
  2. sudo -i
  3. apt-get install build-essential kernel-package (I did not get the linux-source package, because that is what was downloaded in step 1.)
  4. cd /usr/src
  5. mv (path/to/) ./
  6. tar xvfj
  7. rm -f linux (if it exists)
  8. ln -s linux- linux
  9. cd linux
  10. cp /boot/config-2.6.22-14-generic (or your latest config-2.6.2x.x file) .config (this step copies the current running kernel config into place for building the new kernel)
  11. make oldconfig – this steps you through all the changes from your current kernel version, and skips everything that has not changed.
  12. make menuconfig (you need to have ncurses packages installed for this to work) – I prefer this to make xconfig, for no good reason
  13. VMWARE MUST DOGeneral setup –> change from SLUB to SLAB – Choose SLAB allocator (SLAB).
  14. VMWARE MUST DOProcessor type and features –> uncheck Tickless System (Dynamic Ticks). OPTIONAL performance settings I like – select the Processor family (mine is Opteron/Athlon64/Hammer/K8), set Preemption model to Preemptable kernel (Low Latency desktop), set Timer frequency (1000 Hz).
  15. OPTIONALKernel hacking –> check Use 4Kb for kernel stacks instead of 8Kb. This is a performance setting.
  16. OPTIONAL – Device Drivers –> Sound –> Advanced Linux Sound Architecture –> PCI Devices –> set Intel HD Audio to M (module) -this was in Sean’s Blog, and I did not get sound working until I set this. YMMV.
  17. Exit and save the new .config file – I also like to save a copy of this file under a descriptive name somewhere else as a backup (cp .config /home/gutsy-, for example)
  18. make-kpkg clean – refer to man make-kpkg to see what this does
  19. make-kpkg kernel_image --initrd binary – this step rolls up the old “make, make modules” steps into one, so it could take a while before it is finished, depending on how much horsepower your computer has
  20. cd .. (go up one directory to where the new files are after compiling is completed)
  21. ln -s /lib/firmware/2.6.22-14-generic /lib/firmware/ (to preclude any firmware issues that might pop up)
  22. dpkg -i linux-image-*.deb linux-headers-*.deb (installs the kernel and modules)
  23. update-initramfs -u


Before you reboot, look at /boot/grub/menu.1st. You should see two entries for the new kernel there (one is a recovery entry). Next, you may want to set your video driver to vesa, otherwise you might just get a console login after rebooting instead of KDE, GNOME, etc. Most likely, you will have to reinstall your video driver (NVidia and ATI users), and it’s a heck of a lot easier to troubleshoot if you have console and GUI environments. To do this, just:

  1. sudo -i
  2. vi /etc/X11/xorg.conf
  3. In Section “Device”, add in the line Driver “vesa” and comment out (#) the previous driver line.
  4. In Section “Modules”, comment out the line that says Load”glx”.
  5. Write and quit (:wq), and you are set. Remember, this will get you basic, unaccelerated graphics, so you will want to restore your old driver after rebooting to the new kernel.

If you use VMWare, you will also have to reconfigure it to use the new kernel. After you reboot and restore your video driver, follow these steps from Peter Velichkov’s Blog:

How-to Install Vmware Player / Workstation on 2.6.24 Kernel – Assuming you already have VMware Player/Workstation/Server loaded, follow from Step 5. Although it does not mention Server, these steps work for installing VMware Server as well.  This article also has the link to vmware-any-any-update116.

As long as you have not removed the old kernel, you can always boot back into it if the new kernel fails to boot for some reason (hit ESC when prompted at bootup to select a non-default kernel entry). I always keep the previous version available, and remove the older versions after a week or two of smooth computing.

2 Responses

  1. […] CAC and SmartCard Readers on LinuxUbuntu Keyboard ProblemKismet and D-Link DWL-G122 USB WLAN AdapterHOWTO (Repost) – Vanilla Kernel, VMware Server, and Kubuntu 7.10…VMware-any-any-update116…HOWTO – VMWare-Server 1.04 and Kernel on […]

  2. […] the owner module was built (”make oldconfig” and “make menuconfig” steps of this post, under the networking section).  Once I had that module, I was good to go with matching packets by […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: