流浪者找不到现有的盒子 [英] vagrant can't find existing box

查看:32
本文介绍了流浪者找不到现有的盒子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了来自 的带有本地文件的框https://dl.dropboxusercontent.com/s/x1085661891dhkz/lxc-centos6.5-2013-12-02.box

vagrant box 添加 centos centos.box

vagrant box add centos centos.box

vagrant init centos

vagrant init centos

我的外壳:

cheneytekimbp:vagrant-centos zicjin$ vagrant box list
centos  (lxc, 0)
lucid32 (virtualbox, 0)
cheneytekimbp:vagrant-centos zicjin$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Adding box 'centos' (v0) for provider: virtualbox
    default: Downloading: centos
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/zicjin/Work/vagrant-centos/centos

推荐答案

使用带有文件协议 URI 的完整路径添加本地 box 文件.例如:

Add the local box file using the full path with the file protocol URI. For instance:

vagrant box add centos file:///Users/zicjin/Work/vagrant-centos/centos.box

(当然,确切位置取决于您放置文件的位置)

(the exact location of course depends on where you've put the file)

这篇关于流浪者找不到现有的盒子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆