+++ This bug was initially created as a clone of Bug #1053733 +++
+++ This bug was initially created as a clone of Bug #960934 +++
The storage requirements for each disk in the imported VM:
| File Domain | Block Domain
-----|-----------------------------------------|-------------
qcow | preallocated : 1.1 * disk capacity |1.1 * min(used ,capacity)
| sparse: 1.1 * min(used ,capacity) |
-----|-----------------------------------------|-------------
raw | preallocated: disk capacity |disk capacity
| sparse: min(used,capacity)
Importing disks with snapshots can be done either with the snapshots as is, or with the snapshots collapsed. For the latter the table from comment#0 applies.
For the first case the following table applies:
| File Domain | Block Domain
-----|-----------------------------------------|----------------
qcow | 1.1 * used space |1.1 * used space
-----|-----------------------------------------|----------------
raw | preallocated: disk capacity |disk capacity
| sparse: used space |
When verifying this bug both cases should be verified, positive and negative tests: Verify against a storage domain with and without enough space - just about the needed/excess space for the disks. Verify it succeeds when there's enough space and fails on CDA when it doesn't.
Threshold should also be verified on this bug.