Vagrant: System freeze after running vagrant up

Created on 15 Aug 2020  ยท  10Comments  ยท  Source: hashicorp/vagrant

Vagrant version

vagrant -v
Vagrant 2.2.9

Host operating system

This is the operating system that you run locally.

Arch Linux

uname -r
5.8.1-arch1-1

Guest operating system

This is the operating system you run in the virtual machine.
Arch Linux.

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "archlinux/archlinux"

  config.vm.provider "virtualbox" do |vb|
     vb.gui = true
     vb.memory = "512"
     vb.cpus = "1"
  end

end

Debug output

https://gist.github.com/amitlevy21/cfa1a116152b93abceaf8e29fc84e505

Expected behavior

What should have happened?
VM should boot normally.

Actual behavior

What actually happened?
System freeze, forced to restart PC.

Steps to reproduce

  1. Install Arch Linux with 5.8.1 kernel.
  2. Install VirutalBox latest and enable it's kernel modules.
lsmod | grep vbox
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               528384  2 vboxnetadp,vboxnetflt
  1. cd to the directory with Vagrantfile and run vagrant up
  2. The system will freeze after attempting to SSH to the machine and failing to connect.

Additional notes

  1. Iv'e tried changing vb.memory and vb.cpus to 2048 and 4 respectively. Same result. My PC has 8GB RAM and 4 cores.
  2. This is reproducible for me. It happen 4/5 of the times I've tried. Not sure why one time it didn't happen.
  3. This is the first time I'm using Vagrant, today I've updated to 5.8.1 Linux kernel, so I don't know if it reproduces in 5.7.x
  4. My system does not freeze if I manually run the VM that vagrant built through VirtualBox.
hosarch waiting-reply

Most helpful comment

Looks like this is not a Vagrant issue, but a Virtualbox one:
https://www.virtualbox.org/ticket/19644
https://bbs.archlinux.org/viewtopic.php?id=258217

Closing, as this is not Vagrant specific.
Thanks everybody for the efforts.

All 10 comments

Can confirm this behavior on my machine. Vagrant worked fine until 5.8 kernel. I'm also running Arch Linux with kernel version 5.8.1-arch1-1 and Vagrant version 2.2.9. Sometimes the system freezes almost immediately after running vagrant up and sometimes it freezes during ssh step.

Issue persists with 5.8.2 kernel.

I am unable to reproduce this on the 5.8.3 kernel and virtualbox 6.1.12. Does updating the kernel resolve this issue?

The issue persist with kernel 5.8.3 and virtual box 6.1.12

Hi there,

This is definitely odd behavior, but Vagrant itself should not be able to cause the system to panic. While this behavior does not appear to be isolated (since two of you are here reporting the same behavior) it is not something that is reproducible on any installation. One thing that may provide some useful information is to tail the system logs while you are attempting to bring up the guest with Vagrant to see if anything is reported prior to the system failing.

@soapy1 @chrisroberts Thank you for looking into this.

Iv'e used journalctl -b -1 -x to extract the logs from yesterday (when I responded that the issue persists with 5.8.3)

https://gist.github.com/amitlevy21/469c5ce60f1d9dda384caaab03d4d886

I ran vagrant up at 22:43.

As I understand, the issue does not reproduce with your machines because you are using a different Linux distribution?

I'll try to provide my logs tomorrow, if I remember. I noticed that this issue is only present on my laptop and not desktop, even though both are running Arch and have the same kernel and program versions.

I'm having the same issue described. I am currently running

  • Arch Linux
  • Linux 5.8.4.arch1-1
  • Vagrant 2.2.9-2
  • VirtualBox 6.1.12-4

Every time I try to vagrant up a box, the host ends up completely freezing after some time. One thing I've managed to reproduce multiple times is the freeze happening when running ss on the host when Vagrant is in the SSH phase. From this I suppose the problem network-related.

I have tried this on two different computers and the results are the same (the kernel, etc. are the same though).

  1. My system does not freeze if I manually run the VM that vagrant built through VirtualBox.

I thought this was the case too, but I've tried to run manually and the freeze still happens, it just seems to take longer (however it's immediate when triggered by ss).


PS: I have just managed to reproduce the freeze when starting a non-Vagrant generated VM (single NAT interface). Right after it started booting, I ran ss on the host and it froze. So it seems this is probably a bug in VirtualBox or the kernel.

I have also tried switching network drivers in VirtualBox but to no avail.

Looks like this is not a Vagrant issue, but a Virtualbox one:
https://www.virtualbox.org/ticket/19644
https://bbs.archlinux.org/viewtopic.php?id=258217

Closing, as this is not Vagrant specific.
Thanks everybody for the efforts.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobertSwirsky picture RobertSwirsky  ยท  3Comments

jazzfog picture jazzfog  ยท  3Comments

tomhking picture tomhking  ยท  3Comments

luispabon picture luispabon  ยท  3Comments

cbednarski picture cbednarski  ยท  3Comments