Creating the Disk Image
Before creating a disk image for VirtualBox, you need to create a GRUB image as described in the bare metal installation guide.Skip the final step of the bare metal guide (writing to physical drive) as that’s only relevant for real hardware.
Converting the Image
There are two ways to convert the GRUB disk image to VirtualBox format:Using QEMU (if installed)
Using VirtualBox Only
Set Disk Identifier
Set an identifier to prevent mismatches when updating the disk image:On Windows, if QEMU or VirtualBox are not in your PATH, navigate to their installation folder and prefix commands with
./Creating the Virtual Machine
These instructions were written with VirtualBox v6.1.12 in mind. Steps may vary slightly for other versions.
Open Create Virtual Machine dialog
Open the Create Virtual Machine dialog and switch to Expert Mode.
Configure basic settings
- Give it any name and storage location
- Set Type to Other
- Set Version to Other/Unknown (64-bit)
Set memory size
Serenity requires at minimum 512 MiB of memory. The currently recommended size is 1 GiB (1024 MiB).
Add existing disk
For Hard disk:
- Select Use an existing virtual hard disk file
- Click the folder icon to open the Hard Disk Selector
- Click Add and browse to your converted VDI image
- Click Choose
Configuring the Virtual Machine
Serenity requires specific configuration changes to boot properly.Required Settings
Verify Settings
Check these settings to ensure compatibility:Storage Controller
- In Storage, click on the Controller
- Verify the controller type is AHCI (SATA) or NVMe
Network Adapter
- Go to Network > Advanced dropdown
- Verify Adapter Type is NOT set to Intel PRO/1000 MT Desktop (82540EM)
While the Intel PRO/1000 MT Desktop (82540EM) is the only adapter type Serenity currently supports, it does not currently work in VirtualBox. Networking does not work at this time.
Troubleshooting
Blinking Cursor After GRUB Menu
If you only see a blinking cursor after selecting an option in the GRUB menu:
For more boot issues, see the troubleshooting documentation.
Optional Configuration
Serial Debugging
To enable serial debugging:Configure port mode
Set Port Mode to Raw File (recommended) or another mode if you know what you’re doing.
Video Memory for High Resolutions
The default 16 MB of video memory is sufficient for default resolution, but not for all supported resolutions:- Default resolution: 16 MB (default)
- 2560x1080 resolution: Minimum 22 MB required
