• vagrant安装遇到的问题


    一、vagrant up

    提示版本过低

    The version of powershell currently installed on this host is less than
    the required minimum version. Please upgrade the installed version of
    powershell to the minimum required version and run the command again.


      Installed version: 2

      Minimum required version: 3

    解决办法:

    下载对应的  更新下  更新好后会提示重启  重启下电脑就可以了 

     链接:https://pan.baidu.com/s/1Q_nqSaeN-5i_yrq-0gH4IA

    密码:95hd

    windows 7 SP1

    64位选用Windows6.1-KB2819745-x64-MultiPkg.msu

    二、在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修改为你的虚拟机名称。

    说白了就是没在安装目录下运行,所以找不到文件

    三、安装好后可以用box工具登陆

    默认账号密码都是vagrant

  • 相关阅读:
    C# tcp发送十六进制数据
    WPF中通过AForge实现USB摄像头拍照
    借鉴过的别人的帖子之C#篇
    C# 连续的语音识别
    C# NAudio 录音
    AS3 水波纹
    ARM多核心集群服务器
    RK3399Pro Android Rock-X 人工智能开发系列(2)
    智能化连锁门店解决方案
    RK3399Pro Android Rock-X 人工智能开发系列(1)
  • 原文地址:https://www.cnblogs.com/blange/p/15246187.html
Copyright © 2020-2023  润新知