change disk option to disks to add many disks

This commit is contained in:
2014-11-07 16:05:56 +01:00
parent bcb22604a4
commit 9e0f3cf806

View File

@@ -191,8 +191,8 @@ class VMHelper:
args += " -smp " + str(config['smp']) args += " -smp " + str(config['smp'])
if ('memory' in config): if ('memory' in config):
args += " -m " + str(config['memory']) args += " -m " + str(config['memory'])
if ('disk' in config): if ('disks' in config):
disk = config['disk'] for disk in config['disks']:
if ('file' in disk): if ('file' in disk):
args += " -drive file=" + disk['file'] args += " -drive file=" + disk['file']
if ('cache' in disk): if ('cache' in disk):