|
|
@ -1,11 +1,12 @@ |
|
|
|
#!/bin/bash |
|
|
|
# create-cumulus-vx-image.sh V0.3 |
|
|
|
# create-cumulus-vx-image.sh |
|
|
|
# HS-Fulda - sebastian.rieger@informatik.hs-fulda.de |
|
|
|
# |
|
|
|
# changelog: |
|
|
|
# |
|
|
|
# V0.2 added support to delete existing image with the same name and generating the default nova flavor |
|
|
|
# V0.3 checking whether it is safe to unmount the working directory |
|
|
|
# V0.31 added support for newer glance releases (e.g. kilo) used in VIRL 1.0.0 |
|
|
|
|
|
|
|
# usage |
|
|
|
if [ ! $# -eq 2 ] ; then |
|
|
@ -114,7 +115,7 @@ echo "===========================================================" |
|
|
|
qemu-img convert -O qcow2 $CUMULUS_QCOW2_BASENAME.raw $CUMULUS_PATCHED_QCOW2 |
|
|
|
|
|
|
|
# use e1000 for now as with virtio we get dhcp errors due to "bad udp checksum" in Debian |
|
|
|
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 $CUMULUS_PATCHED_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=CumulusVX --property config_disk_type=disk |
|
|
|
|
|
|
|