How to connect 2 virtual machines

Jesús Sánchez Soto 21 Reputation points
2021-11-30T16:51:39.883+00:00

Hello I hope someone can help me:
I have to create a virtual laboratory, where I have a Windows server a 2 windows host. I have to connect all machines, when I installed the Hyper-V there is default switch, I need to know how to create a network to connect all machines, except my host, should be like "host only" as Virtual Box.
Any idea?
thanks

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,926 Reputation points
    2021-12-01T19:32:07.467+00:00

    Hello @Jesús Sánchez Soto

    What you are looking for is a Virtual Switch set as "Private":
    Only allows communication between virtual machines on the same Hyper-V server. A private network is isolated from all external network traffic on the Hyper-V server. This type of network is useful when you must create an isolated networking environment, like an isolated test domain.

    Reference: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/get-started/create-a-virtual-switch-for-hyper-v-virtual-machines

    Hope this helps with your query,

    ------------

    --If the reply is helpful, please Upvote and Accept as answer--


1 additional answer

Sort by: Most helpful
  1. Mikhail Firsov 1,881 Reputation points
    2021-12-01T09:22:50.367+00:00

    Hello,

    Once you have a default switch all your VMs must be already be connected - you can toggle between Internal/External switch type but in any case your VMs must be available for connections (Internal means without access to the local network) - just configure the IP addresses from the same subnet for those VMs.
    "how to create a network to connect all machines, except my host" - the checkbox "Allow the management OS ..." must be cleared.

    Regards,
    Michael

    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.