Creating instance images with RHEL fails due to "Size must be specified for non existent volume"

Solution Verified - Updated -

Issue

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

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content