Post-Processing not needed

32 views
Skip to first unread message

Ehsan Tajek

unread,
Apr 4, 2019, 3:52:17 AM4/4/19
to Packer
Hello all

i'm using hyperv-iso builder to build my vm with specific configuartion. I'm using Windows 10 with Hyper-V activated, so the builder itself is pretty great.
After packer finishes everything it deletes the vm and export the vagrant box. How I can keep the VM, because it does everything I need, I can connect with it through the hyperv connector, so vagrant is not really needed.

Thank you for helping me!

Kind regards,
Ehsan

Rickard von Essen

unread,
Apr 4, 2019, 4:32:58 AM4/4/19
to packe...@googlegroups.com
Just remove the post-processor vagrant section of your template. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a2079709-8585-4e84-a41f-591bcda4d0ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ehsan Tajek

unread,
Apr 4, 2019, 7:37:38 AM4/4/19
to Packer
Hi Rickard,

i did that, but still it deletes my vm and create an output file, which I need to manually create the VM again. 
See picture. How i can fix that?



Am Donnerstag, 4. April 2019 10:32:58 UTC+2 schrieb Rickard von Essen:
Just remove the post-processor vagrant section of your template. 

On Thu, Apr 4, 2019, 09:52 Ehsan Tajek <tajek...@gmail.com> wrote:
Hello all

i'm using hyperv-iso builder to build my vm with specific configuartion. I'm using Windows 10 with Hyper-V activated, so the builder itself is pretty great.
After packer finishes everything it deletes the vm and export the vagrant box. How I can keep the VM, because it does everything I need, I can connect with it through the hyperv connector, so vagrant is not really needed.

Thank you for helping me!

Kind regards,
Ehsan

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.
Capture.PNG

Megan Marsh

unread,
Apr 4, 2019, 11:09:54 AM4/4/19
to packe...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ed9ac559-59b7-41e3-b799-d46931e9103f%40googlegroups.com.

Ehsan Tajek

unread,
Apr 5, 2019, 4:23:56 AM4/5/19
to Packer
Hello,

i tried that (see below), but after the vm is built and configured, - the VM is turning off, deregistried and outputted in in DIR (where the json file is located). Any ideas?

  "builders": [
   {
     "type": "hyperv-iso",
     "guest_additions_mode": "disable",
     "iso_url": "{{ user `iso_url` }}",
     "iso_checksum": "{{ user `iso_checksum` }}",
     "iso_checksum_type": "md5",
     "ram_size": 2048,
     "cpu": 2,
     "vm_name": "PCo_DEMO_VM",
     "communicator": "winrm",
     "winrm_username": "PCoDemo",
     "winrm_password": "demo123",
     "winrm_timeout": "12h",
     "shutdown_command": "C:/Windows/packer/PackerShutdown.bat",
     "shutdown_timeout": "15m",
     "switch_name": "PCo_switch",
     "skip_export": "true",
     "floppy_files": [
       "automation_files/Autounattend.xml",
       "scripts/winrm.ps1"
     ]
   }
 ]


Reply all
Reply to author
Forward
0 new messages