Packer and Openstack

36 views
Skip to first unread message

Sony Koithara

unread,
Oct 7, 2016, 9:16:56 AM10/7/16
to Packer
I am new to packer world...

My Packer.conf file looks like this:
{
 "builders": [{
  "type": "openstack",
  "source_image": "a5dc1a16-38c4-4eed-bf4d-04866b3d517f",
  "communicator": "winrm",
  "winrm_username": "vagrant",
  "winrm_password": "vagrant",
  "winrm_timeout": "2h",
  "flavor": "m1.large",
  "image_name": "packerImage",
  "networks": "9a91549c-ccb1-4beb-b6ae-24d5d08935ef",
  "security_groups": ["default"],
  "insecure": "true"
 }]
}

My Question is: Instead of Packer source image, can I use an ova or vmdk etc to build a packer image ?
With this builder, it fetches the image from your openstack account, do all provisioing and then upload it back over there ?
I thought Packer was capable of creating multiple image from any type of source... Please correct me if I am wrong.

Rickard von Essen

unread,
Oct 7, 2016, 9:40:11 AM10/7/16
to packe...@googlegroups.com
 Instead of Packer source image, can I use an ova or vmdk etc to build a packer image ?

Assuming you ment OpenStack (OS) image, no. The OpenStack builder builds from an OS image and creates a new OS image.

The point of Packer is to allow you to build images on multiple virtualization technologies with the same config. So you could launch a CentOS VM on OS and on AWS and run the same provisioners on both and then create two new images from that. One on OS and one on AWS.

Hope that clears it a bit.

--
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/f6c831ef-22dd-4542-a1bc-74a87ce10b92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sony Koithara

unread,
Oct 7, 2016, 4:39:58 PM10/7/16
to Packer
Thank you Rickard.

So looks like, I will have to run my qemu utility to convert my vmdk file and then use glance to update it to repo.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages