sleeping before cloning seems to work better
authorvarac <varacanero@zeromail.org>
Tue, 13 Nov 2012 21:27:31 +0000 (22:27 +0100)
committervarac <varacanero@zeromail.org>
Tue, 13 Nov 2012 21:27:31 +0000 (22:27 +0100)
create-guest-with-cloudinit

index 7df00cd..7a0037c 100755 (executable)
@@ -87,6 +87,9 @@ if [ $? -eq 0 ]; then fail "Domain $vmname is defined in libvirt. Please undefin
 
 
 lvcreate -L ${size}g -n $vmname $VG
+
+sleep 4 
+
 virt-clone --connect $KVM_URI -o leap-baseimage-wheezy -n $vmname -f /dev/$VG/$vmname  --force
 
 # resize second (root) partition