Linux VM without VM software – User Mode Linux
Follow @popovicu94 If you carefully read the Linux kernel docs, you will find an interesting statement: Linux has also been ported to itself. You can now run the kernel as a userspace application – this is called UserMode Linux (UML). Today, we’ll explore how you can start an unconventional VM by running a Linux kernel as a process within the Linux kernel itself. This approach doesn’t require installing virtualization software like QEMU, nor does it need root privileges, which opens up some intriguing possibilities. Table of contents Open Table of contents Kernel’s Hardware Abstraction UML – Kernel in a Userspace Process Building a UML Kernel Building Userspace Running the Nested Kernel Conclusion Kernel’s Hardware Abstraction A fundamental responsibility of the kernel is to…