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 2005043 - virt-install: error: unrecognized arguments: inst.sshd=1 console=ttyS0
Summary: virt-install: error: unrecognized arguments: inst.sshd=1 console=ttyS0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-manager
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: oVirt_on_CentOS_Stream_9_Hosts
TreeView+ depends on / blocked
 
Reported: 2021-09-16 15:23 UTC by Sandro Bonazzola
Modified: 2022-02-24 07:39 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-05 11:08:24 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-97392 0 None None None 2021-09-17 01:09:55 UTC

Description Sandro Bonazzola 2021-09-16 15:23:46 UTC
I couldn't find any documentation about these parameter being deprecated or dropped, assuming this is a bug.

Testing oVirt Node in automation we use a call:


  virt-install -d \
        --name "$name" \
        --boot menu=off \
        --memory $MAX_VM_MEM \
        --vcpus $MAX_VM_CPUS \
        --cpu host \
        --location "${CENTOS_INSTALLATION_SOURCE}" \
        --extra-args "inst.ks=file:///node-install.ks console=ttyS0 inst.sshd=1" \
        --initrd-inject $ksfile \
        --check disk_size=off,path_in_use=off \
        --graphics none \
        --noreboot \
        --wait -1 \
        --os-variant rhel8.5 \
        --noautoconsole \
        --rng /dev/urandom \
        --network network:${LIBVIRT_NETWORK},model=virtio  \
        --disk path=$diskimg,bus=virtio,cache=unsafe,discard=unmap,format=qcow2 \
        --disk path=$squashfs,readonly=on,device=disk,bus=virtio,serial=livesrc \
        > $logfile 2>&1 || die "virt-install failed"

which worked fine on CentOS Stream 8 but is now failing on CentOS Stream 9 with:


virt-install: error: unrecognized arguments: inst.sshd=1 console=ttyS0

Comment 1 Pavel Hrdina 2021-09-17 08:11:43 UTC
Hi, can you please provide the debug log as well? I've noticed that you already run the command with `-d`.

Comment 2 zhoujunqin 2021-09-23 11:08:34 UTC
I can't reproduce this issue on RHEL-9 host:

Packages version:
libvirt-7.7.0-2.el9.x86_64
qemu-kvm-6.1.0-2.el9.x86_64
virt-install-3.2.0-9.el9.noarch


Command-line:
virt-install -d \
--name testvm2 \
--boot menu=off \
--memory 4096 \
--vcpus 4 \
--cpu host \
--location http://download.eng.pek2.redhat.com/rhel-8/rel-eng/RHEL-8/RHEL-8.5.0-20210902.5/compose/BaseOS/x86_64/os/ \
--extra-args "inst.ks=http://fileshare.englab.nay.redhat.com/pub/section3/run/http-ks/ks-rhel8u4-x86_64.cfg console=ttyS0 inst.sshd=1" \
--initrd-inject /home/ks-rhel8u4-x86_64.cfg  \
--check disk_size=off,path_in_use=off \
--graphics none \
--noreboot \
--wait -1 \
--os-variant rhel8.5 \
--noautoconsole \
--rng /dev/urandom \
--network network:default,model=virtio  \
--disk path=/home/testvm2.img,bus=virtio,cache=unsafe,discard=unmap,format=qcow2,size=10 \
> virt-install-debug.log 2>&1 

Test result: VM can be installed successfully.

Debug log - virt-install-debug.log

Comment 4 Jaroslav Suchanek 2021-10-05 11:08:24 UTC
Sandro, QE did not reproduce it. Could it be a params quoting problem?

If you still hit the problem, please provide versions of packages you used and debug log from the installation. Thanks.

Comment 5 Sandro Bonazzola 2022-02-24 07:39:31 UTC
It was indeed a quoting problem, sorry for the noise


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