Vagrant machines sporadically go into 'aborted' state

658 views
Skip to first unread message

Ian Vernon

unread,
Apr 27, 2016, 7:16:48 PM4/27/16
to Vagrant
Hi,
I am working on a team that uses Vagrant VMs as part of our test pipelines. However, recently, we have had all VMs go into 'aborted' state during our builds without warning. The VMs never go into 'aborted' state at the same time. This issue happens inconsistently; sometimes the test pipeline succeeds just fine, and other times it doesn't, with no change in our code that provisions the Vagrant VMs. I tried running the build with INFO Level logging set up, but this did not give me any useful information re: why the VMs were going into aborted state. I tried looking at VirtualBox logs, which also gave no new information. I tried looking at /var/log/messages and dmesg too, to no avail. Has anyone else ever suffered this issue? Does anyone know where I should look next / what methods I can use to debug this issue? 

We use Vagrant with VirtualBox running on OEL.
Vagrant version: Vagrant 1.7.4
VirtualBox version: 5.0.10r104061

Alvaro Miranda Aguilera

unread,
Apr 29, 2016, 5:36:07 AM4/29/16
to vagra...@googlegroups.com
Hello

I think more troubleshooting need to be done, I will suggest enable remote syslog and netconsole to be able to see why the guest OS is crashing.

How are you in term of resources? if you overcommit memory, this may lead to boxes to go into suspended, won't explain crash.

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/066459cc-b981-4032-b06d-db1d6574d24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian Vernon

unread,
Aug 21, 2016, 4:44:50 PM8/21/16
to Vagrant
Hi Alvaro,
Sorry for not getting back to you sooner about this.
Turns out this was the issue: https://github.com/mitchellh/vagrant/issues/6228. We had multiple Jenkins jobs using Vagrant VMs, and the first job started this VBoxSvc daemon. When the second job started while the first one was running the Vagrant VMs, it attached onto the VBoxSvc daemon started by the first job. When the first job ended, Jenkins killed all processes spawned by the job, including the VBoxSvc daemon. This caused the second job to fail, as the VBoxSvc daemon it was attached to got killed.
Hope this helps if anyone else hits this issue!
Thanks and cheers,
Ian
Reply all
Reply to author
Forward
0 new messages