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

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

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.

A Simple Script

Get this simple, functional script as base to accomplish it. lk_make.sh
Only tested with Debian. You may adjust it for your use purpose.

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