Presentation is loading. Please wait.

Presentation is loading. Please wait.

Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel.

Similar presentations


Presentation on theme: "Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel."— Presentation transcript:

1 Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel

2 Get VMWare Download VMWare (http://vmware.com/download/server/) Apply for license keys (http://register.vmware.com/content/registr ation.html)

3 Begin the installation

4 Accept the license terms

5 Customize

6 Choose desired features and installation path

7 Disable AutoRun Note: Windows XP requires extra steps here

8 Disable each auto-run type in XP

9 Ready to install!

10 This may take a while Note: You may need to temporarily disable your Virus Shield (mcsheild.exe hogs processor ticks while VMWare installs)

11 Enter one of the serial number you applied for in the step above. Note: Linux and Windows serial numbers are different

12 Finished!

13 Connect to the new VMWare instance

14 Check settings

15 Select a directory on a drive with plenty of free space

16 Download pre-built Ubuntu 8.04 LTS VMWare guest http://speedy.hestonsystems.com/csueb/Ubuntu- GOS.ziphttp://speedy.hestonsystems.com/csueb/Ubuntu- GOS.zip Save it to the “Virtual Machines” directory you specified during the VMWare setup and unzip the file.

17 Open the existing virtual machine

18 Open the Guest

19 Start the guest and create a new identifier

20 Now you can log in! Username: student Password: csueb123

21 Start the toolbox with command: “vmware-toolbox &” Note: Minimize, but do not close this dialog.

22 Now for Kernel development: Overview –Install C compiler –Download kernel –Change make file –Compile!

23 Open a terminal window and type commands to retrieve and set up the kernel compile environment

24 Kernel-compile commands Adapted from: http://www.howtoforge.com/kernel_compilation_ubuntuhttp://www.howtoforge.com/kernel_compilation_ubuntu sudo apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 sudo passwd root su cd /usr/src/ # Get the kernel source wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.7.tar.bz2http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.7.tar.bz2 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.7.tar.bz2.signhttp://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.7.tar.bz2.sign gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E gpg --verify linux-2.6.24.7.tar.bz2.sign linux-2.6.24.7.tar.bz2 tar -xjf linux-2.6.24.7.tar.bz2 ln -s linux-2.6.24.7 linux cd /usr/src/linux make clean && make mrproper cp /boot/config-`uname -r`./.config make menuconfig # (see URL above for options to set) vi Makefile # (add suffix to version number ie "EXTRAVERSION =.9-kurt") # Build Kernel make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-kurt2009 kernel_image kernel_headers

25 Install New Kernel # Install Kernel dpkg -i linux-image-2.6.18.1-custom_2.6.24.7-kurt2009-10.00.Custom_i386.deb dpkg -i linux-headers-2.6.18.1-custom_2.6.24.7-kurt2009-10.00.Custom_i386.deb reboot

26 Helpful Hints Google is your friend treat this as you would any free-standing computer. it is just as susceptible to viruses as one would be and does not enjoy the benenfit of any virus checkers/firewalls installed on the host machine (that is, windows XP will not protect the Linux OS installed under VMWare)


Download ppt "Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel."

Similar presentations


Ads by Google