Skip to content

VBox 1b: Run VirtualBox on the host with a test guest #271

Closed

Description

@Wenzel

Parent

#269

What to build

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

Blocked by

Activity

  1. Wenzel commented on Oct 11, 2026

    @Wenzel
    OwnerAuthor

    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).

    Left open for maintainer review.

  2. Wenzel commented on Oct 11, 2026

    @Wenzel
    OwnerAuthor

    Done (see comment above); closing as the work is verified and in use by later tickets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions