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 2221884

Summary: [DDF] I think the --disk parameter should be --file.
Product: Red Hat Enterprise Linux 7 Reporter: Direct Docs Feedback <ddf-bot>
Component: doc-Virtualization_Deployment_and_Administration_GuideAssignee: Jiri Herrmann <jherrman>
Status: CLOSED NOTABUG QA Contact: haoliu <haoliu>
Severity: unspecified Docs Contact: Jana Heves <jsvarova>
Priority: medium    
Version: 7.9CC: phrdina, rhel-docs, siwalter
Target Milestone: rcKeywords: Documentation
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-10 09:50:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2023-07-11 07:23:45 UTC
I think the --disk parameter should be --file.

--disk doesn't work with the --import parameter.

This works:

virt-install --name test123 --memory 2048 --vcpus 2 --network bridge=virbr0,model=virtio --file /var/lib/libvirt/images/rhel-guest-image-8.2-590.x86_64.qcow2 --import --os-variant rhel8.2 --noautoconsole

Reported by: rhn-support-siwalter

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-guest_virtual_machine_installation_overview-creating_guests_with_virt_install#annotations:d96d223c-7145-46ff-90ba-b5433ed4dfd2

Comment 7 siwalter 2023-08-06 17:22:37 UTC
I don't have a reproducer right now. I think my "aha" moment was when I saw "--disk path=/" being used instead of "--file". That worked. Otherwise I would get a message saying --disk will not work with --import.

If that is correct usage, maybe the docs can change to show "--disk path=/the/imported/disk.qcow"

Comment 11 siwalter 2023-08-10 09:50:07 UTC
Please close it. I destroyed the machine (nested virt) that I saw this on and cannot remember the OS I used. Sorry for the noise.