Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ova-compose: add raw_image option for disks #57

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

oliverkurth
Copy link
Contributor

@oliverkurth oliverkurth commented Apr 24, 2024

This adds the raw_image option to disks. Example:

hardware:
...
    rootdisk:
        type: hard_disk
        parent: sata1
        raw_image: dummy.img

If present, the image file will be converted from raw image format to vmdk format, which will be packaged into the OVA (if configured to create an OVA). If the option disk_image is set, the vmdk file will be named to that value, otherwise, the name will be the same but with any extension stripped and .vmdk appended.

In the above example, the vmdk file will be named dummy.vmdk.

If the vmdk file already exists and is newer than the raw image file it will not be recreated. This is to avoid unnecessary conversions since this is time-intensive. If the raw image file does not exist but the vmdk file does, the vmdk file will be used, with a warning.

@oliverkurth oliverkurth force-pushed the topic/okurth/convert-raw-disk-images branch from 106a9cf to 134167c Compare April 24, 2024 20:53
@oliverkurth oliverkurth merged commit a33bbe9 into master Apr 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants