From 1ca02c3a205163726e7399e31c72f5a1dff3322a Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos <skalkoto@grnet.gr> Date: Wed, 8 Oct 2014 16:06:45 +0300 Subject: [PATCH] windows: Remove the format=raw attribute from kvm Do not use format=raw in the -drive option of KVM when booting the Windows VM. The format could also be qcow2 if the original input media is a regular file. --- image_creator/os_type/windows/vm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/image_creator/os_type/windows/vm.py b/image_creator/os_type/windows/vm.py index 4501166..024d19f 100644 --- a/image_creator/os_type/windows/vm.py +++ b/image_creator/os_type/windows/vm.py @@ -116,8 +116,7 @@ class VM(object): if 'mem' in self.params: args.extend(['-m', str(self.params['mem'].value)]) - args.extend(['-drive', - 'file=%s,format=raw,cache=unsafe,if=%s' % + args.extend(['-drive', 'file=%s,cache=unsafe,if=%s' % (self.disk, self.interface)]) args.extend( -- GitLab