summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-08 13:52:49 +1000
committerAndrew Tridgell <tridge@samba.org>2008-08-08 13:52:49 +1000
commitfdbae81e968bd49d9eff9c80f10ec2b5fecf6d5f (patch)
tree92cb582f9ed49f25c346abe83a29c7278dd4eaca
parent8e6d99e8b7816d0cfd0275c90397fe2ee8adf65d (diff)
added compression to images by default
-rwxr-xr-xautocluster8
-rw-r--r--config.default2
2 files changed, 5 insertions, 5 deletions
diff --git a/autocluster b/autocluster
index b2e228b..7f89cef 100755
--- a/autocluster
+++ b/autocluster
@@ -96,7 +96,7 @@ create_node() {
echo "Creating the disk"
rm -f "$DISK"
- qemu-img create -b "$BASE" -f qcow2 "$DISK"
+ qemu-img create -b "$BASE" -f qcow2 -c "$DISK"
IPNUM=`expr $FIRSTIP + $NODENUMBER`
@@ -136,10 +136,10 @@ create_tsm() {
echo "Creating the disk"
rm -f "$DISK"
- qemu-img create -b "$BASE" -f qcow2 "$DISK"
+ qemu-img create -b "$BASE" -f qcow2 -c "$DISK"
echo "Creating tsm disk"
- qemu-img create -f qcow2 "$TSMDISK" $TSMDISKSIZE
+ qemu-img create -f qcow2 -c "$TSMDISK" $TSMDISKSIZE
# TSM server is first IP in the cluster
IPNUM=$FIRSTIP
@@ -213,7 +213,7 @@ create_base() {
mkdir -p $KVMLOG
echo "Creating the disk"
- qemu-img create -f $BASE_FORMAT "$DISK" $DISKSIZE
+ qemu-img create -f $BASE_FORMAT -c "$DISK" $DISKSIZE
rm -rf tmp
mkdir -p mnt tmp tmp/ISO
diff --git a/config.default b/config.default
index 2d8b905..431630c 100644
--- a/config.default
+++ b/config.default
@@ -182,4 +182,4 @@ BASE_TEMPLATES="$installdir/base"
NBD_DEVICE="/dev/nbd0"
# the format to use the for qemu base images
-BASE_FORMAT="raw"
+BASE_FORMAT="qcow2"