VMware ovf as starting image

21 views
Skip to first unread message

Peter Teichner

unread,
Oct 27, 2016, 5:00:32 PM10/27/16
to Packer
Hi All,

Is it possible at all to start from an ovf template and generate a new one after running some scripts inside it?

Obviously I've seen the iso and the vmx options as starting point but I use vsphere.

Thanks,
Pete

Rickard von Essen

unread,
Oct 27, 2016, 5:03:33 PM10/27/16
to packe...@googlegroups.com
For remote (ESXi) builds only the vmware-iso builder works.


--
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/51a781cf-0955-4041-bdc9-fad2c9ff1b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Teichner

unread,
Oct 27, 2016, 6:03:13 PM10/27/16
to Packer
I guess that's not ideal but I can start from a redhat iso. Could I run Kickstart scripts as part of the setup?

Rickard von Essen

unread,
Oct 28, 2016, 1:32:37 AM10/28/16
to packe...@googlegroups.com

Yes you can, see https://github.com/chef/bento for some good examples.


On Oct 28, 2016 12:03 AM, "'Peter Teichner' via Packer" <packe...@googlegroups.com> wrote:
I guess that's not ideal but I can start from a redhat iso. Could I run Kickstart scripts as part of the setup?

--
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.

Alvaro Miranda Aguilera

unread,
Oct 29, 2016, 7:43:52 AM10/29/16
to packe...@googlegroups.com
For a more manual one you could:

use shell-local to create a VM from template
use null provider to just connect and run scripts in packer.

This will create a chicken egg situation where you don't know the IP of the box.

IF you use a wrapper

you could se Terraform or some script to create a vm
packer null provider to run scripts.

here, since packer is just running scripts, you could just use directly the tool used in the previous step to run scripts too

Hope this helps 

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages