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

(cherry picked from commit b672900406)
This commit is contained in:
Bernhard Ehlers 2020-06-17 17:06:55 +02:00
parent 347035a99b
commit 750590d0db

View File

@ -1841,7 +1841,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: