Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 662
  • Last Modified:

Connecting 2 VMware Workstation Environment Together

Due to lack of hardware on one of my laptop, I need to connect 2 VMware Workstation 10 on 2 laptops together so I can build my Domain with SCCM installed. What do I need to do to accomplish this task? Do I need a router to do this? If so, how do I set up the router?
0
dongocdung
Asked:
dongocdung
  • 5
  • 5
  • 3
  • +1
9 Solutions
 
bbaoIT ConsultantCommented:
just put both laptops on the same subnet better via a crossover cable for a high-speed wired connection though wireless connection is also fine if inter-VM communication is not that intensive.

for each VM to talk to other VMs, they need to switch their NIC mode to Bridged (not NAT or Local Host), and make sure they are having the IPs on the same subnet.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
To make things simple maje sure ALL VMs on both hosts laptops are connected to the LAN in bridged networking.

Modern laptops do not need a cross over cable or simple hub or switch will suffice!

No router or router configuration required unless you have a complex Nat or Host only config!
0
 
John HurstBusiness Consultant (Owner)Commented:
As Andrew has noted, I have done this by connecting the virtual machines using an external router (or switch). My router is a switch and has the DHCP server for networking.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dongocdungAuthor Commented:
If my IP on one VM on host 1 is 10.0.0.1 and subnet is 255.255.255.0 and IP on the other VM on host 2 is 10.0.0.2 and subnet is 255.255.255.0 then what will be the default gateway. Do I have to configure a default gateway for my network?
0
 
John HurstBusiness Consultant (Owner)Commented:
If your two hosts are on the same router and subnet AND if your machines are using Bridged networking, then they will all be on the same subnet.

Using NAT (Default) will lead to multiple subnets, so use Bridged for sure.
0
 
bbaoIT ConsultantCommented:
> Do I have to configure a default gateway for my network?

the two hosts are on the same subnet and they should be able to talk to each other.

if the two hosts have no need to access the internet, you don't need to configure the default gateway for them, as they are already on the same subnet and no routing is required here.
0
 
dongocdungAuthor Commented:
Is it possible to configure VMs on both hosts with custom virtual network (not bridged) connecting to each other?
0
 
John HurstBusiness Consultant (Owner)Commented:
NAT will use different subnets and make life complicated for you. Set both to Bridged for simpler setup. At least test this way to see how it works for you.
0
 
bbaoIT ConsultantCommented:
> Is it possible to configure VMs on both hosts with custom virtual network (not bridged) connecting to each other?

NO.

the other options (NAT and Local Host) will assign your VM's NIC to an in-machine network so it is impossible for the VM to talk to other VMs running in another physical host.
0
 
dongocdungAuthor Commented:
I tried to put the 2 hosts on the same subnet but I saw 4 different network adapters on host 1 (Ethernet, VMware Network adapter VMnet1, VMware Network adapter VMnet8, Wifi) and 3 network adapter on host 2 (VMware Network VMnet1, VMware Network VMnet8, Wifi). Which adapter should I configure?
0
 
bbaoIT ConsultantCommented:
> I then configured the VM1 on host 1 with 10.0.0.1 and 255.255.255
> and VM2 on host 2 with 10.0.0.1 and
255.255.255.0

Of course they cannot talk to each other as the two VMs are sharing the exact same IP addresss - 10.0.0.1.

BTW, i think it should be a typo for VM1's mask as the '0' at the end is missing.
0
 
dongocdungAuthor Commented:
Bbao - I have modified the previous comment. Please take a look
0
 
bbaoIT ConsultantCommented:
please don't close this question as i think we are approaching the final answer.

per the author's previously modified comment, i speculate the issue is caused by unspecified adapter in Bridged mode. running VMware's Virtual Network Editor can fix this issue.

as host1 has two physical network adapters (LAN and WLAN) and the VM's NIC is set to Bridged mode, hence the VMware engine has to choose one of the physical adapters for automatic bridging, but i might be NOT the adapter you preferred.

to ensure the Bridged mode choose your desired adapter, run VMware Virtual Network Editor and change the adapter setting for Bridged mode from Automatic to the specific adapter.

FYI - Configuring Bridged Networking
https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-BAFA66C3-81F0-4FCA-84C4-D9F7D258A60A.html

moreover, better double check the same thing against host2 to make sure only the desired adapters to be used for connecting the two VMWare Workstations.
0
 
dongocdungAuthor Commented:
Good tips
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 5
  • 5
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now