Bug 239527 - Loading vesa(4) via loader.conf(5) hangs the boot loader when running in VirtualBox (emulators/virtualbox-ose)
Summary: Loading vesa(4) via loader.conf(5) hangs the boot loader when running in Virt...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-30 14:14 UTC by Mateusz Piotrowski
Modified: 2023-08-18 20:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2019-07-30 14:14:33 UTC
Here is a Vagrantfile to reproduce the issue:

> Vagrant.configure("2") do |config|
>   config.ssh.shell = "sh"
>   config.vm.box = "freebsd/FreeBSD-12.0-RELEASE"
> 
>   config.vm.provider "virtualbox" do |vb|
>     vb.gui = true
>   end
> 
>   config.vm.provision "shell", inline: <<-SHELL
>     printf '%s\n' 'vesa_load="YES"' > /boot/loader.conf
>   SHELL
> end

FreeBSD won't boot after provisioning is done.

I'm running:
- FreeBSD 13.0-CURRENT r350438 GENERIC  amd64
- virtualbox-ose-5.2.32
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2019-07-30 15:18:35 UTC
I've missed some things from the previous Vagrantfile. With this one I can reproduce the issue reliably:

Vagrant.configure("2") do |config|
  config.ssh.shell = "sh"
  config.vm.box = "freebsd/FreeBSD-12.0-RELEASE"

  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
  end

  config.vm.boot_timeout = 3600

  config.vm.provision "shell", inline: <<-SHELL
    printf '%s\n' 'boot_mute="YES"' 'vesa_load="YES"' > /boot/loader.conf
  SHELL
end