Skip to content

keep_registered and skip_export are mutually exclusive #121

Description

@remi-espie
          Something still off with the combination of parms to get this to work

I have the following params that I believe are relevant to delivering a working VM in Hyper-V manager:

  temp_path             = "E:/Hyper-V/"
  shutdown_command = "shutdown /s /t 5" 
  shutdown_timeout = "60s"
  keep_registered = true
  skip_export     = true 
  skip_compaction = true

I have no output_directory specfied according to hints mentioned in this thread.

HyperV "Virtual Machine" files appear to remain in the build folder below E:/Hyper-V/ - but there is no "Virtual DIsks" folder - that appears to be created in an output-xxx subfolder beside the HCL file.

The VM listed in HyperV manager will not start - complains about missing disk files. WHen I move the Virtual DIsk folder below the build folder, then complains about incorrect perms.

Ulitimately perhaps I'm abusing packer to create VM instances rather than images, but then perhaps keep_registered and skip_export should not be options?

packer 1.9.4 with hyperv plugin 1.1.3

Originally posted by @pmcevoy in #115 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions