Creating instance images with RHEL fails due to "Size must be specified for non existent volume"
Issue
- Creating instance image in QCOW2 format with RHEL by following the documentation, 2.2.2. Creating a Red Hat Enterprise Linux 9 image due to the below error.
# virt-install \
> --virt-type kvm \
> --name rhel90 \
> --memory 2048 \
> --cdrom /var/lib/libvirt/images/rhel-9.0-x86_64-dvd.iso \
> --disk /tmp/rhel90.qcow2,format=qcow2 \
> --network=bridge:virbr0 \
> --graphics vnc,listen=127.0.0.1 \
> --noautoconsole \
> --os-variant rhel9.0
ERROR Error: --disk /tmp/rhel90.qcow2,format=qcow2: Size must be specified for non existent volume '/tmp/rhel90.qcow2'
Environment
- Red Hat OpenStack Platform 17.0
- Red Hat OpenStack Platform 17.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.