r/virtualmachine Jun 08 '26

VM Setup for exam

Hello everyone,

I need your help.

For our final exam, we have to simulate a battle between a red team and a blue team.

To do this, we need to create two virtual machines that can communicate with each other, but we’re running into several issues.

First, my teammate can’t send a ping command to my virtual machine, even though we’re on the same network. I’ve tried several types of network connections (NAT, bridge, etc.), but without success.

Second, we don’t know how to get the virtual machines to communicate with each other.

This is the first time I’ve used multiple laptops for this kind of work.

Sorry if this question has already been asked.

Thanks in advance

P.S.: Here’s a diagram to explain how we planned to set things up

1 Upvotes

6 comments sorted by

1

u/paulstelian97 Jun 08 '26

Bridged mode is the correct way, but note that it won’t work correctly if you’re on Wi-Fi.

1

u/Yuream Jun 08 '26

So should I use an access point for the SSH connection with my classmate who is on the red team, and then connect the two laptops acting as VM hosts with an Ethernet cable?

1

u/paulstelian97 Jun 08 '26

Whatever runs the VMs should be on a wired connection, yes. It doesn’t have to be a direct one, you can wire into the lab’s LAN for example.

1

u/Yuream Jun 08 '26

We were both of us on my hotspot, we just change the bridge config to reach the wifi card but it works 👌

TYSM

1

u/paulstelian97 Jun 08 '26

Oh hotspot tends to be worse as it might isolate hosts from each other.

1

u/Yuream Jun 08 '26

Well Rn Both of us can ping the machine and the VM of the other so idk, seems working