Networking Virtual Machines: Best Practices

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
9 replies · 2K views
Physics news on Phys.org
jedishrfu said:
Do you mean like Docker containers?
Thanks, not sure exactly, but I am just looking to have them be able to share resources (I am thinking mostly Active Directory) and communicate with each other in general, as standard physical machines do.
 
There are three types of virtual networks: Bridged, NAT, and Host-only. When you create a new VM or add a NIC to an existing VM, you assign the NIC(s) to a virtual network, thereby giving it access to any other VMs configured on the same network.
 
  • Like
Likes   Reactions: WWGD
WWGD said:
Thanks, not sure exactly, but I am just looking to have them be able to share resources (I am thinking mostly Active Directory) and communicate with each other in general, as standard physical machines do.

Yes. You can put a VM on a network assuming the VM has access to a NIC card. That VM could be added to the domain, and you could log into that VM using accounts in the active directory for that domain. If you looked for computers on your domain, you would also find your VM. That VM would be able to access whatever resources a physical computer on that domain could access. It would be for all intents and purposes, just another computer on the domain.

There ARE differences. But, for the scope of your question - they aren't relevant.
 
  • Like
Likes   Reactions: WWGD
VMs are supposed to be agnostic to the hardware they are running on. As long as their ips are different, there should be no issue. Sometimes you'll have to use a bridged adapter through the host though.
 
  • Like
Likes   Reactions: WWGD
newjerseyrunner said:
VMs are supposed to be agnostic to the hardware they are running on. As long as their ips are different, there should be no issue. Sometimes you'll have to use a bridged adapter through the host though.
Thanks, Runner. Does the idea of having them in the same domain ( in windows) work in general too?
 
WWGD said:
Thanks, Runner. Does the idea of having them in the same domain ( in windows) work in general too?
Yeah, part of my job is to manage some of my companies windows servers. I've virtualized all of them and they're all on the same domain.

As long as they each have their own ip and computer name. Ip you set in network and sharing, right click on the connection, properties, IPv4, properties. The computer name, right click on my computer and a select properties.
 
  • Like
Likes   Reactions: WWGD