|
|
@ -9,6 +9,8 @@ |
|
|
|
# V1.2 added dynamic handling of device mapping of extacted partitions |
|
|
|
# V1.21 checking whether it safe to unmount working directories |
|
|
|
# V1.3 added support to delete existing image with the same name and generating the default nova flavor |
|
|
|
# V1.31 added support for newer glance releases (e.g. kilo) used in VIRL 1.0.0 |
|
|
|
|
|
|
|
|
|
|
|
# usage |
|
|
|
if [ ! $# -eq 3 ] ; then |
|
|
@ -197,7 +199,7 @@ rm $VEOS_VMDK_BASENAME.raw |
|
|
|
echo |
|
|
|
echo "Importing image into glance..." |
|
|
|
echo "===========================================================" |
|
|
|
glance image-create --container-format bare --disk-format qcow2 --is-public true --name $GLANCE_IMAGE_NAME \ |
|
|
|
glance image-create --container-format bare --disk-format qcow2 --visibility public --name $GLANCE_IMAGE_NAME \ |
|
|
|
--file $TMP_NAME.qcow2 --property hw_disk_bus=ide --property serial=1 \ |
|
|
|
--property hw_vif_model=e1000 --property hw_cdrom_type=ide --property release="$GLANCE_IMAGE_RELEASE" --property subtype=IOSv --property config_disk_type=disk |
|
|
|
|
|
|
|