Answer the question
In order to leave comments, you need to log in
How to deal with the nuances of working in Vagrant?
I am a web developer, I recently got acquainted with Vagrant, some issues have resolved themselves, but some still remain.
1. If I have several projects, does it mean that each of them should have its own virtual machine? If yes, then what about the space on the HDD, because one VM takes up about 2GB of space for me.
If it is possible to use one VM for several projects and distribute them there as vhosts, then it is not clear to me why this should be done if the very idea with which Vagrant should be used. Even the same PHPStorm assumes the presence of a separate VM for each project.
2. I encountered a not very pleasant situation when the working VM suddenly refused to work and revive me
ее не удалось. В логах консоли я наблюдал следующее:
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
Answer the question
In order to leave comments, you need to log in
On the first question: is it really a problem to allocate 2 gigabytes for a working tool in 2014?
On the second: try to turn off the virtual machine through vagrant halt. It seems that after an unsuccessful shutdown, the virtual machine hangs on the grub screen.
3: Probably, it can be done like this:
but I don't understand why?
4: try to use the option:xdebug.remote_host = 10.0.2.2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question