How to access the internet from a virtual machine in Gnome Boxes?

I installed Gnome Boxes, created a new virtual machine and booted an ISO. The ISO boots up fine and the network inside the virtual machine got automatically configured by the distro (with dhcpd):

  • IP enp0s3 got the IP 10.0.2.15
  • DNS nameserver: 10.0.2.3
  • Gateway default: 10.0.2.2

Both other hosts are up and I can ping all IPs. DNS works too. But I can't ping anything not on the local net.


Thanks to a user in the german Arch-Linux board I got an answer: Boxes uses NAT for the host, and some protocols (like ICMP) aren't working. So I couldn't use ping, tracepath and the like, but the network and an installation works nevertheless.