Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save grahamperrin/19e86fa76b5ced90b9125c6bc6ef698f to your computer and use it in GitHub Desktop.

Select an option

Save grahamperrin/19e86fa76b5ced90b9125c6bc6ef698f to your computer and use it in GitHub Desktop.
FreeBSD 15 VirtualBox quick start

FreeBSD 15 VirtualBox quick start

15.0-RELEASE pre-installed. AMD64.

  1. https://download.freebsd.org/releases/VM-IMAGES/15.0-RELEASE/amd64/Latest/
  2. FreeBSD-15.0-RELEASE-amd64-zfs.vhd.xz
  3. decompress the flie
  4. in VirtualBox, use the media tab to add then resize the .vhd file
  5. create a FreeBSD guest with the resized disk
  6. choose VBoxSVGA
  7. ignore the warning, choose VBoxSVGA
  8. choose UEFI
  9. 3072 MB base memory
  10. start FreeBSD in single user mode
  11. gpart recover ada0
  12. exit
  13. switch from ttyv0 to ttyv1
  14. login as root, no password
  15. bsdconfig useredit root
  16. set a password, save, OK
  17. pkg upgrade
  18. install virtualbox-ose-additions-72 or greater, see https://community.kde.org/FreeBSD/Setup#VirtualBox and the comment below
  19. sysctl hw.efi.poweroff=0
  20. ee /boot/loader.conf
  21. add hw.efi.poweroff=0 to the file, save it
  22. shutdown -r now
  23. switch from ttyv0 to ttyv1
  24. login as root
@grahamperrin
Copy link
Author

If you choose less than 3072 MB, then you should probably also:

  1. ee /etc/sysctl.conf
  2. add the string below to the file, save, restart the OS.

vm.pageout_oom_seq=120

@grahamperrin
Copy link
Author

grahamperrin commented Jan 6, 2026

Note

2026-01-07: the package for virtualbox-ose-additions-72 is currently not in the quarterly FreeBSD-ports repo.

The planets are not aligned.

You may, instead, dance naked around a fire in a clearing in a forest and:

  1. pkg install -y dbus libX11 libXcursor libXext libXmu libXrandr libXt xrandr
  2. pkg add https://pkg.freebsd.org/FreeBSD:15:amd64/latest/All/virtualbox-ose-additions-72-7.2.4.1500068_1.pkg

@fxndmes
Copy link

fxndmes commented Jan 6, 2026

thank you : )

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