Hi all,

can anyone help me to configure the OpenStack builder in order to produce 
an image in the qcow2 format?

It seems that other people had this issue:

https://groups.google.com/forum/#!topic/packer-tool/Ve5oVENQJN0
https://github.com/fjammes/packer-openstack-example

The pages linked above basically suggest to produce a raw image, convert it 
to qcow2 and then upload the new image to Glance.

My requirement, though, is to *directly* produce a qcow2 image (no 
intermediate conversion and re-upload).

So I searched and found this pull request:

https://github.com/hashicorp/packer/pull/6702

It seems that it's possible to use qcow2 by setting use_blockstorage_volume 
to true and image_disk_format to qcow2. I tried with a configuration 
similar to this one:

{

  "builders": [

                {

                  "type": "openstack",

                  "identity_endpoint": "http://1.2.3.4:5/v3";,

                  "tenant_name": "test",

                  "domain_name": "default",

                  "username": "testuser",

                  "password": "12345678",

                  "ssh_username": "ubuntu",

                  "image_name": "testimage",

                  "source_image": "fdc89ada-1625-46e3-b64c-bdd291dc45a6",

                  "flavor": "someflavor",

                  "networks": ["9159be52-70f9-49bf-a26f-6526da7bff4a"],

                  "security_groups": 
["cc5cd6e2-3785-46c5-974f-89e21e4bbd2d"],

                  "insecure": "true",

                  "use_blockstorage_volume": "true",

                  "image_disk_format": "qcow2"

                }

        ]

}


Any help would be appreciated :)

Thanks


-- 
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/48f60b43-d74e-4eb3-bd35-d6cd23149564%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to