Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

building linux kernels

i Just got the book Linux Kernel Development by Robert Love . It has lots of places where you are required to modify and build the kernel . So how should i go with it . Is it better to use a VM , or should i somehow get a proper test machine for it , since i dont want to goof up on my system and data.

like image 260
woodstok Avatar asked Feb 15 '26 05:02

woodstok


2 Answers

A VM has the advantage of offering snapshots. These allow you to save the state of the machine - if the kernel build doesn't work you simply restore the snapshot, and you are able to take as many snapshots as you have disk space to store them. You are also able to clone and re-deploy the VM image, so you have many identical systems to test on.

The same experiment on a physical machine would require far greater effort (ghosting/cloning the disk, re-installing the OS etc).

VirtualBox is free, cross-platform virtualisation software.

like image 78
Andy Avatar answered Feb 16 '26 18:02

Andy


There are a lot of tutorials on the web about this topic, e.g. here:

  • http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html
  • http://www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch04.pdf
like image 43
miku Avatar answered Feb 16 '26 20:02

miku



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!