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 1748900 - [machines] cannot create VM: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead
Summary: [machines] cannot create VM: 'directory' storage format is not directly suppo...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: ---
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Simon Kobyda
QA Contact: Xianghua Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-04 12:10 UTC by Yehuda Zimmerman
Modified: 2021-03-04 07:30 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-04 07:30:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yehuda Zimmerman 2019-09-04 12:10:08 UTC
Description of problem: Cannot create nested VM using the Web Console

Version-Release number of selected component (if applicable):
8.1

How reproducible:
Every time

Steps to Reproduce:
1. Create RHEL 8 VM on Fedora 30 machine using VMM.
2. Install virtualization plug-in on VM Web Console.
3. Create a nested Fedora VM with the following:
   * Source: Fedora 27 Live ISO image
   * 10 GB Storage volume on Storage pool on USB drive folder
   * 1 GB RAM

Actual results:

Received the following error message:

Creation of VM Fed27OnUSB failed
error: Failed to define domain from /dev/stdin error: unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead

Expected results:
Nested Fedora 27 VM created.

Additional info:

Comment 3 Simon Kobyda 2019-09-16 10:12:45 UTC
>    * 10 GB Storage volume on Storage pool on USB drive folder

In order to reproduce it, may I know how do you create this storage pool and volume (thru cockpit or some virsh commands)?

Comment 10 Pavel Hrdina 2020-03-05 15:03:24 UTC
I don't think there is anything wrong with virt-install.  The described use-case seems wrong to me.

Yehuda, what led you to use directory as a volume for QEMU based VM? The message is clear, it is not supported.

Can you please point me to documentation that led you to this use-case and what part of documentation is blocked?


The suggestion from Simon doesn't work.  If I change the type="dir" into type="fat" I'll get a different error message:

  error: unsupported configuration: virtual FAT storage can't be accessed in read-write mode

so that is not a solution as well.

Comment 13 Pavel Hrdina 2020-03-09 11:36:17 UTC
I've checked the documentation and there is nothing about selecting existing storage volume.  The use-case described in this BZ tries to use directory as a storage volume which is not supported by QEMU and hence the error message.  There is also no issue with virt-install is it correctly creates an XML where the disk has type="dir" which is true.

I'm moving it back to cockpit where they can figure out if they want to fix it or just create a documentation.

These are the possible solutions:

  1) Do not display volumes type="dir" as it will not work for disks.

  2) When selecting existing volume during VM installation display volume format (dir, iso, raw, qcow2, ...) as virt-manager is doing it for storage volumes as well.

  3) Document that volume type="dir" is not supported.

  4) Ignore this completely as the error message is descriptive and close this as NOTABUG.

  5) Something else.

Comment 14 Xianghua Chen 2020-03-12 07:42:04 UTC
I don't have usb drive to reproduce it, but seems like the root cause is not nested or usb drive related. I reproduced the issue with following steps, please help to correct me if it's not the right one, thanks.

Reproduced with following package on RHEL8.2:
cockpit-machines-211.2-1.el8.noarch

Steps:
1. Prepare a RHEL8.2 env
2. Create default pool:
# virsh pool-create-as --name default --type dir --target /var/lib/libvirt/images
3. Create a xml use the one in comment 8:
# cat vol-images.xml
<volume type='dir'>
  <name>images</name>
  <key>/var/lib/libvirt/images/images</key>
  <source>
  </source>
  <capacity unit='bytes'>0</capacity>
  <allocation unit='bytes'>0</allocation>
  <target>
    <path>/var/lib/libvirt/images/images</path>
    <format type='dir'/>
    <permissions>
      <mode>0775</mode>
      <owner>1000</owner>
      <group>1000</group>
      <label>unconfined_u:object_r:user_home_t:s0</label>
    </permissions>
    <timestamps>
      <atime>1568890772.138164956</atime>
      <mtime>1567600815.041409020</mtime>
      <ctime>1567600815.041409020</ctime>
    </timestamps>
  </target>
</volume>
4. Create volume:
# virsh vol-create --pool  default vol-images.xml
5. On cockpit web console, click "Create VM",configure as following:
Name:fedora30
Installation Type:Download an OS
Operating System:Fedora 30
Storage:default
Volume:images
Keep others as default,click "Create"

The creation of VM failed with message:
Creation of VM fedora failed 
ERROR unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start fedora otherwise, please restart your installation.

Comment 15 Pavel Hrdina 2020-03-18 09:22:14 UTC
This looks correct and it is not related to USB or nested VM.

Comment 18 RHEL Program Management 2021-03-04 07:30:45 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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