Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

vsphere-iso requires that iso_paths datastore is the same as the VM datastore #322

@NathanDotTo

Description

@NathanDotTo

I came across this helpful fix whilst searching for a cause for my issues.

In a similar exercise with Terraform, I am creating a VM where the VM datastore and the ISOs datastore are distinct, for the sake of tidiness if nothing else.

In the Terraform case, this separation of datastores is fine.

In the Packer case, it is not, but it should be.

@rushi47 I know this is probably old but I ran into this same exact issue and what fixed it was that in your variables, you specified this

"vcenter_datastore": "ESX07-LOCAL-DS01"

But in your iso_paths, you specified a different datastore location:

 "iso_paths": [
         "[ESX01-LOCAL-DS01] /ISO/CentOS-7-x86_64-Minimal-1511.iso"

Change the iso_path and vcenter_datastore to match and you should be good.

This is the correct answer here, but this is also wrong. There is no reason to assume that the ISO files should be in the same datastore as the VM. It should be possible to have distinct datastores.

Originally posted by @NathanDotTo in #228 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions