diff --git a/virtinst/connection.py b/virtinst/connection.py index 988b77303..2f2028906 100644 --- a/virtinst/connection.py +++ b/virtinst/connection.py @@ -361,6 +361,8 @@ class VirtualConnection(object): def is_qemu_session(self): return (self.is_qemu() and self.is_session_uri()) + def is_really_test(self): + return URISplit(self._open_uri).scheme.startswith("test") def is_test(self): return self._urisplits.scheme.startswith("test") def is_xen(self): diff --git a/virtinst/storage.py b/virtinst/storage.py index 490d7cad4..7ef58491b 100644 --- a/virtinst/storage.py +++ b/virtinst/storage.py @@ -710,7 +710,7 @@ class StorageVolume(_StorageObject): createflags = 0 if (self.format == "qcow2" and not self.backing_store and - not self.conn.is_test() and + not self.conn.is_really_test() and self.conn.check_support( self.conn.SUPPORT_POOL_METADATA_PREALLOC, self.pool)): createflags |= libvirt.VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA