vagrant up 报错请帮忙

2014-10-11 00:52:01 +08:00
 overlords
$ sudo vagrant up
ringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos7"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080




==========================================



$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'centos7' (v0) for provider: virtualbox
default: Downloading: centos7
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /Users/a/vagrant/centos7/centos7
OverlordsMac:centos7 a$
10763 次点击
所在节点    Vagrant
4 条回复
haiyang416
2014-10-11 09:03:33 +08:00
错误提示不是说没找到 box 么?
Vagrant box list 看下有没有,没有的话重新添加。
overlords
2014-10-11 09:45:00 +08:00
@haiyang416 vagrant box list中是有的。
abc123ccc
2016-05-05 09:40:33 +08:00
我也出现这个问题了,不知道杂回事: Couldn't open file /D:/wamp/www/centos-6.7-x86_64 老是提示这个。烦死了
xbw1220
2019-12-01 22:30:13 +08:00
导入的 box 没有对应自己安装的虚拟化类型吧

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/138190

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX