V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
overlords
V2EX  ›  Vagrant

vagrant up 报错请帮忙

  •  
  •   overlords · 2014-10-11 00:52:01 +08:00 · 10753 次点击
    这是一个创建于 3688 天前的主题,其中的信息可能已经有所发展或是发生改变。
    $ sudo vagrant up
    ringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
    VAGRANTFILE_API_VERSION = "2"

    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    # All Vagrant configuration is done here. The most common configuration
    # options are documented and commented below. For a complete reference,
    # please see the online documentation at vagrantup.com.

    # Every Vagrant virtual environment requires a box to build off of.
    config.vm.box = "centos7"

    # Disable automatic box update checking. If you disable this, then
    # boxes will only be checked for updates when the user runs
    # `vagrant box outdated`. This is not recommended.
    config.vm.box_check_update = false

    # Create a forwarded port mapping which allows access to a specific port
    # within the machine from a port on the host machine. In the example below,
    # accessing "localhost:8080" will access port 80 on the guest machine.
    # config.vm.network "forwarded_port", guest: 80, host: 8080




    ==========================================



    $ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
    ==> default: Adding box 'centos7' (v0) for provider: virtualbox
    default: Downloading: centos7
    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/a/vagrant/centos7/centos7
    OverlordsMac:centos7 a$
    4 条回复    2019-12-01 22:30:13 +08:00
    haiyang416
        1
    haiyang416  
       2014-10-11 09:03:33 +08:00 via Android   ❤️ 1
    错误提示不是说没找到 box 么?
    Vagrant box list 看下有没有,没有的话重新添加。
    overlords
        2
    overlords  
    OP
       2014-10-11 09:45:00 +08:00
    @haiyang416 vagrant box list中是有的。
    abc123ccc
        3
    abc123ccc  
       2016-05-05 09:40:33 +08:00
    我也出现这个问题了,不知道杂回事: Couldn't open file /D:/wamp/www/centos-6.7-x86_64 老是提示这个。烦死了
    xbw1220
        4
    xbw1220  
       2019-12-01 22:30:13 +08:00
    导入的 box 没有对应自己安装的虚拟化类型吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1505 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:22 · PVG 01:22 · LAX 09:22 · JFK 12:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.