Basic question about networking two virtual machines

Associate
Joined
8 May 2009
Posts
296
I have a standard Kali virtual machine. I also have a VM from https://www.vulnhub.com/entry/the-necromancer-1,154/ to try to do some pentesting against and practice my skillz.

Clearly I don't have any as I'm having some issues connecting them both.

The VMs are on a work computer which has no access to the internet. I've tried Bridged settings and NAT but to no avail.

Within the Network Connections part of Windows I can see:

VirtualBox Host-Only Network

I've tried playing around with this but it doesn't seem to work.

...

Kali boots up with no IP.
The VulnHub VM boots up and just says something like DHCP - no response or something as it obviously can't obtain an IP.

What am I missing?
 
In virtualbox: file > preferences > network > host-only

Add new network, enable dhcp.

Set both VMs to host-only network picking the network you set up, success?
 
you want a custom option and set both machines NIC to that. In VMware for instance, you would choose Custom 5 vNic for both machines, give them an IP address subnet mask and range that matches.

You'll only be ever able to ping though unless you standup a Gateway or DHCP infrastructure, pinging via IP is where your fun will end.
 
Ah I've figured it out and it's similar to what you suggested.

In preferences, host only, I just had to change the IP's around and it's working now. IP's were incorrectly entered so the host was on one range, and clients given another.
 
Actually - not quite solved.

I can do a port scan on the guest VM (The one I'm hacking). I'm trying to access it's web page but it won't load, although I know it's there. I think it's a problem with routing.

Kali IP: 192.168.56.101
Guest IP: 192.168.56.102

I'm guessing it must be to do with the gateway or something
 
you want a custom option and set both machines NIC to that. In VMware for instance, you would choose Custom 5 vNic for both machines, give them an IP address subnet mask and range that matches.

You'll only be ever able to ping though unless you standup a Gateway or DHCP infrastructure, pinging via IP is where your fun will end.

Just seen this.

Strange that I can't ping yet I can do NetDiscover and see a presence from the other machine.
 
Back
Top Bottom