remove cache=none from QEMU args as it is not supported on tmpfs/rootfs
This commit is contained in:
parent
6f51ddbb36
commit
b7f3ba1a34
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ def handle_exception(e):
|
||||||
|
|
||||||
|
|
||||||
class CreateVM(Resource):
|
class CreateVM(Resource):
|
||||||
'''API Request to Handle Creation of VM'''
|
"""API Request to Handle Creation of VM"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def post():
|
def post():
|
||||||
|
|
|
@ -42,7 +42,7 @@ class VM:
|
||||||
|
|
||||||
def get_qemu_args(self):
|
def get_qemu_args(self):
|
||||||
command = (
|
command = (
|
||||||
"-drive file={file},format=raw,if=virtio,cache=none"
|
"-drive file={file},format=raw,if=virtio"
|
||||||
" -device virtio-rng-pci"
|
" -device virtio-rng-pci"
|
||||||
" -m {memory} -smp cores={cores},threads={threads}"
|
" -m {memory} -smp cores={cores},threads={threads}"
|
||||||
" -name {owner}_{name}"
|
" -name {owner}_{name}"
|
||||||
|
|
Loading…
Reference in a new issue