A manually created macOS Big sur Virtualbox contains a .nvram file, which is required to boot the VM. vagrant package does not include the .nvram file in the box, thus a VM created this way isn't functional. One can work around this using the --include option to bundle the .nvram file and then copy it manually in the Vagrant file (using a trigger after the VirtualBox import), but that's cumbersome. It would be nice if this would work automatically.
Vagrant version
2.2.18
Host operating system
macOS Big Sur 11.5.2
Guest operating system
macOS Big Sur 11.5.2 (also affects e.g. macOS Catalina 10.15.7)
"vagrant package" automatically includes the .nvram file from the existing VirtualBox VM. "vagrant up" copies it using the expected name (${vmname}.nvram).
Actual behavior
The .nvram isn't included in the box and the VM doesn't boot.
What actually happened?
.nvram file is ignored and not included in the box.
Steps to reproduce
Manually create a VirtualBox macOS VM (might also affect other VMs using EFI/nvram) (assuming name "BigSurTest")
Verify that the virtualbox folder contains a .nvram file
vagrant package --base BigSurTest
tar xvf package.box. Verify that there's no .nvram file included.
A manually created macOS Big sur Virtualbox contains a .nvram file, which is required to boot the VM.
vagrant package
does not include the .nvram file in the box, thus a VM created this way isn't functional. One can work around this using the --include option to bundle the .nvram file and then copy it manually in the Vagrant file (using a trigger after the VirtualBox import), but that's cumbersome. It would be nice if this would work automatically.Vagrant version
2.2.18
Host operating system
macOS Big Sur 11.5.2
Guest operating system
macOS Big Sur 11.5.2 (also affects e.g. macOS Catalina 10.15.7)
Debug output
https://gist.github.com/frankosterfeld/ddd544d95a76ce4aff3d45023ad288e8
Expected behavior
"vagrant package" automatically includes the .nvram file from the existing VirtualBox VM. "vagrant up" copies it using the expected name (${vmname}.nvram).
Actual behavior
The .nvram isn't included in the box and the VM doesn't boot.
What actually happened?
.nvram file is ignored and not included in the box.
Steps to reproduce
vagrant package --base BigSurTest
tar xvf package.box
. Verify that there's no .nvram file included.