KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
Revision 8 as of 2020-04-07 13:32:11
KernelNewbies:
  • OutreachyKernelBuildInstallToVM_draft

Automating Building Kernel in Host and Installing to VM target

Using a Virtual Machine to test a kernel is easy, quick, safe and productive for kernel/OS development.

All the sources needed for different kernel trees can be kept in host and only the built kernel binaries have to be installed to VM Guest OS for testing. It saves space on system as duplicate copies of code source may be avoided. And also safe if VM Guest OS with new kernel corrupts the system.

Get this simple, functional script as base to accomplish it. lk_make.sh Only tested with Debian. You can make enhancements as you like.

It uses ssh and rsync to automate the copy and setup process between host and VM guest.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01