IP Configuration for Virtual box

Image

Virtual Box IP configuration for host and guest machine

  1. check virtual machine’s IP address
  2. set the Network adapter of the virtual machine to host only (restart VM afterwards for changes to take effect)
  3. set the host machine IP address of the host only Network adapter within the correct IP range of the virtual machines IP address
  4. ping the Virtual machine to validate configuration

Virtual Box and network settings

to prevent a virtual image from connecting to outside networks e.g. to download updates the following network setting can be selected:

image

when selecting “host-only” the virtual machine is not able to connect outside networks.

If the virtual machine should be able to connect to outside network the following option should be selected:

image

when selecting “NAT” the virtual machine is able to connect outside networks, traffic from outside network is not allowed to connect to services inside the virtual machine.

using the Option “Bridge” also allows traffic from the outside network to connect to services inside the virtual machine.