mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 01:28:28 +08:00
修复虚拟机因无法创建磁盘导致崩溃的问题
This commit is contained in:
parent
ab60ec15b0
commit
910404b54d
@ -35,7 +35,7 @@ class qemu:
|
||||
def CreateDisk(self, path: str, size: int):
|
||||
if(os.path.exists(path)):
|
||||
return 0
|
||||
return os.system(("qemu-img create -f qcow2 '" + self.path + "' " + str(size) + "M"))
|
||||
return os.system(("qemu-img create -f qcow2 '" + path + "' " + str(size) + "M"))
|
||||
|
||||
def CreateDiskControl(self, controlName = "storage_controller_1"):
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user