Vagrant 带流浪后处理器的包装机“;ovf文件无法';“找不到”;

Vagrant 带流浪后处理器的包装机“;ovf文件无法';“找不到”;,vagrant,virtualbox,packer,Vagrant,Virtualbox,Packer,我是帕克的新手。我听说你可以添加一个流浪的后处理器,让你得到一个简单的虚拟机来测试你的新形象。基于这些例子,我认为下面的代码可以工作。然而,我得到了这个错误 * Post-processor failed: ovf file couldn't be found 这是我的打包机配置/代码 source "digitalocean" "test" { image = "ubuntu-20-10-x64" regio

我是帕克的新手。我听说你可以添加一个流浪的后处理器,让你得到一个简单的虚拟机来测试你的新形象。基于这些例子,我认为下面的代码可以工作。然而,我得到了这个错误

* Post-processor failed: ovf file couldn't be found
这是我的打包机配置/代码

source "digitalocean" "test" {
  image         = "ubuntu-20-10-x64"
  region        = "nyc1"
  size          = "s-1vcpu-1gb"
  snapshot_name = "me-image-{{isotime \"2006-01-02T15:04\"}}"

  snapshot_regions = [
    "nyc1", "sgp1", "lon1", "nyc3", "ams3", "fra1", "tor1", "sfo2", "blr1",
    "sfo3"
  ]
  tags         = ["delete"]
  ssh_username = "root"
}

# a build block invokes sources and runs provisioning steps on them.
build {
  sources = ["source.digitalocean.test"]

  provisioner "file" {
    source      = "jump_host"
    destination = "/tmp"
  }

  post-processor "vagrant" {
    keep_input_artifact = true
    provider_override   = "virtualbox"
    output = "out.box"
  }
}
我的打包机版本是1.6.6

我的vagrant版本是2.2.10

似乎你可以删除
provider\u override=“virtualbox”
部分,Packer将创建一个包含
aws
provider的框,而你必须为aws provider创建一个插件,这可能会起作用。Vagrant文件必须包括:Vagrant.configure(“2”)do | config | config.vm.provider:aws do | aws | aws.ami=“ami-7747d01e”end