Serdar Yegulalp
Senior Writer

‘Hackable’ hypervisor provides lightweight virtualization for Windows and Linux

news analysis
Jan 4, 20173 mins

Open source hypervisor KSM was built to be tiny and light, with uses ranging from a software sandbox to a complement to containerization

virtualization cloud
Credit: Thinkstock

Linux kernel developer Ahmed Samy has released an open source hypervisor project that aims to be “simple and lightweight.” Thus, he presents KSM, an option for Linux and Windows developers to create everything from software sandboxing tools to more full-blown hypervisor applications.

In a brief announcement on the Linux kernel development email list, Samy stated that KSM’s purpose “is not to run other kernels” (typically the case with hypervisors), “but more of researching (or whatever) the running kernel, some ideas would be sandboxing, debugging perhaps.”

The project’s description in the GitHub repository expands on this: “This type of virtualization [being used as an extra layer of protection for the existing running OS] is usually seen in antiviruses, or sandboxers, or even viruses.”

Another key adjective Samy used was “hackable,” meaning that KSM has a simple code base that others can expand on and augment. Samy said he was motivated to create KSM because existing hypervisors didn’t lend themselves to this—their code bases were too big and sprawling, too difficult to understand, or didn’t implement support for newer processor features.

That last item is another KSM feature: the ability to use many of the latest CPU-based virtualization functions—such as VMFUNC, found in Intel Haswell CPUs and up, which allows memory to be shared directly between a VM and the hypervisor and thus speeds up certain tasks like I/O operations. At the very least, KSM needs an Intel CPU that features the VT-x and EPT instructions, but both are available in most recent-generation processors.

Yet another boon with KSM is that it’s cross-platform. It builds and runs on both Linux and Windows, with MacOS support coming “by 2017,” although there’s no explicit timeline yet.

One timely application for KSM would be to use it in conjunction with a container engine to provide selective levels of additional protection to the host. Conventional wisdom has held that hypervisor technology is more or less doomed to be eclipsed by container technology, but the two are better thought of as complements rather than competitors.

There’s already been a lot of work merging hypervisor technology with container runtimes—Intel’s Clear Containers, for instance, or Canonical’s LXD. KSM is a more modest project, which is intended to be used as raw material or a component in a larger project. An enterprising experimenter with containers could, for instance, use it to create a miniature implementation of the above ideas—“just enough” to add hypervisor security to an already small-scale container project.

Serdar Yegulalp

Serdar Yegulalp is a senior writer at InfoWorld. A veteran technology journalist, Serdar has been writing about computers, operating systems, databases, programming, and other information technology topics for 30 years. Before joining InfoWorld in 2013, Serdar wrote for Windows Magazine, InformationWeek, Byte, and a slew of other publications. At InfoWorld, Serdar has covered software development, devops, containerization, machine learning, and artificial intelligence, winning several B2B journalism awards including a 2024 Neal Award and a 2025 Azbee Award for best instructional content and best how-to article, respectively. He currently focuses on software development tools and technologies and major programming languages including Python, Rust, Go, Zig, and Wasm. Tune into his weekly Dev with Serdar videos for programming tips and techniques and close looks at programming libraries and tools.

More from this author