1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

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

This commit is contained in:
Bernhard Ehlers 2020-06-17 17:06:55 +02:00 committed by grossmj
parent 2e0fba925b
commit b672900406

View File

@ -1819,7 +1819,9 @@ class QemuVM(BaseNode):
else: else:
disk_name = getattr(self, "config_disk_name") disk_name = getattr(self, "config_disk_name")
disk = os.path.join(self.working_dir, 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() await self._import_config()
if not os.path.exists(disk): if not os.path.exists(disk):
try: try: