Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was just testing and trying to know more about virtual box. I came across the internal network thing and to test it out I tried using two virtual linux systems. All the settings are correct but both the OS are showing same ip. How can I check whether they are connected or not? How can I sent files between the two?

share|improve this question
    
Where does this IP come from? Did you activate the VirtualBox DHCP server on the internal network? How did you create the two VMs, did you perhaps clone one from the other? In the latter case you might have to give it another MAC address manually. The MAC addresses must differ on the two hosts. –  Dubu Jul 25 '13 at 9:43

1 Answer 1

I guess your interfaces are configured to use NAT, in such case, they are not connected to the same network and are unreachable to each other (outside port forwarding).

You should add a new interface and use one of the other networking modes (bridge, internal network, ...) for the virtual NICs to see each other.

If you want to stay in NAT, one simple way to "send" files from/to your VMs would be to use a shared folder.

Edit:

If you are already using the same internal network, the issue is both VMs are showing the same IP and then can't communicate at the IP level.

Either set the IP address of the second VM to something else in the same subnet or enable the dhcpserver on the virtualbox size and configure the VMs to get their IP address from dhcp instead of using fixed addresses.

That way you won't have the same IP address on each server and then can have them communicate through the network.

Check they see each other with ping remote-ip-address

To transfer files between the VMs, you can use ftp, scp, nfs, samba, ...


share|improve this answer
    
I was using internal network and both the vm have same network names.I just need to know how to check whether they are connected. –  DDR Jul 25 '13 at 5:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.