I run a course that includes practical classes on system administration. For that years ago I created a Fedora 20 virtual image -- it need not be a modern and secure one as it is only for executing basic system administration commands. Students import that into VirtualBox.
The machine image has loopback and two other network interfaces:
p2p1 to the Internet and
p7p1 to the host machine. I would like the students to log in through that interface from a terminal emulator on the host Windows.
sudo dhclient p7p1
most of them is able to get an IPv4 address as shown here, a local
192.168. ... address:
Some of them don't. Their
dhclient hangs and they do not get an IPv4 address.
A subset of them can log in from the terminal emulator on the host using the IPv6 address but others cannot and they cannot ping even the virtual machine by the IPv6 address.
Now, they have
- the same hardware as their PC
- the same Windows 7 from the same image file
- the same version of VirtualBox
- the same Fedora 20 image
- including the same virtual disk image
- and also the same network interface configuration
What can differ there and how can I get an IPv4 address for the virtual machine?