Hots:Debian amd64 with 1 NIC
Guest:RHEL 5 UPDATE 4 x86_64
goal:install RHEL on Virtualbox, 2 network interfaces inside RHEL(not ip alias), basic environment to install Oracle RAC.
Host side
/etc/network/interfaces:
auto lo
iface lo inet loopback
pre-up /sbin/ifconfig eth0 mtu 1500 up
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
bridge_maxwait 0
bridge_fd 0
address 192.168.100.3
netmask 255.255.255.0
network 192.168.100.0
gateway 192.168.100.1
broadcast 192.168.100.255
mtu 1500
auto br0:1
iface br0:1 inet static
address 10.10.10.3
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
mtu 1500
/etc/rc.local:
/usr/bin/VBoxTunctl -t tap1 -u <USER>
/usr/bin/VBoxTunctl -t tap2 -u <USER>
/usr/sbin/brctl addif br0 tap1
/usr/sbin/brctl addif br0:1 tap2
/sbin/ifconfig tap1 mtu 1500 promisc
/sbin/ifconfig tap2 mtu 1500 promisc
/sbin/ifconfig tap1 up
/sbin/ifconfig tap2 up
Virtualbox settings:
Network --> enable Adapter 1 and Adapter 2
Attached to:Bridged Adapter
Name:Adapter 1 -->tap1, Adapter 2 -->tap2
install RHEL:
* Desktop Environments
√ GNOME Desktop Environment
Applications
√ Editors
√ Graphical Internet
√ Text-based Internet
Development
√ Development Libraries
√ Development Tools
√ Legacy Software Development
√ X Software Development
Servers
√ Legacy Network Server
√ Network Servers
√ Server Configuration Tools
√ Windows File Server
Base System
√ Administration Tools
√ Base
√ Java
√ Legacy Software Support
√ + compat-db-4.2.52-5.1.i386
√ + openmotif-2.2.3.18.i386
√ System Tools
√ X Window System
in RHEL:
/etc/sysconfig/network:
GATEWAY=192.168.100.3
/etc/sysconfig/network-scripts/ifcfg-eth0:
IPADDR=192.168.100.93
/etc/sysconfig/network-scripts/ifcfg-eth1:
IPADDR=10.10.10.93
迴響