KernelVM: Teaching Linux Kernel Programming through a Browser-Based Virtual Machine
Open Access
- 12 February 2025
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1204-1210
Abstract
Providing students with hands-on experience in kernel programming within a real-world operating system is highly beneficial in an Operating Systems (OS) course for teaching core operating system concepts and developing practical skills. However, accessing suitable devices for such hands-on experimentation poses significant challenges. Traditional solutions involve hosting virtual machines on cloud platforms, which are expensive and do not scale well with increasing student numbers. Additionally, many students' personal devices, such as Macs or iPads, have limited support for running Linux, creating further barriers. In this paper, we introduce KernelVM, a novel cost-effective platform that offers students a Linux virtual machine with full superuser access and pre-configured kernel programming toolchains. KernelVM is accessible via any modern browser on any device. It performs all computations locally within the user's browser, thus eliminating cloud computing costs. KernelVM provides a robust learning environment by incorporating interactive virtual hardware components and an automatic evaluation system, supporting a wide range of tasks, including multi-threaded cryptographic kernel modules and Linux drivers for hardware interaction. We detail the design of KernelVM, and describe our experiences incorporating it for the first time into an OS course with 159 undergraduate students. We found that KernelVM was instrumental in improving the quality and efficiency of hands-on learning experiences, with students reporting increased satisfaction and engagement due to the immediate feedback and the ability to experiment in a risk-free environment. Our experience suggests that KernelVM not only addresses the logistical challenges of kernel programming education, but it helps foster a highly interactive and engaging learning experience.Keywords
This publication has 14 references indexed in Scilit:
- Computing Education in the Era of Generative AICommunications of the ACM, 2024
- CLIK: Cloud‐based Linux kernel practice environment and judgment systemComputer Applications in Engineering Education, 2020
- Design and development of WebUbu: An innovating web‐based instruction tool for Linux OS coursesComputer Applications in Engineering Education, 2015
- Structured linux kernel projects for teaching operating systems concepts2011
- Teaching operating systems using virtual appliances and distributed version control2010
- Linux kernel projects for an undergraduate operating systems course2010
- Using iPodLinux in an introductory OS course2008
- Experiences teaching operating systems using virtual platforms and LinuxACM SIGOPS Operating Systems Review, 2006
- Experiences teaching operating systems using virtual platforms and linux2005
- LLVM: A compilation framework for lifelong program analysis & transformation2004