-
Notifications
You must be signed in to change notification settings - Fork 2k
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
qemu driver: Add option to configure drive_interface #11864
qemu driver: Add option to configure drive_interface #11864
Conversation
Ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bogue1979! This looks great. I think the only thing that comes to mind here is being sure about the default behavior for QEMU. Do you know if ide
is platform-specific behavior and that QEMU isn't doing something "smart" based on the available interfaces on the platform? I want to make sure we're not introducing a breaking change, and that we're not boxing ourselves in for future updates we have on the roadmap for expanding QEMU support beyond x86_64 platform.
The man page has this to say:
if=interface
This option defines on which type on interface the drive is connected. Available types are: ide, scsi, sd, mtd, floppy, pflash, virtio.
With nothing about the default.
Honestly I have no possibility to test another architecture. When I run a VM only with |
@tgross |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the delayed follow-up @bogue1979. This looks pretty good.
You haven't made the PR editable by maintainers, so I'll also need you to add a changelog entry at .changelog/11864.txt
with the following contents:
```release-note:improvement
qemu: Added option to configure `drive_interface`
```
Once that's done we can get this merged and shipped in the upcoming Nomad 1.3.2
Co-authored-by: Tim Gross <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for your patience on this one @bogue1979 !
Oops, sorry jumped the gun there @bogue1979. GitHub is saying there are some merge conflicts here. Might need to rebase on |
Sorry I'm not really a developer and Git sometimes confuses me when it does not work as expected. |
Co-authored-by: Daniel Rossbach <[email protected]>
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
For QEMU the options
-drive file=image.img
and-drive file=image.img,if=ide
are identical.This change will use the second variant as default and allow to define an image file using the virtio driver inside of the VM.
Using this driver should improve the disk IO a lot.