1

I have 2 virtual hosts running on my Windows XP laptop. One is Ubuntu running inside vmware player. The other is MS virtual PC (so I can test with IE6 ). The Ubuntu virtual host is running my web application with apache. I can point my browser on my laptop at the Ubuntu IP and view my web app. I read this post How to connect to host machine from within Virtual PC image and was able to get my Virtual PC to ping my physical machine using the loopback adapter. But I'm stuck on getting my Virtual PC to see my web application running in the Ubuntu vmware player host.

Community
  • 1
  • 1
Gabrielle
  • 8,989
  • 4
  • 17
  • 6

2 Answers2

0

Vmware peer2peer two pc which is run linux ubuntu connection and testing ping:

1.Vmware workstation Edit-->Virtual Network Editor Remove all of network of the list and create a network with pushing Add Network button. Choose Vm1 and Vm8 and add to list.

2.Choose Vm1 from the list and tick radio button Bridged(connect VMs directly to the external network) and choose from Bridged to: Your custom Ethernet adapter for example: Broadcom Netlink(TM) Gigabit Ethernet and push Apply button.

3.Success your ethernet adapter and your virtual adapter is bridged.

4.You have to configure Ip adress, subnet mask and default gateway, for example my host machine Ip address: 1.1.1.1 Subnet mask:255.255.255.0 Gateway:1.1.1.2 For Client machine: Ip address: 1.1.1.2 Subnet mask:255.255.255.0 Gateway:1.1.1.1

5.Now you can send ping from one ubuntu machine to other ubuntu machine from terminal firstly, ifconfig and you can see your host ip address and ping ip address.

6.Success..

furkan
  • 61
  • 3
0

I think the best is to configure both Virtual machine with "Bridged network interface" so that they all get an IP Address from the same DHCP (the same as your host machine) and they will be in the same network.

Otherwise the only common thing between two NAT is the host machine. Perhaps configuring a special routing from one subnet (vmware NAT) to the other (VPC NAT) can work, but honestly I never tried it.

I would prefer my first solution, with a firewall enabled on both VM (and configure exceptions one by one).

рüффп
  • 5,172
  • 34
  • 67
  • 113