A basic type-2 hypervisor supporting AMD-V hardware virtualization for educational purposes. This project demonstrates how to enable AMD-V (hardware virtualization) using a Linux kernel module.
- Enables AMD-V on supported AMD processors.
- Simple and lightweight kernel module implementation.
- Easy to build, load, and test.
To use this project, ensure your system meets the following requirements:
- AMD Processor: The system must have an AMD processor.
- AMD-V Support: The processor must support AMD-V hardware virtualization.
- Linux Kernel: A Linux-based operating system with kernel headers installed.
Install the necessary build tools and Linux kernel headers:
sudo apt update
sudo apt install build-essential linux-headers-$(uname -r)Clone the repository to your local machine:
git clone https://github.com/Momking/Basic-Hypervisor.git
cd Basic-HypervisorCompile the kernel module using the provided Makefile:
makeThis will generate the Init.ko kernel module.
Load the kernel module into the Linux kernel:
make loadVerify that the module loaded successfully by checking the kernel logs:
sudo dmesg | tailWhen you're done testing, unload the module:
make unloadTo clean up the generated files, run:
make clean