Friday, December 18, 2009

Install VMware Server 1.0.x (1.0.10) Under Ubuntu 9.10 (Part III)


Step Four : Get vmware update by type on terminal :

wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.31-5.5.9.tar.bz2

after complete download, type on terminal :

tar xvfj vmware-update*.tar.bz2

Before we finish the VMware Server installation, we must build a new kernel with the init_mm feature enabled with root access.

type on terminal to install the kernel source :

sudo su
aptitude install linux-source-2.6.31

Step Five : Build The Kernel

Next we install a few packages that we need to build the kernel:

with type on terminal :

aptitude install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge build-dep linux libncurses5-dev kernel-package

If you notice that a new kernel gets installed during this command, please reboot the system:

reboot

Now become root again:

sudo su

Next do this:

cd /usr/src
tar xvfj linux-source-2.6.31.tar.bz2
cd linux-source-2.6.31

Open arch/x86/kernel/init_task.c...

gedit arch/x86/kernel/init_task.c

... and add the line EXPORT_UNUSED_SYMBOL(init_mm); right at the end of the file, behind DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, init_tss) = INIT_TSS;:

[...]
DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, init_tss) = INIT_TSS;
EXPORT_UNUSED_SYMBOL(init_mm);

Then copy the kernel configuration of the current kernel into the kernel source directory...

cp /boot/config-`uname -r` .config

... and run:

make menuconfig

In the kernel configuration menu, go to Load an Alternate Configuration File...

... fill in .config and select Ok:

Next select Exit in the main kernel configuration menu...

... and then Yes when you're asked: Do you wish to save your new kernel configuration?

Then run

make-kpkg clean

fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers

to build the new kernel. This can take a lot of time so be patient.

Afterwards you can find a linux-image and a linux-headers .deb package in the /usr/src/ directory:

cd /usr/src/
ls -l

yourname@yourname-desktop:/usr/src# ls -l
total 461180
drwxr-xr-x 23 root root      4096 2009-10-27 19:16 linux-headers-2.6.31-14
drwxr-xr-x  7 root root      4096 2009-10-27 19:16 linux-headers-2.6.31-14-generic
drwxr-xr-x 23 root root      4096 2009-12-11 16:57 linux-headers-2.6.31-16
drwxr-xr-x  7 root root      4096 2009-12-11 16:57 linux-headers-2.6.31-16-generic
-rw-r--r--  1 root src    6319116 2009-12-11 19:51 linux-headers-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb
-rw-r--r--  1 root src  403726102 2009-12-11 19:48 linux-image-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb
drwxr-xr-x 26 root root      4096 2009-12-11 19:48 linux-source-2.6.31
-rw-r--r--  1 root root  62176632 2009-12-08 09:02 linux-source-2.6.31.tar.bz2


Read to Install VMware Server 1.0.x (1.0.10) Under Ubuntu 9.10 (Part IV)

0 comments: