常见错误
启动虚拟机报错,错误下
[root@vagrant ubuntu]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
An action 'up' was attempted on the machine 'default',
but another process is already executing an action on the machine.
Vagrant locks each machine for access by only one process at a time.
Please wait until the other Vagrant process finishes modifying this
machine, then try again.
If you believe this message is in error, please check the process
listing for any "ruby" or "vagrant" processes and kill them. Then
try again.
介绍:这是由于执行vagrant up 启动虚拟机的时候,以外中断导致的,我们必须通过kill杀掉响应的进程(这里一定要看清楚,别kill错咯)
[root@vagrant ubuntu]# ps -ef|grep vagrant
avahi 19833 1 0 10:30 ? 00:00:00 avahi-daemon: running [vagrant.local]
root 66336 5220 0 15:23 pts/1 00:00:00 bash /usr/bin/vagrant up
root 66337 66336 0 15:23 pts/1 00:00:00 /opt/vagrant/bin/vagrant up
root 66342 66337 0 15:23 pts/1 00:00:01 ruby /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/bin/vagrant up
root 67956 5220 0 15:39 pts/1 00:00:00 grep --color=auto vagrant
[root@vagrant ubuntu]# kill -9 66342