You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VBox 1b: Run VirtualBox on the host with a test guest #271
The built VirtualBox runs on this host with a small Linux test guest that the integration harness can restore and introspect. Requires a host reboot: the agent must ping the user before rebooting.
Acceptance criteria
6.8.0-146-generic is set as default kernel; the agent asks the user to reboot and does not reboot itself
VirtualBox kernel modules load and /dev/vboxdrv is usable by the user
An Alpine x86_64 guest runs under VBoxHeadless from the build output, with a saved snapshot to restore
VBoxManage debugvm <vm> dumpvmcore produces a core file of the paused guest
Dev notes document rebuild, module reload, VM restore, and how to switch the default kernel back to nyx
Done locally in ~/vmi/vbox-dev/ (outside both repos, so no PR):
switch-kernel.sh generic|nyx sets the default GRUB kernel (original saved to /etc/default/grub.nyx.bak); host now runs 6.8.0-146-generic.
vm.sh modules|reload insmods vboxdrv/vboxnetflt/vboxnetadp from the build output; /dev/vboxdrv is root:ops 0660. Reload tested.
VM microvmi-alpine (Alpine 3.24.2 virt live ISO, 1 vCPU, 512 MiB, VBOX_USER_HOME=vbox-dev/vbox-home) runs under VBoxHeadless from the build output; snapshot base holds the booted guest at the login prompt. vm.sh restore tested from running and powered-off states.
vm.sh dumpcore pauses the guest and runs debugvm dumpvmcore: 549 MB ELF core, 17 LOAD segments, contains the guest's Linux version 6.18.52-0-virt banner.
README covers rebuild, module load/reload, VM create/start/snapshot/restore/poweroff/dumpcore, kernel switching.
Fixed during testing: poweroff returns before VBoxHeadless drops the session lock, so restore now waits for it; the start poll uses list runningvms (takes no lock).
Activity
Wenzel commentedon Oct 11, 2026
Done locally in
~/vmi/vbox-dev/(outside both repos, so no PR):switch-kernel.sh generic|nyxsets the default GRUB kernel (original saved to/etc/default/grub.nyx.bak); host now runs6.8.0-146-generic.vm.sh modules|reloadinsmods vboxdrv/vboxnetflt/vboxnetadp from the build output;/dev/vboxdrvisroot:ops 0660. Reload tested.microvmi-alpine(Alpine 3.24.2 virt live ISO, 1 vCPU, 512 MiB,VBOX_USER_HOME=vbox-dev/vbox-home) runs under VBoxHeadless from the build output; snapshotbaseholds the booted guest at the login prompt.vm.sh restoretested from running and powered-off states.vm.sh dumpcorepauses the guest and runsdebugvm dumpvmcore: 549 MB ELF core, 17 LOAD segments, contains the guest'sLinux version 6.18.52-0-virtbanner.Fixed during testing:
poweroffreturns before VBoxHeadless drops the session lock, sorestorenow waits for it; the start poll useslist runningvms(takes no lock).Left open for maintainer review.
Wenzel commentedon Oct 11, 2026
Done (see comment above); closing as the work is verified and in use by later tickets.