Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 115236  / 3 Years ago, sun, may 16, 2021, 4:44:45

I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with this message: waiting for vboxnet0 to become free



I searched about solutions and I found this page :



http://en.kioskea.net/faq/3348-ubuntu-executing-a-script-at-startup-and-shutdown



I tried what they for shutdown, but it doesn't work.



I wrote an sh file for that command:



#!/bin/bash

cd ~/workspace/git/mediaservice
vagrant halt


any suggestions?


More From » shutdown

 Answers
2

If your vagrant VMs are using VirtualBox, you can modify /etc/default/virtualbox and change the line that reads:



SHUTDOWN_USERS=""


to



SHUTDOWN_USERS="all"


That fixed it for me on Ubuntu 14.04.


[#27137] Monday, May 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticeate

Total Points: 497
Total Questions: 128
Total Answers: 112

Location: Samoa
Member since Fri, Nov 27, 2020
3 Years ago
;