Bug 1620569 - Include linux qemu-guest-agent on RHV Guest Tools iso for v2v offline conversion
Summary: Include linux qemu-guest-agent on RHV Guest Tools iso for v2v offline conversion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhv-guest-tools-iso
Version: 4.2.5
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ovirt-4.3.0
: ---
Assignee: Lev Veyde
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks: 1619665 1620594 1637534
TreeView+ depends on / blocked
 
Reported: 2018-08-23 07:55 UTC by Michal Skrivanek
Modified: 2019-05-08 12:33 UTC (History)
12 users (show)

Fixed In Version: rhv-guest-tools-iso-4.3-2, ovirt-wgt-4.3_beta
Doc Type: Enhancement
Doc Text:
Qemu Guest Agent packages for several Linux distributions have been added to make it easier to install the guest agent offline.
Clone Of:
: 1637534 (view as bug list)
Environment:
Last Closed: 2019-05-08 12:32:42 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1054 0 None None None 2019-05-08 12:33:01 UTC
oVirt gerrit 94563 0 master MERGED packaging: add linux qemu-guest-agent packages 2018-10-01 09:23:53 UTC
oVirt gerrit 94592 0 ovirt-wgt-4.2 MERGED packaging: add linux qemu-guest-agent packages 2018-10-02 06:00:20 UTC

Description Michal Skrivanek 2018-08-23 07:55:17 UTC
We install agents during Windows v2v conversions so the converted VMs are fully functional on boot (qemu/ovirt-ga, drivers, rhv-apt for updates)

Such functionality is missing for Linux OSes as the expectation was that such systems are already using update mechanism and you install required tools post conversion.

For smoother experience we want to install guest agents (drivers are not needed) during the conversion so we do not require/risk online operations to install the packages, or require manual actions post conversion.

Easiest option seems to be to just include Linux ovirt-guest-agent and qemu-guest-agent on Windows tools iso as we make it available for v2v already. It's helpful to have even an outdated version as it would then update automatically once the converted VMs are fully functional and online (this is the same for Windows)

Comment 1 Martin Tessun 2018-08-23 08:38:07 UTC
Hi Michael,

as I understand this, this would be RHEL only as we probably cannot install a RHEL guest-agent package on another Linux distro (rpm, dependencies, python versions, libraries, etc.)

As RHEL already ships the guest agent rpms by default, why not just "injecting" them from the default RHEL channels (and probably add the "rpm" itself to RHVH if such hosts are needed for conversion).

I don't think the Windows ISO would be the best location for these packages.

Thanks!
Martin

Comment 2 Michal Skrivanek 2018-08-23 10:33:41 UTC
v2v supports debian/ubuntu and we do have agent built for it - that can be included too.

channels are not really solving the problem. We need the rpm (not installed) and we need them on each hypervisor
We can discuss which agents to include, it is possible qemu-ga from 7.6 would be ok and then we won't need ovirt-ga (at least not for the important functionality)

Dunno...if we stop calling it "Windows ISO" and just call it "guest tools ISO" I do not see any issues:)

Comment 4 Martin Tessun 2018-08-24 12:35:22 UTC
After discussing the whole usecase for the conversion, we came up with the following needs to the ISO:

- 2 rpm-packges of qemu-ga for init-based systems and systemd based systems:
  - latest RHEL 6 qemu-guest-agent package
  - latest RHEL 7 qemu-guest-agent package
- 2 deb-packages to cover Debian based releases (init and systemd).

With that we would be able to easily migrate systems to RHV and have the basic guest monitoring functionality available as well, esp. the IP address reporting.

Comment 5 Sandro Bonazzola 2018-08-24 12:52:10 UTC
(In reply to Martin Tessun from comment #4)
> After discussing the whole usecase for the conversion, we came up with the
> following needs to the ISO:
> 
> - 2 rpm-packges of qemu-ga for init-based systems and systemd based systems:
>   - latest RHEL 6 qemu-guest-agent package

Which means inherit from qemu-kvm-0.12.1.2-2.506.el6_10.1 build:
- qemu-guest-agent-0.12.1.2-2.506.el6_10.1.x86_64.rpm
only or do we also need:
- qemu-guest-agent-0.12.1.2-2.506.el6_10.1.ppc64.rpm ?



>   - latest RHEL 7 qemu-guest-agent package

Which means inherit from qemu-guest-agent-2.8.0-2.el7_5.1 build:
- qemu-guest-agent-2.12.0-2.el7.x86_64.rpm
only or do we also need:
- qemu-guest-agent-2.12.0-2.el7.ppc64le.rpm
- qemu-guest-agent-2.12.0-2.el7.ppc64.rpm


> - 2 deb-packages to cover Debian based releases (init and systemd).

which we don't have in brew and need to be built somehow in our system unless someone can confirm we can ship binaries downloaded from debian servers within a Red Hat product.

Please define which version and which architectures should we ship:
https://packages.debian.org/search?keywords=qemu-guest-agent

> With that we would be able to easily migrate systems to RHV and have the
> basic guest monitoring functionality available as well, esp. the IP address
> reporting.

Comment 6 Richard W.M. Jones 2018-08-24 12:59:36 UTC
virt-v2v only exists on x86_64 and it only makes sense to move
x86_64 guests because VMware only exists on x86_64, so no other
architectures need to be taken into account at this time.  We might
in RHEL 8.1 support aarch64 although that is not certain.

I would just copy the binary packages from Debian, although make
sure to include a link back to the source package in Debian in a
README file so that we are complying with the GPL.

Comment 7 Michal Skrivanek 2018-08-24 13:12:09 UTC
There's no requirement to build anything or pull things from brew. We just need "a" version and we do not have to really follow updates. It is probably better to use a fixed well-working version as we will be deploying those agents to all y-stream versions anyway.

Comment 8 Martin Tessun 2018-08-27 10:09:07 UTC
Hi Sandro,

mainly see C#6 and C#7 which are pretty much complete from my pov.

(In reply to Sandro Bonazzola from comment #5)
> (In reply to Martin Tessun from comment #4)
> > After discussing the whole usecase for the conversion, we came up with the
> > following needs to the ISO:
> > 
> > - 2 rpm-packges of qemu-ga for init-based systems and systemd based systems:
> >   - latest RHEL 6 qemu-guest-agent package
> 
> Which means inherit from qemu-kvm-0.12.1.2-2.506.el6_10.1 build:
> - qemu-guest-agent-0.12.1.2-2.506.el6_10.1.x86_64.rpm
> only or do we also need:
> - qemu-guest-agent-0.12.1.2-2.506.el6_10.1.ppc64.rpm ?
> 
> 
> 
> >   - latest RHEL 7 qemu-guest-agent package
> 
> Which means inherit from qemu-guest-agent-2.8.0-2.el7_5.1 build:
> - qemu-guest-agent-2.12.0-2.el7.x86_64.rpm
> only or do we also need:
> - qemu-guest-agent-2.12.0-2.el7.ppc64le.rpm
> - qemu-guest-agent-2.12.0-2.el7.ppc64.rpm
> 

Only x86  packages are required, as v2v is currently only fully supported for x86.

> 
> > - 2 deb-packages to cover Debian based releases (init and systemd).
> 
> which we don't have in brew and need to be built somehow in our system
> unless someone can confirm we can ship binaries downloaded from debian
> servers within a Red Hat product.
> 
> Please define which version and which architectures should we ship:
> https://packages.debian.org/search?keywords=qemu-guest-agent
> 

I would go with the latest stable release (looks to be stretch currently).

> > With that we would be able to easily migrate systems to RHV and have the
> > basic guest monitoring functionality available as well, esp. the IP address
> > reporting.

Comment 9 Sandro Bonazzola 2018-08-28 14:32:03 UTC
Ok, requirements are complete now. Lev, can you estimate how much time this change needs?

Comment 10 Lev Veyde 2018-10-01 21:30:27 UTC
(In reply to Sandro Bonazzola from comment #9)
> Ok, requirements are complete now. Lev, can you estimate how much time this
> change needs?

I think that we can add RHEL QemuGA packages within 1-2 weeks.

Debian one is more complicate issue, as we discussed, since I'm quite concerned with the security issue of containing that way or another binary packages built by 3rd party.

As discussed one of the options will be a more complicated process of rebuilding the package from source and then verifying the hashes, since these should match due to the modified build tools. We'll then need to extract the hash from the signed DEB package, and if that matches, we could include it.

To implement this process will take more time of course, unless somebody is ready to OK inclusion of the binary packages upstream, and e.g. only verify it's signature.

Comment 11 Lukas Svaty 2018-10-08 10:41:22 UTC
Hi Peter, 

can you please check that this iso has correct version?

Meital's team will take care of functional v2v testing.
As discussed on Integration Planning.

Thanks

Comment 12 Petr Matyáš 2018-10-08 12:03:04 UTC
I will check the version once we have a VM with v2v running.

Comment 14 Petr Matyáš 2018-10-15 08:25:03 UTC
Verified on WGT 4.3-2 ISO that QEMU guest agent is included.
This bug is not about functional testing which Meitals team will be doing.

Comment 15 meital avital 2018-10-16 07:23:36 UTC
IIUC, this RFE is the one we should verify https://bugzilla.redhat.com/show_bug.cgi?id=1620594 which is in "new" status.
functional testing of this feature will be done accordingly.

Comment 17 errata-xmlrpc 2019-05-08 12:32:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:1054


Note You need to log in before you can comment on or make changes to this bug.