-
Notifications
You must be signed in to change notification settings - Fork 59
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
no cloud agents: qemu #74
Comments
😄 I figured this one didn't need any explanation.. We don't need anything special for qemu do we ? |
QEMU developers would like Ignition to read configs from SMBIOS OEM strings rather than the |
@bgilbert we're being asked to include the qemu-guest-agent. If we don't include any agents, how do we justify the reduced feature set and degraded experience? It looks like the qemu agent assists w/ guest actions like shutdown/reboot as well as file system quiesce actions. I'm probably more concerned about this approach for the open-vm-tools agent which has many more capabilities. Thoughts? |
I'd argue the other way around: if we're going to include an agent, we'd need to be convinced that doing so is a net improvement. Looking at the QGA command schema, I'm seeing:
The resource scaling commands are useful, as well as potentially the suspend support if that's a use case we're interested in. OTOH, the security bypass commands are exactly the sort of functionality that makes agents problematic. |
@mrguitar - We don't currently include qemu-guest-agent in fedora Atomic Host. I'm not necessarily opposed to including it in Fedora CoreOS for a good reason. We decided to open these tickets for every platform so we could deliberate, decide, and document the outcomes. Thanks for joining the discussion :) |
I'm going to pull that team into this discussion. I think that's probably the best next step. Thanks guys. |
any news here ? is there a solution for installing ovirt-guest-agent on fedora core os ? |
If qemu guest agent is not included in FCOS, is there a way to install it ? |
There seems to be a solution to this but it is behind a Red Hat subscription paywall. Solution Page. It seems like this was determined to not be important to CoreOS in non-Red Hat distributions. I would vouch for this being included either as a container or built in to the qcow image. EDIT: an alternative is running a container and passing the device through. linuxkit/qemu-ga seems to be updated.
|
Here is the "solution" from RH: Issue Resolution |
What about installing it through
We are using it on ovirt and the information are properly reported and populated in the ui. |
Yep. You can do it with package layering, but do note #400 - we're working on a solution to make the layering more reliable, but currently you might hit an issue, so keep that in mind. |
I'm working on getting qemu-guest-agent running using your the container method suggested by @kschamplin in #74 (comment), but I'm struggling to get the reboot/shutdown agent commands working. I'm using Proxmox 6.2 as my hypervisor, if it matters. I'm using the following exec statement:
When I issue a shutdown or reboot command through the Proxmox GUI or via
If I add
Any suggestions for what I could do to make this work? |
I've also tried to get the containerized version running as it seems to be the cleanest approach (as there are no modifications of the base system), however there are multiple problems with this solution at the moment. The errors as reported by @Nick2253 in #74 (comment) are caused by multiple issues:
This seems to be caused by a bug in the guest agent itself - the docker image
I couldn't figure out the exact root of the problem, but this is related to the access of the virtio device. In Fedora CoreOS,
When using
None of the listed fixes are sufficient to provide a complete solution, as shutdown is still not possible from within the container - the agent simply does not crash or complain anymore, but it hangs upon requesting a shutdown. The reasons is probably the way the feature is implemented in the agent itself, as it tries to call So I suppose this would need addition of several extra scripts or similar modifications to the guest agent container to make it work, deviating significantly from the premise of a simple setup via the container. Hence I don't think the container approach is worth the effort when requiring shutdown capabilities. I'll also try to install it via Note: if shutdown functionality is not needed, blacklisting the |
I am now knee deep in the process of trying to get I'm building the container using:
I then build and run the container as follows:
This gets me to a point where I have running guest agents, and I'm able to view IP addresses through the Proxmox interface, but as before, shutdown/reboot/etc commands don't work. However, unlike before, I don't get any errors; if I run the Shutdown command, the container kills the guest agents, though it otherwise keeps ticking. Doing some research, it looks like Alpine's version of
From poking around in Alpine, these commands are links to Speaking of Added the following to the Dockerfile:
Ran the new image with the following commands:
However, the Alpine container seems unable to even run these commands. When I shell into the container and try to directly execute My next approach is to replace all the relevant poweroff/reboot/shutdown/etc commands with scripts that make a call into host system through some socket. However, I'm at a loss here on how to do that. |
Just to xref in https://bugzilla.redhat.com/show_bug.cgi?id=1900759 we ended up adding this to RHEL CoreOS and I think didn't try to go through the outstanding concerns here (partly because it originated as a PR to the MCO?), so it's another confusing difference between the two today. |
Hi, I see the qemu-guest-agent is prenset here but is not present at https://quay.io/repository/fedora/fedora-coreos-kubevirt Do you know why is that ? |
For the record (since it was being discussed in a second issue) this was established to not be accurate in #1126 (comment). |
In #12 we decided that we'd like to try to not ship cloud agents. This ticket will document investigation and strategy for shipping without a cloud agent on the qemu virtualization platform.
See also #41 for a discussion of how to ship cloud specific bits using ignition.
The text was updated successfully, but these errors were encountered: