How to choose Hyper-V Virtual Network Switch for Windows Sandbox?

Albert Akchurin 0 Reputation points
2024-07-19T06:16:50.3733333+00:00

Hi,

I know how to choose specific Virtual Switch for the specific VM, but didn't found any info on how to choose the Virtual Switch for Windows Sandbox.

Could some one shed a light on this?

I need a sandbox to test some programs that interacts with my L2 network. I created External Virtual Switch, but I don't know how to connect it to the Windows Sandbox.

Best regards,

Albert

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,722 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
759 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wesley Li 9,335 Reputation points
    2024-07-23T14:59:46.4533333+00:00

    Hello,

    This sandbox is running on a virtual machine in Hyper-V, not a host machine, right? If so, I'm afraid it's not possible.

    The Windows Sandbox is a lightweight virtual environment designed to provide an isolated space to run untrusted applications without affecting the host operating system. Windows Sandbox uses internal networking by default, which means it doesn't connect directly to your physical network or Hyper-V's external virtual switches.

    To use an external network in the Windows Sandbox, you must manually specify the virtual switch to use in the registry key of the Sandbox. However, with Windows Sandbox running inside a Hyper-V virtual machine, things are more complicated because you're actually running a lightweight virtual environment inside the virtual machine. Typically, network configuration changes for the Windows Sandbox are specific to the host machine, not the virtual machine.

    If you are trying to do this inside a Hyper-V virtual machine, the situation is different because the Sandbox inside the virtual machine does not see the Hyper-V virtual switch directly. In this case, you may need additional network configuration at the Hyper-V level. However, this is generally not recommended because it can break the isolation of the Sandbox.

    0 comments No comments

  2. Wesley Li 9,335 Reputation points
    2024-08-06T10:50:40.2133333+00:00

    Hello

    Is your problem solved?

    If the above reply is helpful to you, please mark your reply as an answer, thank you very much!

    If you have any further questions, please do not hesitate to contact us.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.