website logo

Basic VM Communication

Connect your virtual machine with your host OS so both can communicate (ICMP ping).

Overview of host ↔ VM ping test

Basic Requirements

Steps

  1. Enable Inbound ICMP on Host

    Windows Firewall rule: File and Printer Sharing (Echo Request - ICMPv4-In)

    In Windows Defender Firewall → Advanced settings → Inbound Rules, find File and Printer Sharing (Echo Request - ICMPv4-In), then right-click → Enable Rule.

  2. Start the VM (Bridged Networking)

    Kali VM running with bridged network

    In VirtualBox → VM Settings → Network → Attached to: Bridged Adapter. Inside the VM, get the IP (e.g., ip a or ifconfig).

  3. Check Host IP & Ping

    Windows terminal showing ipconfig and ping

    On Windows host:

    ipconfig
    ping <VM_IP>

    You should see Reply from <VM_IP>. You can also ping the host from the VM.

    Example:

    Windows terminal showing ipconfig and ping