RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1868048 - [RFE]virt-v2v should install qemu-ga on debian guest during the conversion
Summary: [RFE]virt-v2v should install qemu-ga on debian guest during the conversion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Laszlo Ersek
QA Contact: Vera
URL:
Whiteboard: V2V
Depends On: 2028764
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-11 13:43 UTC by liuzi
Modified: 2022-11-15 10:23 UTC (History)
11 users (show)

Fixed In Version: virt-v2v-2.0.6-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 09:55:44 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7968 0 None None None 2022-11-15 09:56:01 UTC

Description liuzi 2020-08-11 13:43:34 UTC
Description of problem:
virt-v2v should install qmeu-ga on debian guest during the conversion

Version-Release number of selected component (if applicable):
virt-v2v-1.42.0-5.module+el8.3.0+7152+ab3787c3.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Set environment for the conversion server:
a) create directory /usr/share/virtio-win/linux/debian
b) download latest qemu-ga RPM into this directory
# ls /usr/share/virtio-win/linux/debian/
qemu-guest-agent_3.1+dfsg-8+deb10u7_amd64.deb
c)Setup export VIRTIO_WIN=/usr/share/virtio-win/

2.Convert a debian10 guest from VMware to rhv
#virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1  esx7.0-debian10.1.0-x86_64 -o rhv-upload -os nfs_data -of raw -b ovirtmgmt -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78   -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -oo rhv-cluster=Default -oo rhv-direct -ip /home/passwd -oo rhv-verifypeer=true -oo rhv-cafile=/tmp/ca.pem

3.Conversion can be finished successfully,and boot guest on rhv

4.Check if the guest has installed qume-guest-agent and the service is running normally.
Virt-v2v can not install qemu-guest-agent on debian guest during conversion.

Actual results:
As above testing

Expected results:
virt-v2v can install qemu-ga to debian guest.

Additional info:
For rhel7 conversion server,pls refer to Bug 1619665

Comment 1 Tomáš Golembiovský 2020-08-11 17:41:29 UTC
The problem I hit into when trying to implement it some time ago was that dpkg cannot roll-back when something breaks or some dependencies are not available. This can result in unconfigured system requiring user interaction after the conversion. Also there is no single command to check in advance if there are all the needed dependencies installed or not.

Comment 5 RHEL Program Management 2022-02-11 07:27:13 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 6 Richard W.M. Jones 2022-02-11 08:42:50 UTC
The previous comment was added by a broken system that we do not control, reopening.

Comment 7 Laszlo Ersek 2022-06-17 09:18:57 UTC
This should be in *theory* solved by the patches for bug 2028764; the environment is different however. Under that bug, we intend to install the qemu guest agent from the network, using the guest OSes own package manager, using some firstboot scripts. The intent is to remove virtio-win from the picture entirely, therefore the exact reproducer / spec from comment#0 is not being targeted.

Comment 8 Laszlo Ersek 2022-06-17 09:20:02 UTC
(Also note that conversion of Debian guests is Tech Preview.)

Comment 11 Richard W.M. Jones 2022-07-28 14:23:43 UTC
mxie can you add qa ack to this one.  Assuming we want to test this
separately from bug 2028764.  Otherwise we could just mark this as
a duplicate of bug 2028764.

Comment 12 Richard W.M. Jones 2022-07-28 15:11:09 UTC
Temporarily remove TestOnly, reasons.

Comment 15 Vera 2022-08-03 10:54:46 UTC
Verified with the versions:

libguestfs-1.48.4-1.el9.x86_64
qemu-kvm-7.0.0-9.el9.x86_64
libnbd-1.12.6-1.el9.x86_64
virt-v2v-2.0.7-4.el9.x86_64
libvirt-8.5.0-4.el9.x86_64

1. Check the original Debian VM in order to ensure NO qemu-guest-agent pkg/service and configure repos;

2. Convert via virt-v2v to rhv; 
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io  vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /v2v-ops/esxpw -o rhv-upload  -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /v2v-ops/rhvpasswd -os nfs_data -b ovirtmgmt esx7.0-debian11.4.0-x86_64
[   0.1] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-debian11.4.0-x86_64
[   1.9] Opening the source
[   7.4] Inspecting the source
[   9.8] Checking for sufficient free disk space in the guest
[   9.8] Converting 11.4 to run on KVM
virt-v2v: warning: could not determine a way to update the configuration of 
Grub2
virt-v2v: The QEMU Guest Agent will be installed for this guest at first 
boot.
virt-v2v: This guest has virtio drivers installed.
[  43.9] Mapping filesystem data to avoid copying unused and blank areas
[  45.4] Closing the overlay
[  45.7] Assigning disks to buses
[  45.7] Checking if the guest needs BIOS or UEFI to boot
[  45.7] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[  66.0] Copying disk 1/1
█ 100% [****************************************]--]
[ 495.3] Creating output metadata
[ 513.0] Finishing off


3. Start VM and check the qemu-guest-agent rpm/service.

root@esx7:~# dpkg-query -l |grep qemu-guest-agent
ii  qemu-guest-agent                      1:5.2+dfsg-11+deb11u2            amd64        Guest-side qemu-system agent
root@esx7:~# service qemu-guest-agent status
● qemu-guest-agent.service - QEMU Guest Agent
     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
     Active: active (running) since Wed 2022-08-03 03:14:33 PDT; 36min ago
   Main PID: 1252 (qemu-ga)
      Tasks: 2 (limit: 4659)
     Memory: 696.0K
        CPU: 70ms
     CGroup: /system.slice/qemu-guest-agent.service
             └─1252 /usr/sbin/qemu-ga

Aug 03 03:14:33 esx7 systemd[1]: Started QEMU Guest Agent.

Moving to Verified.

Comment 17 errata-xmlrpc 2022-11-15 09:55:44 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 (Low: virt-v2v security, bug fix, and enhancement update), 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/RHSA-2022:7968


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