Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk interface is being overriden when set to none #2438

Closed
mrchrd opened this issue Nov 3, 2024 · 1 comment · Fixed by #2439
Closed

Disk interface is being overriden when set to none #2438

mrchrd opened this issue Nov 3, 2024 · 1 comment · Fixed by #2439

Comments

@mrchrd
Copy link

mrchrd commented Nov 3, 2024

I'm creating an appliance that requires extra options for the virtio-scsi-pci and scsi-hd devices. I set those in the qemu.options field and also set qemu.hd*_disk_interface: none in the gns3a file, and then let GNS3 set the QEMU -drive option. The result I would expect is that GNS3 sets only the -drive with if=none and does not set the -device options. However, this piece of code overrides the disk interfaces to ide:

# fail-safe: use "ide" if there is a disk image and no interface type has been explicitly configured
if interface == "none":
    interface = "ide"
    setattr(self, "hd{}_disk_interface".format(drive), interface)

Because none is actually an accepted and useful value for QEMU, I think it should not be replaced when it is set explicitely.

@grossmj grossmj linked a pull request Nov 7, 2024 that will close this issue
@grossmj
Copy link
Member

grossmj commented Nov 7, 2024

Fixed, thanks 👍

@grossmj grossmj closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants