2.0.1
Ubuntu
Ubuntu
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'json'
require 'yaml'
VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))
homesteadYamlPath = confDir + "/Homestead.yaml"
homesteadJsonPath = confDir + "/Homestead.json"
afterScriptPath = confDir + "/after.sh"
aliasesPath = confDir + "/aliases"
require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')
Vagrant.require_version '>= 1.9.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exist? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
config.vm.provision "shell" do |s|
s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
end
end
if File.exist? homesteadYamlPath then
settings = YAML::load(File.read(homesteadYamlPath))
elsif File.exist? homesteadJsonPath then
settings = JSON.parse(File.read(homesteadJsonPath))
else
abort "Homestead settings file not found in #{confDir}"
end
Homestead.configure(config, settings)
if File.exist? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath, privileged: false
end
if defined? VagrantPlugins::HostsUpdater
config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
end
end
Provide a link to a GitHub Gist containing the complete debug output:
https://www.vagrantup.com/docs/other/debugging.html. The debug output should
be very long. Do NOT paste the debug output in the issue, just paste the
link to the Gist.
I can't copy the debug output from terminal because my PC freezes. (BTW: the mentioned URL is expired)
The vagrant up command should boot the VM
VM is not booted and PC freezes so I have to restart it
vagrant up --debugHere is a debug picture that I have taken with my camera, since the computer hangs:

Hello!
I have the same Issue, but the above commands not work for me. It still freezes.
And with vagrant reload not get the helpfull error message
I have vagrant 2.0.1
and ubuntu 16.04 as a host
I tried to reinstall virtualbox and homestead but get the same behavior.
Anyone know how to fix this?
Thanks
I reinstalled my computer, installed Vagrant 2.0.1, virtualbox, virtualbox-dkms and homestead, but it still freezes on "Booting VM". The trick that I used in my previous comment is also not working for me anymore (I deleted them now). I have currently no idea what is happening.
Buts interesting that I can reproduce the problem on my HP 350 G2 laptop with a fresh Ubuntu installation.
Hey @iwasherefirst2 nad @eugeniregi I am also getting this problem for last 3-4 days in one of my workstation and didn't look for any solution until today when I upgraded second workstation's kernel. I think this problem is causing of new Ubuntu kernel 4.13.0-26-generic. I have booted to previous kernel 4.10.0-42-generic and tried vagrant up and it worked perfectly for both of my workstations. It is a temporary fix not a permanent solution though.
@tier5 THANK YOU SO MUCH :D!!!!!!!!!!!!!!!!!!!!!!
Its working with the old kernel. However I had to do the following:
The GRUB menu did not show up when I was pressing the SHIFT key. Instead I had to change the /etc/default/grub the line GRUB_HIDDEN_TIMEOUT=0 to GRUB_HIDDEN_TIMEOUT=.
After booting with the old kernel, vagrant up created the following error message:
The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.The UID used to create the VM was:
Your UID is: 1000
So I had to add my UID 1000 to the file
Homestead/.vagrant/machines/homestead-7/virtualbox/creator_uid
I also had to enter in terminal:
$ vboxmanage list vms
"my-vm" {c700b8b6-b766-4638-871b-736b44b7db18}
and copy that number c700b8b6-b766-4638-871b-736b44b7db18 in the file Homestead/.vagrant/machines/homestead-7/virtualbox/id after that, vagrant up was working again.
Thank you for that hint! I was just about to buy another laptop..
Going to go ahead and close this since it looks resolved! 🎉
Actually its not solved yet, but the bug has been reported and its related to the Ubuntu Kernel and not to vagrant: https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1736116
Hi,
I've been able to run again homestead after upgrading my Ubuntu kernel to 4.13.0.32 (Ubuntu Xenial) just updating Virtualbox to 5.2.6
This is what I've done:
1.- Add oracle repository :
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian xenial contrib"
2.- Add GPG keys for repository :
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
3) Install VirtualBox 5.2
sudo apt update && sudo apt install virtualbox-5.2
In my case I had errors while trying to _vagrant up_:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "12cec1a1-7453-415b-9467-4db112681a96", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'homestead-7' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
So I had to remove _virtualbox-dkms_ package and run /sbin/vboxconfig:
sudo apt remove --purge virtualbox-dkms
sudo /sbin/vboxconfig
Now VM is up and running again as always did... hope it helps to someone.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Hi,
I've been able to run again homestead after upgrading my Ubuntu kernel to 4.13.0.32 (Ubuntu Xenial) just updating Virtualbox to 5.2.6
This is what I've done:
1.- Add oracle repository :
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian xenial contrib"2.- Add GPG keys for repository :
3) Install VirtualBox 5.2
sudo apt update && sudo apt install virtualbox-5.2In my case I had errors while trying to _vagrant up_:
So I had to remove _virtualbox-dkms_ package and run /sbin/vboxconfig:
Now VM is up and running again as always did... hope it helps to someone.