当我打包Homestead-box时:
➜ Homestead git:(master) vagrant halt
➜ Homestead git:(master) vagrant package --output h-0417.box
The Vagrant virtual environment you are trying to package must be powered off.
➜ Homestead git:(master) vagrant box list
coreos-alpha (virtualbox, 509.1.0)
coreos-alpha (virtualbox, 522.0.0)
laravel/homestead (virtualbox, 0.4.2)
➜ Homestead git:(master) vagrant package --output h-0417.box --base laravel/homestead.box
==> laravel/homestead.box: VM not created. Moving on...
➜ Homestead git:(master) pwd
/Users/qk/Homestead
➜ Homestead git:(master) vagrant --version
Vagrant 1.8.1
这是我的参考:
how-to-create-a-vagrant-base-box-from-an-existing-one
How-to-Create-a-CentOS-Vagrant-Base-Box
我继续卸载一些并行插件并重新启动osx它遇到了同样的错误:
vagrant plugin uninstall vagrant-parallels
➜ Homestead git:(master) vagrant package --output h-0418.box
The Vagrant virtual environment you are trying to package must be powered off.
➜ Homestead git:(master) pwd
/Users/qk/Homestead
➜ Homestead git:(master) ls
LICENSE.txt composer.json homestead init.sh scripts
Vagrantfile composer.lock init.bat readme.md src
是否有一些日志或如何检查安装其他一些插件以导致此错误。
答案 0 :(得分:4)
我遇到了同样的问题,但尝试将Vagrant盒子打开,然后暂停它,然后打包命令就可以了。