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: ---   
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.