Skip to content

Conversation

@lstocchi
Copy link
Collaborator

This needs cfergeau/podman#43 to be merged first

This PR migrates VM existence checks from LoadMachineByName to shim.VMExists, which verifies VM existence on both disk and hypervisor. This ensures that VMs deleted externally (e.g. through Hyper-V Manager) are correctly identified as non-existent, even if configuration files remain on disk.

It resolves #265

This commit migrates VM existence checks from LoadMachineByName to
shim.VMExists, which verifies VM existence on both disk and hypervisor.
This ensures that VMs deleted externally (e.g. through Hyper-V Manager)
are correctly identified as non-existent, even if configuration files
remain on disk.

Signed-off-by: lstocchi <lstocchi@redhat.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

fails at creating hyperv VM if it was previously deleted from the manager

1 participant