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"
     ]
   }
 ]


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/2a638de2-2c0c-4742-8c96-b09d230282cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to