# Revision history [back]

### How do I build a trove image?

My Openstack cloud is quite successfully working with 3node, and now I'm stuck with Trove. I'm following http://docs.openstack.org/developer/trove/dev/building_guest_images.html to make an image, but quite not sure that I understand what it says. On this web page, it says commands below will make a guest image with no problem, but I don't understand how that works. HOST_USERNAME is the host where I'm making image, but where or how do I configure that? I'm having trouble starting off.... where should I start to build a trove image, or is there any other page where including detailed guide?

export HOST_USERNAME
export NETWORK_GATEWAY
export REDSTACK_SCRIPTS
export SERVICE_TYPE
export PATH_TROVE
export ESCAPED_PATH_TROVE
export SSH_DIR
export GUEST_LOGDIR
export ESCAPED_GUEST_LOGDIR
export ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements
export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive"
local QEMU_IMG_OPTIONS=$(!$(qemu-img | grep -q 'version 1') && \
echo "--qemu-img-options compat=0.10")
${PATH_DISKIMAGEBUILDER}/bin/disk-image-create -a amd64 -o "${IMAGE_NAME}" \
-x ${QEMU_IMG_OPTIONS}${DISTRO} ${EXTRA_ELEMENTS} \ vm heat-cfntools cloud-init-datasources${DISTRO}-guest \
${DISTRO}-${SERVICE_TYPE}