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

[Hyper-v platform] Enabling port forwarding when switch type is Internal #3615

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SRIKKANTH
Copy link
Collaborator

Virtual machines with an internal switch type cannot be accessed from outside the host. To enable external access, you need to use NAT and port mapping.

@SRIKKANTH SRIKKANTH changed the title [Hyper-v platform] Port forwarding for internal switches [Hyper-v platform] Enabling port forwarding when switch type is Internal Jan 26, 2025
lisa/tools/hyperv.py Outdated Show resolved Hide resolved
lisa/tools/hyperv.py Outdated Show resolved Hide resolved
lisa/tools/hyperv.py Outdated Show resolved Hide resolved
lisa/tools/hyperv.py Outdated Show resolved Hide resolved
@squirrelsc
Copy link
Member

@LiliDeng LGTM

Virtual machines with an internal switch type cannot be accessed from outside the host. To enable external access, you need to use NAT and port mapping.
@SRIKKANTH SRIKKANTH force-pushed the smyakam/hyperv/portforwarding_25_01_2025 branch from 9e76932 to edc24f7 Compare February 2, 2025 19:23
if port in self._assigned_nat_ports:
self._assigned_nat_ports.remove(port)
else:
print(f"Port {port} was not assigned.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

use log here

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.

3 participants