{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "{{ user `alias` }}",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--clipboard", "bidirectional" ],
[ "modifyvm", "{{.Name}}", "--draganddrop", "bidirectional" ],
[ "modifyvm", "{{.Name}}", "--boot3", "disk" ],
[ "modifyvm", "{{.Name}}", "--audio", "none" ],
[ "modifyvm", "{{.Name}}", "--nic1", "intnet" ],
[ "modifyvm", "{{.Name}}", "--nic2", "null" ]
],
"guest_os_type": "Ubuntu_64",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "md5",
"disk_size": "{{ user `disk_size` }}",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"guest_additions_mode": "attach",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<enter><wait5>",
"<esc><enter><wait5>",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/{{user `preseed_file`}} ",
"<enter>"
],
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "C:/Users/{import/automation/packer/boxes/ubuntu/{{ user `box_name` }}.box"
}
],
"variables": {
"headless": "false",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"disk_size": "256000",
"alias": "packervm",
"box_name": "ubuntu_custom",
"ssh_timeout": "10m",
"ssh_username": "{{ user `ssh_username` }",
"ssh_password": "packer",
"preseed_file":"{{user `preseed_file1`}}"
}
}--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4f1dc949-b0c2-4c4b-ae98-bc8441f9a60b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/4f1dc949-b0c2-4c4b-ae98-bc8441f9a60b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3789a977-2c7c-4f19-a46c-f7af28e84d27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3789a977-2c7c-4f19-a46c-f7af28e84d27%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3789a977-2c7c-4f19-a46c-f7af28e84d27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3eb4da33-3fa1-4a99-92cf-ef4a6f7ca66c%40googlegroups.com.