How to Make Virtual Machines Talk to Each Other in VirtualBox

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so finally you have a Windows 10 machine running and a Kali machine running both of them in VirtualBox but they're not talking to each other by default if you do not set up a separate nat network they will both be nat 'add but they'll beam added in an isolated environment for instance on the left over here I've got Kali if I do an ifconfig and this is running in VirtualBox I see my addressing kept address for Kali is 10 0 to 15 on the right side I have Windows to enterprise if I do a type II config I see my address is 10 0 to 15 so they both have the same address but they can't talk to each other the 10 0 to 15 is the default address that VirtualBox assigns to any machine that has setup for NAT so what we need to do if you want these two machines to talk to each other and beam added we have to set up a separate new NAT network and that's what we'll do in this video so let's go to VirtualBox and if we just verify what I was discussing if we look at the Kali machine and look at the settings go to network it's configured for just NAT there's a default to go to Windows 10 Enterprise that is configured for NAT which is the default so what we need to do is set up a new network so let's click on Tools click on preferences and this is in VirtualBox manager click on network click on the little plus sign here to add a new network it called it nat network we can click on the gear icon here to change it let's call this our this is the Top Gun Network so only the elite can be part of this network so so we're gonna change this address space I like to change it to something different so it doesn't look the same as the 1002 so let's change this to 1 9 2 1 6 8 . 100 let's say dot 0 this last 24 we certainly wanted to support DHCP because we want both of our virtual machines assigned a DHCP address that's pretty much it so click on OK now we have the top gun' network it is 192 168 1 to the callee and the Windows 10 machine to this new network and they should be automatically assigned an IP address in the 192.168.1 hundred space so I'll start with Kali over here click on Kali I'll go to settings you could also on the machine itself go to machine and settings up here either way works so I'll do it this way through the virtual machine interface go to network we're going to change this right here so right now it says net it was nat we're gonna we're gonna change it to a nat network and then we'll select the one we just created which is top gun' network so the steps are select nat network and it will choose the nap network we saw we created ok so now if I do I have to fig I should get the 192 168 address you may have to do it a couple of times like I did right there so this one is 192 168 dot 100.4 on the windows machine will do the same thing machine settings go to network nap network top gun network ok so if I hit the up arrow ipconfig it says disconnected it's reconnecting and we'll go ahead and say yes to that so now I see this is dot 5 over here for Windows on the left side Kali is 4 so technically they should be able to ping each other and talk to each because they have unique IP addresses so for this one and the windows we'll see if we can ping Kali so ping one 92168 dot 104 that's working let's see if we can ping little bug comm as well that's working so we have connectivity between the guest on the same network and we have internet connectivity so that's how to make sure two different machines or as many machines as you have in VirtualBox can talk to each other and at the same time have access to the Internet
Info
Channel: CISO Global
Views: 172,653
Rating: undefined out of 5
Keywords: virtualbox, virtualbox nat network, virtualbox network, virtualbox nat, vbox, alpine security, christian espinosa
Id: vReAkOq-59I
Channel Id: undefined
Length: 4min 52sec (292 seconds)
Published: Sun Apr 21 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.