change disk option to disks to add many disks
This commit is contained in:
@@ -191,9 +191,9 @@ 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):
|
||||||
args += ",cache=" + disk['cache']
|
args += ",cache=" + disk['cache']
|
||||||
|
|||||||
Reference in New Issue
Block a user