Skip to content

Enbale debian12 template to boot with uefi settings after box build #3

@philnewm

Description

@philnewm

The goal is to have all box builds working with UEFI to mimic physical machiens as closly as possible here.

Except for debian12 that already works for all other 4 box builds.
Building the box in uefi mode works when modifying the bootcomamnd in varaibales.pkr.hcl like this
These changes are based on

local "debian_vagrant_boot_command_12_x86_64" {
  expression = [
    "<wait><wait><wait>c<wait><wait><wait>",
    "linux /install.amd/vmlinuz auto=true priority=critical ",
    "url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-12-vagrant-x86_64.preseed ",
    "hostname=debian12 domain='' interface=auto ",
    "vga=788 fb=false noprompt quiet ",
    "DEBIAN_FRONTEND=text --<enter>",
    "initrd=/install.amd/initrd.gz<enter>",
    "boot<enter>"
  ]
}

The box will builds just fine but when testing to run vagrant up after the build it fails to find the UEFI Hard Disk.

So far i tried

I also tried a fully manual instalaltion in UEFI mode and it wokred even rebooting afterwards, no issues.
Will attach the exported preseed file I got from running source

sudo apt-get update && sudo apt-get install debconf-utils
sudo debconf-get-selections --installer > preseed.cfg

debian_vbox_working_uefi_preseed.txt

There must be a way to make this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions