Skip to content

Enhance Vagrant Box(es) building#356

Merged
andrewlukoshko merged 4 commits into
AlmaLinux:mainfrom
yuravk:main
Jun 11, 2026
Merged

Enhance Vagrant Box(es) building#356
andrewlukoshko merged 4 commits into
AlmaLinux:mainfrom
yuravk:main

Conversation

@yuravk

@yuravk yuravk commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator
  • Use r8i.2xlarge instead of c5n.metal instance type if RunsOn runners
  • Correct KVM kernel module(s) unload
  • Bump Packer's boot_wait default from 10s to 30s
  • Document watching the VirtualBox VM console

yuravk added 4 commits June 10, 2026 18:21
On slower hosts (e.g. EC2-based self-hosted runners), the VM does not
reach the GRUB menu within 10 seconds, so the boot_command keystrokes
are partially lost: the initial `e` (edit entry) is eaten, the
subsequent `<down><down>` moves the *menu* selection to "Rescue an
AlmaLinux system" instead of navigating the entry editor, and the build
hangs at the GRUB menu until ssh_timeout.

30s still fits comfortably within the ISO's GRUB menu auto-boot timeout
(60s), so the keystrokes land while the menu is up on both fast and
slow hosts. The only cost is +20s per ISO build on fast runners.
When the virtualbox-iso packer build hangs (most commonly at "Waiting
for SSH to become available..."), seeing the VM's screen usually
identifies the cause immediately - e.g. the VM parked at the GRUB menu
because the boot_command keystrokes were typed before the menu was up.

Add a "Debugging: watching the VirtualBox VM console" section to
BUILD_VAGRANT.md covering both options:

  - One-off screenshot with base VirtualBox
    (`VBoxManage controlvm <vm> screenshotpng`) - works only during a
    live hang; once packer fails it stops and unregisters the VM, so
    there is nothing left to capture afterwards.

  - Interactive VRDP - requires the Oracle VirtualBox Extension Pack
    on the build host. Documents the silent-Connection-refused symptom
    when the pack is missing, the PUEL licensing caveat (personal /
    educational use only - which is why the workflows do NOT install
    it), the version-matched install recipe, the VM-start timing
    gotcha (VRDE only binds for VMs started after the pack is
    installed), and the SSH-tunnel + RDP recipe for viewing from a
    workstation.

Troubleshooting item 3 (the VirtualBox SSH-timeout hang) now links to
the new section and names the GRUB boot_command timing race as the
common root cause, with the boot_wait override as the mitigation.
@yuravk yuravk requested a review from andrewlukoshko June 11, 2026 09:32
@andrewlukoshko andrewlukoshko merged commit 1f24246 into AlmaLinux:main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants