Skip to content

Add new --collect option to collect pre-conversion Windows information#162

Merged
rwmjones merged 1 commit into
libguestfs:masterfrom
rwmjones:2026-collect-option
Jul 2, 2026
Merged

Add new --collect option to collect pre-conversion Windows information#162
rwmjones merged 1 commit into
libguestfs:masterfrom
rwmjones:2026-collect-option

Conversation

@rwmjones

Copy link
Copy Markdown
Member

If present, the new --collect OUTPUT.tar.xz option will collect various files from Windows before conversion, which might be useful for diagnosing failed conversions later.

Thanks: Vadim Rozenfeld
Fixes: https://redhat.atlassian.net/browse/RHEL-188772

@rwmjones

rwmjones commented Jun 26, 2026

Copy link
Copy Markdown
Member Author

Needs unit tests, hence it is draft still.

@rwmjones rwmjones force-pushed the 2026-collect-option branch from 5b5edd8 to 0015af6 Compare June 26, 2026 06:24
@rwmjones rwmjones marked this pull request as ready for review June 26, 2026 06:25
@rwmjones rwmjones force-pushed the 2026-collect-option branch from 0015af6 to c46a34d Compare June 26, 2026 09:37
@rwmjones

Copy link
Copy Markdown
Member Author

Thinking about this some more, it'd probably be better if the list of files wasn't hard-coded. Something like this:

$ virt-v2v [...] \
    --collect-output output.tar.xz \
    --collect /windows/system32/config/:config \
    --collect /windows/system32/winevt/logs/:logs \
    --collect /etc:etc

@rwmjones rwmjones force-pushed the 2026-collect-option branch from c46a34d to 894e189 Compare June 29, 2026 09:15
'--collect GUEST_DIR[:LOCAL] --collect-output OUTPUT.tar.xz' options
will collect named files and directories before conversion, which
might be useful for diagnosing failed conversions later.

Thanks: Vadim Rozenfeld
Fixes: https://redhat.atlassian.net/browse/RHEL-188772
@rwmjones rwmjones force-pushed the 2026-collect-option branch from 894e189 to 63d5ed0 Compare June 29, 2026 09:20
@rwmjones rwmjones merged commit 8f99432 into libguestfs:master Jul 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant