How to connect 2 virtual hosts on one computer?
I have 2 virtual hosts running on my Windows XP laptop. One of them is Ubuntu running inside a vmware player. The other is MS virtual PC (so I can test IE6). Ubuntu virtual host launches my web app using apache. I can point my browser on my laptop on Ubuntu IP and see my web application. I read this post How to connect to a host machine from a virtual PC image and was able to get my virtual PC to ping my physical machine using a loopback adapter. But I am stuck on getting my virtual machine to see my web application running on the Ubuntu vmware host.
a source to share
I think it is best to configure the VM with "Bridge Network Interface" so that they all get an IP address from the same DHCP (as your host computer) and they will be on the same network.
Otherwise, the only common thing between two NATs is the host machine. Perhaps setting up ad hoc routing from one subnet (vmware NAT) to another (VPC NAT) might work, but to be honest, I've never tried it.
I would prefer my first solution, with firewall enabled on both VMs (and setting exceptions one after the other).
a source to share
Vmware peer2peer two computers running linux ubuntu connection and ping testing:
Editing workstation 1.Vmware → Virtual Network Editor Delete the entire network in the list and create a network by clicking the "Add Network" button. Select Vm1 and Vm8 and add to the list.
2.Select Vm1 from the list and click the "Bridge" radio button (connect the virtual machines directly to the external network) and select "Bridging": your custom Ethernet adapter, for example: Broadcom Netlink (TM) Gigabit Ethernet and click the Apply button.
3. Make sure your Ethernet adapter and your virtual adapter are connected.
4.You have to configure the Ip address, 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 another ubuntu machine from terminal firstly, ifconfig and you can see your host IP and ping IP.
6.Success ..
a source to share