overlords
V2EX  ›  Vagrant

vagrant up 报错请帮忙

  •  
  •   overlords · Oct 11, 2014 · 11900 views
    This topic created in 4409 days ago, the information mentioned may be changed or developed.
    $ 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 replies  •  2019-12-01 22:30:13 +08:00
    haiyang416
    haiyang416
    Oct 11, 2014 via Android❤️1
    1
    错误提示不是说没找到 box 么?
    Vagrant box list 看下有没有,没有的话重新添加。
    overlords
    overlords
    OP
    Oct 11, 2014
    2
    @haiyang416 vagrant box list中是有的。
    abc123ccc
    abc123ccc
    May 5, 2016
    3
    我也出现这个问题了,不知道杂回事: Couldn't open file /D:/wamp/www/centos-6.7-x86_64 老是提示这个。烦死了
    xbw1220
    xbw1220
    Dec 1, 2019
    4
    导入的 box 没有对应自己安装的虚拟化类型吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4079 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:35 · PVG 13:35 · LAX 21:35 · JFK 00:35
    ♥ Do have faith in what you're doing.