我是从https://dl.dropboxusercontent.com/s/x1085661891dhkz/lxc-centos6.5-2013-12-02.box添加本地文件的方框
vagrant box添加centos centos.box
流浪汉初始
我的shell:
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
Run Code Online (Sandbox Code Playgroud)
使用带有文件协议URI的完整路径添加本地Box文件.例如:
vagrant box add centos file:///Users/zicjin/Work/vagrant-centos/centos.box
Run Code Online (Sandbox Code Playgroud)
(当然,确切的位置取决于您放置文件的位置)
| 归档时间: |
|
| 查看次数: |
7207 次 |
| 最近记录: |