This guide will help you quickly get OpenOS running in VirtualBox.
Make sure you have the following installed:
sudo apt-get update
sudo apt-get install -y gcc-multilib nasm make grub-pc-bin xorriso mtools virtualbox
sudo pacman -Sy gcc nasm make grub xorriso mtools virtualbox
brew install i686-elf-gcc nasm make grub xorriso mtools
brew install --cask virtualbox
The easiest way to run OpenOS in VirtualBox is using the automated script:
# Clone the repository (if you haven't already)
git clone https://github.com/orgito1015/My-Operating-System-OpenOS.git
cd My-Operating-System-OpenOS
# Build and run in VirtualBox (one command!)
make run-vbox
This will:
The VirtualBox window will open, and you’ll see OpenOS boot!
If you prefer to set up VirtualBox manually:
make iso
This creates openos.iso in the root directory.
openos.isoWhen OpenOS boots, you’ll see:
GNU GRUB version 2.xx
...
[GRUB menu with "OpenOS" option]
...
OpenOS - Educational Kernel Prototype
-------------------------------------
Running in 32-bit protected mode.
Initializing interrupts...
Keyboard initialized. Type something!
OpenOS> _
You can type and press Enter to interact with the shell!
Before testing in VirtualBox, you can quickly test the ISO in QEMU:
make run-iso
This is faster and helpful for debugging if something goes wrong.
VirtualBox is not installed. Install it using the commands in Prerequisites.
Run make iso first to create the bootable ISO.
make clean && make isoFor more detailed troubleshooting, see VIRTUALBOX_TROUBLESHOOTING.md.
make # Build the kernel
make clean # Remove build artifacts
make run # Run in QEMU (direct kernel boot)
make iso # Create bootable ISO image
make run-iso # Test ISO in QEMU
make run-vbox # Build and run in VirtualBox (automated)
make help # Show all available targets
Now that you have OpenOS running:
/docsKernel2.0/Enjoy exploring OpenOS! 🎉