Skip to content

Fails on unsupported disk type cdrom although -cdrom was not on commandline #2

@evought

Description

@evought

Attempting to export a Windows 11 virtual machine to ova, I get this:

$ ~/go/bin/ovf-export -id blahblahblah --output win11 -ova
2025/04/04 14:16:47 unsupported disk type: cdrom

I have not requested it to export cdroms with -cdrom.

The cdrom is defined as follows in the virsh xml dump:

Perhaps a "-no-cdrom" option to explicitly bypass them?

There is a separate issue even on removing the cdrom entry (and for good measure, the shared folder entry):

2025/04/04 14:42:51 can't create OVA: exit status 2

with no additional information that I can find. The win11 directory appears to be populated with the .ovf and .vmdk files. There is a .mf file in the output directory... ok, a manifest file with hash entries for the .ovf and .vmdk. The generated .vmdk file appears reasonable to qemu-img info and is the correct size. The .ovf file appears to be XML and looks to have contents that looks reasonable. I have not tested the import yet, but it may be that only the .ova creation failed. There is a .ova file in the working directory with the proper header information for a tar archive (according to 'file win11.ova'), but it is only about 10K (the image is 128 GB, of which 26 GB is allocated).

My goal here is to move and import into Oracle Virtual Box, and I may be able to accomplish that with the ovf and vmdk, but I thought I would report the problem.

I can create a second entry for this failure if you wish, and add other information to it to help you diagnose. I was hoping that you might know what an "exit status 2" indicated to tell me where to look. (Disclosure: I am familiar with Linux (30 years), xml and have basic virsh knowledge, but am NOT familiar with Go in the slightest).

I am running this on Fedora Linux 41 using the stock golang.x86_64 1.23.7-1.fc41 package. I installed Go just for this purpose and have not changed its configuration in any way beyond "go install gitlab.com/Enrico204/ovf-export/cmd/ovf-export@latest". There is plenty of disk space.

And, BTW, thank you for the tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions