OpenStack builder qcow2 disk format

10 views
Skip to first unread message

Marco Liceti

unread,
Apr 5, 2019, 5:01:49 AM4/5/19
to Packer
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:


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:


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


Reply all
Reply to author
Forward
0 new messages