Search This Blog

Thursday, March 17, 2016

How to transfer data across virtual machines(virtual box/vmware) across different networks ?






To transfer data across multiple virtual machine lying in different netwoks and on different systems,
you can use the port forwarding feature in virtual machines.

image
click on port forwarding and set the incoming port of host and target port of the virtual machine.

image

here you can see if  a remote virtual machine v1 hosted on h1 wants to ssh to virtual machine v2 hosted on host h2
so it can do  ssh root@h2  -p 49837  and it will connect to V2 hosted on H2.
// easy way out –you can set incoming and outgoing both port as 22 if it is free and available to you.
I came across this problem specifically for moving docker images from one vm to another vm on different systems becuase for boot2docker image , the virtual box guest addition doesn’t work
Instead if you try to put guest addition on virtual box which is running docker, it stops booting and show a black screen.
// had to do another fix for it – revmove guestaddition iso from storage – in vm settings

No comments:

Post a Comment