【问题标题】:vagrant debian/buster64 box failed (win10)vagrant debian/buster64 盒子失败(win10)
【发布时间】:2020-10-23 23:47:13
【问题描述】:

我尝试在 win10 上手动设置 vagrant 'debian/buster64' 但失败了...我的步骤:

  1. https://vagrantcloud.com/debian/boxes/buster64/versions/10.4.0/providers/virtualbox.box下载box文件
  2. 尝试设置...
$ vagrant box add --name 'debian/buster64' '4d7865da-6242-4853-bc6c-807a63c734e6'
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'debian/buster64' (v0) for provider:
    box: Unpacking necessary files from: file://D:/Downloads/4d7865da-6242-4853-bc6c-807a63c734e6
    box:
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and that enough disk space
is available and then try again.
The output from attempting to unpackage (if any):

x ./metadata.json: Cannot extract through symlink \\\\?\\C:\\Users\\mat\\.vagrant.d
x ./box.ovf: Cannot extract through symlink \\\\?\\C:\\Users\\mat\\.vagrant.d
x ./buster.vmdk: Cannot extract through symlink \\\\?\\C:\\Users\\mat\\.vagrant.d
x ./Vagrantfile: Cannot extract through symlink \\\\?\\C:\\Users\\mat\\.vagrant.d
bsdtar.EXE: Error exit delayed from previous errors.

os: windows 10
version: 1909
build: 18363.900
vagrant 2.2.9

谁知道出了什么问题?

【问题讨论】:

    标签: vagrant debian-buster


    【解决方案1】:

    我假设您已经创建了一个 Windows Junction 来将您的用户配置文件重定向到另一个驱动器(就像我一样)。好吧,Vagrant 根本不喜欢这样。

    幸运的是,您可以通过环境变量 VAGRANT_HOME 为您的 Vagrant 安装显式设置基本配置目录 (.vagrant.d)。假设您将配置文件移动到驱动器 D,则应按如下方式设置环境变量:

    VAGRANT_HOME=D:\Users\mat\.vagrant.d
    

    【讨论】:

      猜你喜欢
      • 2012-03-30
      • 1970-01-01
      • 2020-07-05
      • 2013-05-19
      • 1970-01-01
      • 2022-11-12
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      相关资源
      最近更新 更多