I have a machine built by puphpet (with cent os) that usually hangs on *local: Warning: Remote connection disconnect. Retrying...* and I have to CTRL + C from it, run *vagrant halt *and then run *vagrant up* again. This usually happens 3 to 5 times on a daily basis (everytime I need to turn the machine on). Today this got even worst. I've been at it for more than 2h trying to turn it on and it simply won't finish the whole process. It either hangs even before the machine is booted or it hangs on the same *local: Warning: Remote connection disconnect. Retrying...*. If I look at the preview screen in the Virtual Box interface, I can see the machine has already booted, but the *vagrant up* process just hangs there.
Here is a timeline (sequentially) of a few recent attempts. I usually wait for about 5 minutes, then I CTRL + C out of it and run *vagrant halt.* Deleu@DELEU-PC MINGW64 /d/Workspace/php56/puphpet $ vagrant up Bringing machine 'local' up with 'virtualbox' provider... ==> local: Checking if box 'puphpet/centos65-x64' is up to date... ==> local: Fixed port collision for 3306 => 3306. Now on port 10200. ==> local: Clearing any previously set network interfaces... ==> local: Preparing network interfaces based on configuration... local: Adapter 1: nat local: Adapter 2: hostonly ==> local: You are trying to forward to privileged ports (ports <= 1024). Most ==> local: operating systems restrict this to only privileged process ( typically ==> local: processes running as an administrative user). This is a warning in case ==> local: the port forwarding doesn't work. If any problems occur, please try a ==> local: port higher than 1024. ==> local: Forwarding ports... local: 3306 (guest) => 10200 (host) (adapter 1) local: 80 (guest) => 80 (host) (adapter 1) local: 8000 (guest) => 8000 (host) (adapter 1) local: 9876 (guest) => 9876 (host) (adapter 1) local: 3011 (guest) => 3011 (host) (adapter 1) local: 22 (guest) => 2222 (host) (adapter 1) ==> local: Running 'pre-boot' VM customizations... ==> local: Booting VM... -------------- Deleu@DELEU-PC MINGW64 /d/Workspace/php56/puphpet $ vagrant up Bringing machine 'local' up with 'virtualbox' provider... ==> local: Checking if box 'puphpet/centos65-x64' is up to date... ==> local: Clearing any previously set forwarded ports... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "9bed02f2-651e-4814-8296-8c9817d199d1", "--natpf1", "delete", "ssh", "--natpf1", "delete", "tcp3011", "--natpf1", "delete", "tcp3306", "--natpf1", "delete", "tcp80", "--natpf1", "delete", "tcp8000", "--natpf1", "delete", "tcp9876"] Stderr: VBoxManage.exe: error: An unexpected process (PID=0x00001298) has tried to lock the machine 'local.puphpet', while only the process started by LaunchVMProcess (PID=0x00001CCC) is allowed VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 493 of file VBoxManageModifyVM.cpp --------------- After killing processes involving bash.exe and Virtual Box, I retried: Deleu@DELEU-PC MINGW64 ~ $ puphpet Bringing machine 'local' up with 'virtualbox' provider... ==> local: Checking if box 'puphpet/centos65-x64' is up to date... ==> local: Clearing any previously set forwarded ports... ==> local: Clearing any previously set network interfaces... ==> local: Preparing network interfaces based on configuration... local: Adapter 1: nat local: Adapter 2: hostonly ==> local: You are trying to forward to privileged ports (ports <= 1024). Most ==> local: operating systems restrict this to only privileged process ( typically ==> local: processes running as an administrative user). This is a warning in ca se ==> local: the port forwarding doesn't work. If any problems occur, please try a ==> local: port higher than 1024. ==> local: Forwarding ports... local: 3306 (guest) => 3306 (host) (adapter 1) local: 80 (guest) => 80 (host) (adapter 1) local: 8000 (guest) => 8000 (host) (adapter 1) local: 9876 (guest) => 9876 (host) (adapter 1) local: 3011 (guest) => 3011 (host) (adapter 1) local: 22 (guest) => 2222 (host) (adapter 1) ==> local: Running 'pre-boot' VM customizations... ==> local: Booting VM... ==> local: Waiting for machine to boot. This may take a few minutes... local: SSH address: 127.0.0.1:2222 local: SSH username: vagrant local: SSH auth method: private key local: Warning: Remote connection disconnect. Retrying... Note that it doesn't give multiple *Warning: remote connection* message, it only gives me once and it hangs there forever. ------ Deleu@DELEU-PC MINGW64 ~ $ puphpet Bringing machine 'local' up with 'virtualbox' provider... ==> local: Checking if box 'puphpet/centos65-x64' is up to date... ==> local: Clearing any previously set forwarded ports... Does anybody have any suggestion as to how to figure out why these things are hanging and how to go about trying to solve it? Thanks. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2926cce1-ee27-4bd6-8ec7-4310d6b0d5f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.