1 / 26

Kernel Development using Virtualization

Kernel Development using Virtualization. Installing VMWare and using a virtual machine to build and test a Linux Kernel. Get VMWare. Download VMWare (http://vmware.com/download/server/) Apply for license keys (http://register.vmware.com/content/registration.html). Begin the installation.

ronna
Download Presentation

Kernel Development using Virtualization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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/registration.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.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_ubuntu • sudo apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 • sudo passwd root • su <password you set above> • cd /usr/src/ • # Get the kernel source • wget http://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.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)

More Related