remove cache=none from QEMU args as it is not supported on tmpfs/rootfs

This commit is contained in:
ahmadbilalkhalid 2020-01-05 19:46:38 +05:00
parent 6f51ddbb36
commit b7f3ba1a34
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ def handle_exception(e):
class CreateVM(Resource):
'''API Request to Handle Creation of VM'''
"""API Request to Handle Creation of VM"""
@staticmethod
def post():

View file

@ -42,7 +42,7 @@ class VM:
def get_qemu_args(self):
command = (
"-drive file={file},format=raw,if=virtio,cache=none"
"-drive file={file},format=raw,if=virtio"
" -device virtio-rng-pci"
" -m {memory} -smp cores={cores},threads={threads}"
" -name {owner}_{name}"