[packer] resetting network interface before saving image
So I have packer create a centos image, but when it saves (creates) it, it saves the old mac address, associating it with the default interface. Is there a way to remove that so when I create a vm guest based on said image it will configure the default interface based on whatever mac/uuid it is given? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/455a2eeb-57e3-4192-8e85-21443edcf97e%40googlegroups.com.
[packer] ssh_name vs ssh_username
Has ssh_name been deprecated for ssh_username? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/c3a69194-8cb2-4e7c-baa6-98682c8ee5e2%40googlegroups.com.
Re: [packer] Ending a template
On Tuesday, October 1, 2019 at 3:07:54 PM UTC-4, Megan Marsh wrote: > > Yes, the purpose of Packer is to get a vm image that you can deploy > later. The VM that is created is only transient, and the true artifact of > the build is an image that contains all the changes made while the image > was running. You should see log output that says what files were created by > the build. > > Thank you for the reply! https://www.packer.io/docs/builders/vmware-iso.html says I should end up with "a directory containing all the files necessary to run the virtual machine." Where should this directory be hiding at? > On Tue, Oct 1, 2019 at 10:25 AM Mauricio Tavares > wrote: > >> Stupid question: my test template >> >> { >> "variables": { >> "ssh_name" : "bubba", >> "ssh_pass" : "supersecret", >> "hostname": "testcentos", >> [...] >> }, >> >> "builders": [ >> { >> "type": "vmware-iso", >> "guest_os_type" : "{{user `guest_os`}}", >> "iso_url": "{{user `iso_url`}}", >> "iso_checksum_url": "{{user `iso_checksum_url`}}", >> "ssh_username" : "{{user `ssh_name`}}", >> "ssh_password" : "{{user `ssh_pass`}}", >> "ssh_port": 22, >> "ssh_timeout": "1000s", >> "headless": "TRUE", >> "disk_size": "10240", >> "disk_type_id": "thin", >> "vmdk_name": "test", >> "vmx_data" : { >> "memsize": "1024", >> "cpuid.coresPerSocket": "1", >> "numvcpus": "1", >> "ethernet0.networkName": "LAN", >> "ethernet0.present": "TRUE", >> "ethernet0.startConnected": "TRUE", >> "ethernet0.virtualDev": "e1000", >> "ethernet0.addressType": "generated", >> "ethernet0.generatedAddressOffset": "0", >> "ethernet0.wakeOnPcktRcv": "FALSE" >> }, >> "vnc_port_min": 5900, >> "vnc_port_max": 5999, >> "vnc_disable_password": true, >> "remote_type": "esx5", >> "remote_host": "{{user `vm_hostname`}}", >> "remote_datastore": "{{user `vm_disk`}}", >> "remote_username": "{{user `vm_admin`}}", >> "remote_password": "{{user `vm_pw`}}", >> "boot_command": [ >> " text ks=http://{{ user `kickstart_ip` }}:{{ user >> `kickstart_port` }}/ks.cfg " >> ], >> "boot_wait": "8s", >> "shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown >> -P -h now" >> } >> ] >> } >> >> which is nothing special. When I unleash it, vm is created and run. I can >> even login to it from console. And then it destroys itself. Why? Because I >> have a shutdown command on it? I am trying to understand what I can get out >> of packer: a running machine and/or a vm image I can then deploy later? >> >> -- >> 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 . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/7ac2dfb4-91cc-4391-b3b0-7d6edef24ba7%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/7ac2dfb4-91cc-4391-b3b0-7d6edef24ba7%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d7f4c25f-fd53-4b14-8911-324900689fbf%40googlegroups.com.
[packer] Ending a template
Stupid question: my test template { "variables": { "ssh_name" : "bubba", "ssh_pass" : "supersecret", "hostname": "testcentos", [...] }, "builders": [ { "type": "vmware-iso", "guest_os_type" : "{{user `guest_os`}}", "iso_url": "{{user `iso_url`}}", "iso_checksum_url": "{{user `iso_checksum_url`}}", "ssh_username" : "{{user `ssh_name`}}", "ssh_password" : "{{user `ssh_pass`}}", "ssh_port": 22, "ssh_timeout": "1000s", "headless": "TRUE", "disk_size": "10240", "disk_type_id": "thin", "vmdk_name": "test", "vmx_data" : { "memsize": "1024", "cpuid.coresPerSocket": "1", "numvcpus": "1", "ethernet0.networkName": "LAN", "ethernet0.present": "TRUE", "ethernet0.startConnected": "TRUE", "ethernet0.virtualDev": "e1000", "ethernet0.addressType": "generated", "ethernet0.generatedAddressOffset": "0", "ethernet0.wakeOnPcktRcv": "FALSE" }, "vnc_port_min": 5900, "vnc_port_max": 5999, "vnc_disable_password": true, "remote_type": "esx5", "remote_host": "{{user `vm_hostname`}}", "remote_datastore": "{{user `vm_disk`}}", "remote_username": "{{user `vm_admin`}}", "remote_password": "{{user `vm_pw`}}", "boot_command": [ " text ks=http://{{ user `kickstart_ip` }}:{{ user `kickstart_port` }}/ks.cfg " ], "boot_wait": "8s", "shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown -P -h now" } ] } which is nothing special. When I unleash it, vm is created and run. I can even login to it from console. And then it destroys itself. Why? Because I have a shutdown command on it? I am trying to understand what I can get out of packer: a running machine and/or a vm image I can then deploy later? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/7ac2dfb4-91cc-4391-b3b0-7d6edef24ba7%40googlegroups.com.
[packer] Can't feed kickstart file from floppy
So I am trying to deploy a centos guest on a vmware host using packer. I want to feed the kickstart file using the a floppy drive (https://www.packer.io/docs/builders/vmware-iso.html#floppy_files). So, here is my setup: # Stolen from the last example in https://www.packer.io/docs/builders/vmware-iso.html "builders": [ { "type": "vmware-iso", "guest_os_type" : "{{user `guest_os`}}", "iso_url": "{{user `iso_url`}}", "iso_checksum_url": "{{user `iso_checksum_url`}}", [...] "floppy_files": [ "floppy/ks.cfg" ], "boot_command": [ " inst.text inst.ks=hd:fd0:/ks.cfg " ], "boot_wait": "8s", "shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown -P -h now" } ] } When I run it, it behaves as it cannot find the ks.cfg file and goes to the normal manual setup. Am I missing something here? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/771f2a19-3b3b-416f-8c2f-aa80f0a42712%40googlegroups.com.