Building Netkit-JH with Debian Bullseye
#
Setup a Debian OSYou could install Debian on bare metal but we recommend that you set up a virtual machine for Netkit builds. Install a debian Bullseye VM in a virtualisation platform of your choice (e.g. VirtualBox, VMWare, KVM+QEMU, User-mode Linux... Joking do not use UML).
You should configure the VM to have at least 4GB RAM, 30GB of storage and as much processing power as you can allocate it.
#
Install PackagesTo install the packages required for building run:
#
Download this RepoTo get a local copy of this repo on the vm run:
The following commands assume your current working directory is the root of this repository.
#
Running the Build ProcessTo compile all components of Netkit-JH (the kernel, the filesystem and the core executables) run:
If you would like to build specific components, you can pass commands to make
. Some examples are shown below:
- Kernel
- Filesystem
- Core
- Clean
To clean up the files used in the build process run:
caution
The kernel must be built before the filesystem! This is because the kernel modules are copied over to the filesystem as part of the fs build process. If you don't give any arguments to make
this won't be an issue, but if you decide to make the filesystem with build-fs
before the kernel has been built, it will not build successfully.