为VirtualBox提供程序添加Vent框添加Bento / centos-7失败

时间:2019-02-15 20:10:45

标签: vagrant centos7 bento

我正在尝试使用Vagrant通过此命令添加一个框

function my_custom_header() {
  if(is_category('19')) {
    get_header('19');
  } elseif(is_category('20')) {
    get_header('20');
  } else {
    get_header();
  }
}

但是失败,并出现以下错误

vagrant box add bento/centos-7 --provider=VirtualBox

我正在Windows 10环境中使用CygWin的Vagrant 2.2.3

建议?

1 个答案:

答案 0 :(得分:0)

我已经解决了...关于提供者名称,这确实是一个愚蠢的错误...不是“ VirtualBox”,而是“ virtualbox” ...

正确的命令是

vagrant box add bento/centos-7 --provider=virtualbox