clalancette / oz

Automated installation for guest images
GNU Lesser General Public License v2.1
311 stars 130 forks source link

what is disk device driver type "raw-xz"? #302

Closed cmurf closed 1 year ago

cmurf commented 1 year ago

I'm looking at https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation/Rawhide/20220721.n.0/images/libvirt-raw-xz-aarch64.xml which is produced by oz, and I'm seeing this "raw-xz" driver type, excerpt:

<disk device="disk" type="file">
<target dev="vda" bus="virtio"/>
<source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/>
<driver name="qemu" type="raw-xz"/>
</disk>

If i try to modify a different libvirt config using virsh, changing the type from "raw" to "raw-xz" I get an error:

error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng

I've asked on the qemu devel list and it's not a type they're familiar with. So what is this? Seems like it's a mistake and it should just be "raw" not "raw-xz".

https://lists.nongnu.org/archive/html/qemu-devel/2022-07/msg04237.html

nullr0ute commented 1 year ago

Look at imagefactory.

cmurf commented 1 year ago

I'm not seeing a reference to "raw-xz" in either the oz or imagefactory code, so I'm not sure where this XML config file is getting it from.

nullr0ute commented 1 year ago

It may actually be in the koji code. It's a raw image compressed.

cmurf commented 1 year ago

Filed a ticket https://pagure.io/koji/issue/3473