Digital Lab Innovating education since 2022

Context

The course Kernel Engineering & Security is based on the course Advanced Operating Systems at the Vrije Universiteit Amsterdam, which at the same time ran into scalability issues with the old course setup. In particular, teachers were spending a lot of time helping students get started, debugging student code, and grading the student submissions.

What we did

In a collaboration between the University of Groningen and the Vrije Universiteit, the course was brought into the Digital Lab ecosystem. In particular, Themis is used for automated code assessment, Repository Management helps students collaborate more effectively and helps teachers grade the code more easily, and Virtual Labs offers virtual development environments for students who have difficulty running the assignment on their own hardware.

Themis

The course has a series of assignments during which students develop their own operating system kernel from scratch - including custom system calls, memory management, process management, and security features. Building and running this custom kernel requires starting a virtual machine using QEMU, and specific versions of the clang compiler. Experience in earlier years shows that even minor version differences can cause significant issues for students and teachers, who need to spend time debugging the software stack rather than their own code.

The introduction of Themis has been extremely helpful in streamlining this experience for both students and teachers: when the code works in Themis, the students can rest assured that their work is not accidentally seen as "broken". Similarly, teachers can simply defer to Themis as the "ground truth" for code correctness, thus eliminating discussions regarding "but it works on my machine". In addition, Themis clearly show students which tests pass or fail, allowing student to further refine their implementation.

Repository Management

Developing a kernel from scratch requires a lot of code, not all of which can be written by students. Therefore, the course provides a substantial template codebase for the students to work in. This codebase is also augmented after every deadline, with new template code for the later assignments. In previous years, sharing this code with students was done through a public Github repository that students would copy to their own private accounts. This sometimes resulted in students (accidentally) making their work public.

Repository Management helps streamline this process: the tool will automatically instantiate the template code base for each student group, thus reducing the effort of managing the repositories for students, and eliminating the need to release the code in public. In addition, the issues system in GitLab is used for student-teacher communication, and code review is done through GitLab Merge Requests.

Virtual Labs

While the new streamlined software stack makes it much simpler for students to run their kernels, it does not erase all problems. Since the kernel is developed on x86-64, students running ARM chips (e.g. MacBooks) can sometimes experience issues or inconsistent behaviour compared to x86 chips. To deal with this, using Virtual Labs, the course can offer virtualised development environments to students. These virtual environments run the exact same software stack as Themis does, to ensure consistent behaviour.

Outcome

  • Student code is automatically assessed using Themis
  • Students collaborate through repositories created by Repository Management
  • Students can use virtual development environments using Virtual Labs