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 2074818 - Failed to create guest from qemu shell file after v2v converting to qemu
Summary: Failed to create guest from qemu shell file after v2v converting to qemu
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-v2v
Version: 8.6
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: tingting zheng
URL:
Whiteboard:
Depends On: 2074805
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-13 07:35 UTC by mxie@redhat.com
Modified: 2022-04-20 12:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-20 12:17:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-118769 0 None None None 2022-04-13 07:42:02 UTC

Description mxie@redhat.com 2022-04-13 07:35:56 UTC
This bug was initially created as a copy of Bug #2074805

I am copying this bug because it can be reproduced on rhel8.6
virt-v2v-1.42.0-18.module+el8.6.0+14480+c0a3aa0f.x86_64
libguestfs-1.44.0-5.module+el8.6.0+14480+c0a3aa0f.x86_64
libvirt-libs-8.0.0-5.module+el8.6.0+14480+c0a3aa0f.x86_64
qemu-img-6.2.0-11.module+el8.6.0+14707+5aa4b42d.x86_64
nbdkit-1.24.0-4.module+el8.6.0+14480+c0a3aa0f.x86_64


Description of problem:
Failed to create guest from qemu shell file after v2v converting to qemu

Version-Release number of selected component (if applicable):
virt-v2v-2.0.3-1.el9.x86_64
libguestfs-1.48.0-2.el9.x86_64
guestfs-tools-1.48.0-1.el9.x86_64
libvirt-libs-8.2.0-1.el9.x86_64
qemu-kvm-6.2.0-12.el9.x86_64
nbdkit-server-1.30.2-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Convert a guest from VMware to local qemu by v2v
#  virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io  vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 esx7.0-rhel8.5-x86_64 -ip /home/passwd   -o qemu -os /home

2.# ls /home/esx7.0-rhel8.5-x86_64
esx7.0-rhel8.5-x86_64-sda  esx7.0-rhel8.5-x86_64.sh 

3. Try to create guest from qemu shell file
# ./esx7.0-rhel8.5-x86_64.sh
qemu-kvm: -balloon: invalid option

4. Comment balloon device in shell script# cat esx7.0-rhel8.5-x86_64.sh
#!/bin/sh -

/usr/libexec/qemu-kvm \
    -no-user-config \
    -nodefaults \
    -name esx7.0-rhel8.5-x86_64 \
    -machine q35,accel=kvm:tcg \
    -m 3072 \
    -drive file=/home/esx7.0-rhel8.5-x86_64-sda,format=raw,if=virtio,index=0,media=disk \
    -drive format=raw,if=scsi,bus=0,unit=0,media=cdrom \
    -netdev user,id=net0 \
    -device virtio-net-pci,netdev=net0,mac=00:50:56:83:b3:40 \
    -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0 \
#   -balloon virtio \
    -device pvpanic,ioport=0x505 \
    -device vhost-vsock-pci \
    -serial stdio
5. Try to create guest from qemu shell file again
# ./esx7.0-rhel8.5-x86_64.sh
qemu-kvm: -drive format=raw,if=scsi,bus=0,unit=0,media=cdrom: A block device must be specified for "file"
./esx7.0-rhel8.5-x86_64.sh: line 16: -device: command not found

6. Comment cdrom device in shell file# cat esx7.0-rhel8.5-x86_64.sh
#!/bin/sh -

/usr/libexec/qemu-kvm \
    -no-user-config \
    -nodefaults \
    -name esx7.0-rhel8.5-x86_64 \
    -machine q35,accel=kvm:tcg \
    -m 3072 \
    -drive file=/home/esx7.0-rhel8.5-x86_64-sda,format=raw,if=virtio,index=0,media=disk \
#   -drive format=raw,if=scsi,bus=0,unit=0,media=cdrom \
    -netdev user,id=net0 \
    -device virtio-net-pci,netdev=net0,mac=00:50:56:83:b3:40 \
    -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0 \
#   -balloon virtio \
    -device pvpanic,ioport=0x505 \
    -device vhost-vsock-pci \
    -serial stdio
7. Try to create guest from qemu shell file again
# ./esx7.0-rhel8.5-x86_64.sh
VNC server running on ::1:5900

Expected results:
As above description

Additional info:

Comment 1 Richard W.M. Jones 2022-04-20 12:17:17 UTC
I don't think there's an urgent need to fix this in RHEL 8.  Laszlo
has fixed it in RHEL 9 (bug 2074805) and upstream, and it's obviously
been broken for quite a long time which indicates that no one is
actually using the feature very much.  Also, no customer case.

Therefore nacking "Capacity".


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