Closed main-- closed 7 years ago
Is it possible to attach the cd drive dynamically with device_add
only if the GA is outdated, and remove it again when the GA is updated? I think it feels weird to have the GA.iso attached at all times.
Otherwise lgtm
@oberien That's what I was planning to do initially. However, there's no straightforward way to tell if/when the device is going to be ready. Plus, implementing the required QMP commands is somewhat weird (see #131).
Permanently attaching the GA ISO is definitely not perfect but not that big of a deal either. It's there, whatever, just ignore it.
Hypervisors have traditionally addressed this by creating an optical drive at boot time and allowing you to insert/remove ISO images at runtime. This does not work here however as the corresponding qemu APIs are still unstable/experimental.
You should create a new issue then just to keep it in mind. (Also don't forget to update the reference in #131 ).
If it wasn't for "Needs more testing.", I'd approve this PR.
Needs more testing.
Fixes #126.