QEMU config disk - use disk interface of HD-D, fallback is HD-A

This commit is contained in:
Bernhard Ehlers authored and grossmj committed 2020-07-19 17:56:49 +09:30
1 parent 2e0fba925b
commit b672900406
1 file changed
+3 -1
+3 -1
View File
@@ -1819,7 +1819,9 @@ class QemuVM(BaseNode):
else:
disk_name = getattr(self, "config_disk_name")
disk = os.path.join(self.working_dir, disk_name)
interface = getattr(self, "hda_disk_interface", "ide")
interface = getattr(self, "hdd_disk_interface", "ide")
if interface == "ide":
interface = getattr(self, "hda_disk_interface", "none")
await self._import_config()
if not os.path.exists(disk):
try: