1)啟動虛擬機報錯,錯誤下
[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
2
- 第一章:Vagrant基礎介紹
- 第二章:Vagrant的安裝部署
- 第一節:在centos7.3的系統上安裝部署vagrant
- 第二節:在windows server 2008 R2的系統上安裝部署vagrant
- 第三章:vagrant常見命令
- 第一節:box
- 第二節:虛擬機相關的命令
- 第四章:vagrant管理虛擬機
- 第一節:初始化centos6的系統
- 第二節:初始化ubuntu16.04的系統
- 第三節:打包自己的box
- 第五章:Vagrant之網絡配置
- 第一節:通過Forwarded Ports(轉發端口)
- 第二節:Private Networks(私有網絡)
- 第三節:Public Networks(公有網絡)
- 第六章:常見錯誤
- 第七章:Vagrant之文件同步方式
- 第一節:synced_folder(把物理機的目錄同步到虛擬機里某個目錄)
- 第二節:通過NFS共享
- 第三節:通過rsync共享
- 第八章:Vagrantfile配置文件