gpt4 book ai didi

vagrant 找不到现有的盒子

转载 作者:行者123 更新时间:2023-12-04 14:13:06 28 4
gpt4 key购买 nike

我是从 https://dl.dropboxusercontent.com/s/x1085661891dhkz/lxc-centos6.5-2013-12-02.box 添加本地文件的框

vagrant box 添加centos centos.box

Vagrant 初始化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

最佳答案

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

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

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

关于vagrant 找不到现有的盒子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23183217/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com