I am running the following:
All seems to have installed fine after I followed How to install Hashicorp's Otto tutorial.
However, each time I run otto dev
my internet connection seems to go down (meaning I get a little notify box in my right top corner that tells me that a connection has been established and I'm connected to vboxnet0
and then it tells me my ethernet connection is disconnected) and I get the following error:
pc@pc:~/development/my-rails-app$ otto dev
==> Creating local development environment with Vagrant if it doesn't exist... Raw Vagrant output will begin streaming in below. Otto does not create this output. It is mirrored directly from Vagrant while the development environment is being created.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly
==> default: Forwarding ports... default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes... The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again.
If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run
vagrant up
while the VirtualBox GUI is open.The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.
Error building dev environment: Error executing Vagrant: exit status 1
The error messages from Vagrant are usually very informative. Please read it carefully and fix any issues it mentions. If the message isn't clear, please report this to the Otto project. pc@pc:~/development/my-rails-app$
Any ideas? Is this a problem with using otto on a virtual machine?
答案 0 :(得分:0)
我是Otto的新手,但我有类似的错误。在我的情况下出现此错误的原因:我首先尝试在Vagrant中设置,即创建了一个vagrantfile,而不是尝试运行Otto。
我的Vagrantfile使用的是ubuntu图像,但它与Otto在猜测我的app结构时尝试使用的图像不同。由于Otto应该是抽象Vagrant(和其他人)的工具,我想我会让它做的工作。所以删除我的Vagrantfile解决了我的问题 - 基本上,这两个vagrantfiles是冲突的。
你可以进入并自定义你的vagrantfile和otto appfile等,但这让我开始运行。
答案 1 :(得分:0)
wily64发生了变化,将以太网设备从eth0重命名为更标准化的设备,这可能导致启动时断开连接。
最终这可以帮助您: https://gist.github.com/brbsix/b70413dec907906ef659
答案 2 :(得分:0)
这可能不是网络问题,但VMware配置错误。
如果客户操作系统看不到vmx
标志,Vagrant(VirtualBox)会抱怨。您需要确保cat /proc/cpuinfo |grep vmx
不为空。
如果您使用的是VMware Player,请关闭虚拟机,转到虚拟机设置,处理器并启用Virtualize Intel VT-x / EPT或AMD-V / RVI。