Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown configuration key: tools_upload_flavor ESXI/ Vcenter 6.7 #10996

Closed
wladglad opened this issue May 6, 2021 · 2 comments
Closed

unknown configuration key: tools_upload_flavor ESXI/ Vcenter 6.7 #10996

wladglad opened this issue May 6, 2021 · 2 comments

Comments

@wladglad
Copy link

wladglad commented May 6, 2021

Overview of the Issue

Problem with auto VMware Tools ISO to upload into the VM
Error: * unknown configuration key: '"tools_upload_flavor"'

Only works uploading directly ISO with command

"iso_paths": [
"[] /vmimages/tools-isoimages/windows.iso"

]

Packer version

packer -v
1.7.2

Simplified Packer Buildfile

{
"builders": [
{
"cluster": "Test",
"communicator": "winrm",
"convert_to_template": "false",
"cpus": "2",
"datastore": "Kingston",
"disk_controller_type": "lsilogic-sas",
"floppy_files": [
"setup\Autounattend.xml",
"setup\script\Config_WinRM.ps1",
"setup\script\Cleaning.ps1"
],
"guest_os_type": "windows9_64Guest",
"host": "192.168.10.152",
"insecure_connection": "true",
"tools_upload_flavor": "windows",
"iso_paths": [
"[Kingston] IsoSSD/Windows10pro.iso",

  ],
  "network_adapters": [
    {
      "network": "VM Network",
      "network_card": "vmxnet3"
    }
  ],
  "password": "P@ssword1",
  "ram": "8192",
  "storage": [
    {
      "disk_size": "40000",
      "disk_thin_provisioned": true
    }
  ],
  "type": "vsphere-iso",
  "username": "administrator@vsphere.local",
  "vcenter_server": "vcenter",
  "vm_name": "packerimage",
  "winrm_password": "P@ssword1",
  "winrm_username": "admin",
  "winrm_use_ssl": "false",
  "winrm_insecure": "true",
  "shutdown_timeout": "1h",
  "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
  ]
}

],
"provisioners": [
{
"type": "powershell",
"scripts": [
"setup/script/Cleaning.ps1"
]
}
]
}

Operating system and Environment details

OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free

Log Fragments and crash.log files

D:\DEvops\packer> packer build -force .\Windows\VM-Create.json
Error: Failed to prepare build: "vsphere-iso"

1 error occurred:
* unknown configuration key: '"tools_upload_flavor"'

==> Wait completed after 0 seconds

==> Builds finished but no artifacts were created.

@ghost
Copy link

ghost commented May 7, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-vmware#19 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-vmware#19.

@github-actions
Copy link

github-actions bot commented Jun 7, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants