virsh undefine baremetalbrbm_0 --remove-all-storage 2> /dev/null || echo -n ''
 virsh destroy baremetalbrbm_1 2> /dev/null || echo -n ''
 virsh undefine baremetalbrbm_1 --remove-all-storage 2> /dev/null || echo -n ''
-instack-virt-setup
+NODE_CPU=2 NODE_MEM=8192 instack-virt-setup
 EOI
 
 # attach undercloud to the underlay network for
 # install undercloud on Undercloud VM
 ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "openstack undercloud install"
 
+# Clean cache to reduce the images size
+ssh -T ${SSH_OPTIONS[@]} "root@$UNDERCLOUD" "yum clean all"
+
 # make a copy of instack VM's definitions, and disk image
 # it must be stopped to make a copy of its disk image
 ssh -T ${SSH_OPTIONS[@]} stack@localhost <<EOI
 echo "\nCopying instack disk image and starting instack VM."
 virsh dumpxml baremetalbrbm_0 > baremetalbrbm_0.xml
 virsh dumpxml baremetalbrbm_1 > baremetalbrbm_1.xml
-cp -f /var/lib/libvirt/images/instack.qcow2 .
 virsh dumpxml instack > instack.xml
 #virsh vol-dumpxml instack.qcow2 --pool default > instack.qcow2.xml
 virsh net-dumpxml brbm > brbm.xml
 scp ${SSH_OPTIONS[@]} stack@localhost:baremetalbrbm_1.xml .
 scp ${SSH_OPTIONS[@]} stack@localhost:instack.xml .
 scp ${SSH_OPTIONS[@]} stack@localhost:brbm.xml .
-scp ${SSH_OPTIONS[@]} stack@localhost:instack.qcow2 .
-
+sudo cp /var/lib/libvirt/images/instack.qcow2 ./instack.qcow2_
+sudo chown $(whoami):$(whoami) ./instack.qcow2_
+virt-sparsify --check-tmpdir=fail ./instack.qcow2_ ./instack.qcow2
+rm -f ./instack.qcow2_
 
 # start the instack VM back up to continue installation
 echo "Waiting for instack VM to start"
 
 echo "Copying built OPNFV .iso file to target directory ${BUILD_DIR} ..."
 rm -rf ${BUILD_DIR}
 mkdir -p ${BUILD_DIR}
-cp ${BUILD_BASE}/.versions ${BUILD_DIR}
-cp ${RESULT_DIR}/*.iso* ${BUILD_DIR}
+ls -s ${BUILD_BASE}/.versions ${BUILD_DIR}
+ls -s ${RESULT_DIR}/*.iso* ${BUILD_DIR}
+echo "Copying built OPNFV .rpm files to target directory ${BUILD_DIR} ..."
+ls -s ${BUILD_BASE}/*.rpm ${BUILD_DIR}
+ls -s ${BUILD_BASE}/noarch/*.rpm ${BUILD_DIR}
 
 if [ $POPULATE_CACHE -eq 1 ]; then
     if [ ! -z ${BUILD_CACHE_URI} ]; then