I re-visited the RHEL study material and setup the environment again, noted down the procedure.
1, copied the *.vdi (rhel6std.vdi and RHEL6-Student.vdi) file from Lenovo ThinkPad T400 to my new Lenovo ThinkPad X1, created the new machine by importing the *.vdi, no need to install the system again.
2, setup the network at Linux Instructor and Linux Student
In VirtualBox Manager, File->Preferences…->Network, to create “VirtualBox Host-Only Ethernet Adapter #2” and “VirtualBox Host-Only Ethernet #3”.
The Adapter #2 leave it as default,
The Adapter #3 set as below, server address allocated as 192.168.18.100, server mask as 255.255.255.0, address range as 192.168.18.101 ~ 192.168.18.254:
In Linux-student->Machine->Settings, set as below,
In Linux-Instructor->Machine->Settings, set as below,
In Windows, the network configuration as below,
Network configuration on Linux-Instructor, as I cloned the machine, I didn’t change anything and tried to test the network connection, but failed, the configuration as below,
# gls remote.test interface
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
Bringing up interface eth1: Device eth0 does not seem to be present, delaying initialization.
Delete the file /etc/udev/rules.d/70-persistent-net.rules, by commands:
mv 70-persistent-net.rules 70-persistent-net.rules.bak
encountered below problems,
change the MAC_address in the ethernet configuration file as required, by commands,
ifconfig -a #this is to get the MAC address of the etho0
vim /etc/sysconfig/network-scripts/ifcfg-eth0 #modify the MAC address in the configuration file
service network restart
For Linux-Instructors network configuration, I configured all and I am not sure which file makes it work.
Network configuration on Linux-Student, as below,
[student@server1 Desktop]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
and by command
In “Device configuration” -> “eth0 (eth0) – Intel Corporation 82540EM Gigabit Ethernet Controller”
chkconfig NetworkManager off
service network restart
3, testing the result from Linux-student and Linux-Instructor
the connection from Linux-student as Linux-strudent -> Linux-Instructor-> Window Host -> Internet, testing ping 18.104.22.168, ping instructor.example.com, ping 192.168.0.254, all successful,
the connection from Linux -Instructor as, Linux-student -> Linux-Instructor->Window Host-> Internet, testing ping 22.214.171.124, ping 192.168.0.101, all successful,
4, installation of VirtualBox Additions( VBOXADDITIONS_4.3.12_93733 ), and configure the share the folder between the Windows and Linux
Please refer to this link, http://xionghuilin.com/?p=7
5, reference links,