Skip to content

Conversation

@KTokarze
Copy link

@KTokarze KTokarze commented Nov 5, 2025

Catch HyperVException when VM management IP address is not retrieved by host OS and try to connect to VM anyway.

Fixes #8

Copilot AI review requested due to automatic review settings November 5, 2025 10:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue where the VM creation process would fail if the management IP address could not be retrieved from the host OS. The fix adds exception handling to catch HyperVException during IP retrieval and logs the error instead of crashing, allowing the VM connection attempt to proceed.

Key Changes:

  • Added try-except block around _wait_vm_mng_ips() call to catch and log HyperVException
  • Allows VM creation to continue even when management IP retrieval fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KTokarze KTokarze changed the title fix: Try to connect to VM managemnt IP without retrieving it from host fix: Try to connect to VM management IP without retrieving it from host Nov 5, 2025
Catch HyperVException when VM management IP address is not retrieved by host OS and try to connect to VM anyway.

Fixes intel#8
Signed-off-by: Kacper Tokarzewski <[email protected]>
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.

New VM receives management IP, but RedHat 10.0 does not give its management IP outside the VM

1 participant