Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1909089

Summary: livemedia-creator fails with error: "qemu-kvm: -nodefconfig: invalid option"
Product: Red Hat Enterprise Linux 8 Reporter: Juan Orti <jortialc>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.3Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-18 16:44:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Orti 2020-12-18 10:30:58 UTC
Description of problem:
livemedia-creator fails because it incorrectly uses '-nodefconfig' in qemu-kvm:

    output: qemu-kvm: -nodefconfig: invalid option


Version-Release number of selected component (if applicable):
lorax-28.14.55-2.el8.x86_64
qemu-kvm-4.2.0-34.module+el8.3.0+8829+e7a0a3ea.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. yum install lorax qemu-kvm libgcrypt
2. Copy RHEL 8.3 ISO to /var/tmp/rhel-8.3-x86_64-dvd.iso
3. I used this kickstart file in /var/tmp/rhel8

~~~
lang es_ES
keyboard es
timezone Europe/Madrid --isUtc
rootpw --plaintext 1234
network --bootproto=dhcp
url --url=http://bootserver.lan/rhel8
shutdown
~~~

4. livemedia-creator --iso /var/tmp/rhel-8.3-x86_64-dvd.iso --ks /var/tmp/rhel8 --make-disk --ram 2048

Actual results:
2020-12-18 11:18:59,171: livemedia-creator v28.14.55-1
2020-12-18 11:18:59,171: selinux is enabled and in Enforcing mode
2020-12-18 11:18:59,231: disk_img = /var/tmp/lmc-disk-2tdnoapx.img
2020-12-18 11:18:59,231: Using disk size of 2MiB
2020-12-18 11:18:59,231: install_log = /var/tmp/virt-install.log
2020-12-18 11:18:59,335: qemu vnc=127.0.0.1:0
2020-12-18 11:18:59,335: Running qemu
2020-12-18 11:18:59,363: Running qemu failed:
2020-12-18 11:18:59,363: cmd: /usr/libexec/qemu-kvm -nodefconfig -m 2048 -machine accel=kvm -kernel /var/tmp/lorax.imgutils.frke7ppq/isolinux/vmlinuz -initrd /var/tmp/lmc-initrd-1qqkj_hb.img -drive file=/var/tmp/lmc-disk-2tdnoapx.img,cache=unsafe,discard=unmap,format=raw -drive file=/var/tmp/rhel-8.3-x86_64-dvd.iso,media=cdrom,readonly=on -append ks=file:/rhel8 inst.stage2=hd:LABEL=RHEL-8-3-0-BaseOS-x86_64 inst.text inst.cmdline -nographic -monitor none -serial null -display vnc=127.0.0.1:0 -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -device virtio-serial-pci,id=virtio-serial0 -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.fedoraproject.anaconda.log.0 -chardev socket,id=charchannel0,host=127.0.0.1,port=33903 -object rng-random,id=virtio-rng0,filename=/dev/random -device virtio-rng-pci,rng=virtio-rng0,id=rng0,bus=pci.0,addr=0x9
2020-12-18 11:18:59,363: output: qemu-kvm: -nodefconfig: invalid option <---------

2020-12-18 11:18:59,368: VirtualInstall failed: QEMUInstall failed
2020-12-18 11:18:59,369: unmounting the iso
2020-12-18 11:18:59,388: Install failed: QEMUInstall failed
2020-12-18 11:18:59,389: Removing bad disk image
2020-12-18 11:18:59,389: ERROR: Image creation failed: QEMUInstall failed
2020-12-18 11:18:59,389: Image creation failed: QEMUInstall failed


Expected results:
It should use the qemu option '-no-user-config' instead.

Additional info:
Fixed upstream:

https://github.com/weldr/lorax/issues/543
https://github.com/weldr/lorax/commit/f66bff5aa76ec8b26f47f37a584fe3af5e971ed6

Comment 1 Brian Lane 2020-12-18 16:44:07 UTC

*** This bug has been marked as a duplicate of bug 1904168 ***