zoukankan      html  css  js  c++  java
  • vagrant up提示“Couldn‘t open file /path/to/base“的错误解决方法

    vagrant使用命令vagrant up启动虚拟机时

    出错:

    C:\Vagrant>vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'base' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    ==> default: Box file was not detected as metadata. Adding it directly...
    ==> default: Adding box 'base' (v0) for provider: virtualbox
        default: Downloading: base
        default:
    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 /E:/WorkSpace/Vagrant/base

    原因分析:

    在使用vagrant init命令初始化配置文件的时候未指定虚拟机名称,也就是命令:vagrant box add BoxName boxpath中的BoxName。

    解决办法:

    1.再来一遍,重新生成Vagrantfile配置文件

    vagrant init BoxName

    2.修改Vagrantfile文件中config.vm.box参数:

    config.vm.box = "base"

    将base修改为你的虚拟机名称。

    参考:官方链接

  • 相关阅读:
    软件开发术语
    网络规划与设计
    MPLS LDP协议
    MPLS 基础
    CallAfter
    LongRunningTasks
    Non-blocking GUI
    WorkingWithThreads
    Python: Running Ping, Traceroute and More
    wxPython and Threads
  • 原文地址:https://www.cnblogs.com/lxwphp/p/15453950.html
Copyright © 2011-2022 走看看