aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/environments/libvirt_environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/environments/libvirt_environment.py')
-rw-r--r--deploy/environments/libvirt_environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/environments/libvirt_environment.py b/deploy/environments/libvirt_environment.py
index c8a2ef529..2a09117bc 100644
--- a/deploy/environments/libvirt_environment.py
+++ b/deploy/environments/libvirt_environment.py
@@ -40,7 +40,7 @@ class LibvirtEnvironment(ExecutionEnvironment):
roles = self.dea.get_node_role(node_id)
role = 'controller' if 'controller' in roles else 'compute'
disk_size = disk_sizes[role]
- exec_cmd('fallocate -l %s %s' % (disk_size, disk_path))
+ exec_cmd('qemu-img create -f qcow2 %s %s' % (disk_path, disk_size))
def create_vms(self):
temp_dir = tempfile.mkdtemp()