Bug 2221884 - [DDF] I think the --disk parameter should be --file.
Summary: [DDF] I think the --disk parameter should be --file.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-Virtualization_Deployment_and_Administration_Guide
Version: 7.9
Hardware: All
OS: All
medium
unspecified
Target Milestone: rc
: ---
Assignee: Jiri Herrmann
QA Contact: haoliu@redhat.com
Jana Heves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 07:23 UTC by Direct Docs Feedback
Modified: 2023-08-10 09:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-10 09:50:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-161990 0 None None None 2023-07-11 07:25:34 UTC

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.


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