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.
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.

KernelNewbies: OutreachyKernelBuildInstallToVM_draft (last edited 2020-04-07 13:49:56 by veera)