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

keep_registered and skip_export are mutually exclusive #121

Open
remi-espie opened this issue Jan 2, 2024 · 0 comments
Open

keep_registered and skip_export are mutually exclusive #121

remi-espie opened this issue Jan 2, 2024 · 0 comments

Comments

@remi-espie
Copy link
Contributor

          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)

@remi-espie remi-espie mentioned this issue Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant