Skip to content

fix: Use rsync to copy VM image where available - #18

Merged
mchromin merged 1 commit into
intel:mainfrom
mlandowski-intel:copy_with_rsync
Oct 8, 2026
Merged

mchromin merged 1 commit into
intel:mainfrom
mlandowski-intel:copy_with_rsync

Conversation

@mlandowski-intel

Copy link
Copy Markdown
Contributor

scp tool has been observed to occasionally corrupt VM images when used to clone them in clone_vm_hdd_image. To resolve this, replace it with rsync as a primary method, while leaving scp as a fallback, as rsync might not be available on some minimal Linux images.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 16:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Existing destinations may bypass content copying, and the added command probe breaks current test mocks.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Uses rsync for reliable VM image cloning, with scp as a fallback.

Changes:

  • Detects rsync availability.
  • Selects rsync or scp for cloning.
File Description
mfd_kvm/​hypervisor.py Adds rsync-based VM image copying with fallback.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread mfd_kvm/hypervisor.py Resolved
@mlandowski-intel
mlandowski-intel force-pushed the copy_with_rsync branch 2 times, most recently from 18187b4 to 9bd0d3f Compare October 6, 2026 16:39
Comment thread mfd_kvm/hypervisor.py Resolved
mchromin
mchromin previously approved these changes Oct 7, 2026

@mchromin mchromin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no more than Adrian

Comment thread mfd_kvm/hypervisor.py Resolved
Signed-off-by: Marek Landowski <marek.landowski@intel.com>
@mchromin
mchromin merged commit 973ec71 into intel:main Oct 8, 2026
23 checks 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.

5 participants