Commit 13a43df2 by Zoltan Karsa

set cache for disk

parent fa1ae36b
......@@ -34,7 +34,11 @@
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<driver cache="none" name="qemu" type="qcow2">
<metadata_cache>
<max_size unit='KiB'>{{ disk_cache }}</max_size>
</metadata_cache>
</driver>
<source file='{{ disk }}'/>
<target dev='sda' bus='sata'/>
</disk>
......
......@@ -25,6 +25,7 @@ params = {
"vgpu_type": "nvidia-1",
"mdev_bus": "0000\:01\:00.0",
"boot_menu": "yes",
"disk_cache": 1024,
}
def start_vm(params):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment