I’m on Ubuntu and I tried to bring up a virtual machine using VirtualBox and Vagrant. This is my Vagrantfile
:
Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
### Nginx VM ###
config.vm.define "web01" do |web01|
web01.vm.box = "ubuntu/jammy64"
web01.vm.hostname = "web01"
web01.vm.network "private_network", ip: "192.168.56.11"
web01.vm.provider "virtualbox" do |vb|
**vb.gui = true**
vb.memory = "800"
end
end
end
When I typed the command vagrant up
, I got the following error message:
==> web01: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "025e6246-9a67-4502-b67f-3e422457084b", "--type", "gui"]
Stderr: VBoxManage: error: The virtual machine 'Manual_provisioning_WinMacIntel_web01_1716649742529_50869' has terminated unexpectedly during startup with exit code 127 (0x7f)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
This error won’t be caused if I’ll disable the GUI option.
I know it’s a VirtualBox problem and not a Vagrant problem, I have the latest install of VirtualBox, and I searched through the Internet for a practical solution but didn’t find any. I tried to reboot the host and reinstall VirtualBox but unfortunately it didn’t help.
Any suggestion would be helpful!