Have packer create a virtual machine image of DevStack within OpenStack. This will take an Ubuntu 16.04 image and start up a virtual machine. Then following these steps
using the single machine setup https://docs.openstack.org/devstack/latest/guides/single-machine.html