打开VirtualBox
点击Storage
点击
,添加虚拟光驱,选择Oracle
Linux 6.5 安装镜像。
进行正常Oracle Linux的安装,最少具有4G的swap空间。
并且要安装下面的软件包。
l Base System > Base
l Base System > Client management tools
l Base System > Compatibility libraries
l Base System > Hardware monitoring utilities
l Base System > Large Systems Performance
l Base System > Network file system client
l Base System > Performance Tools
l Base System > Perl Support
l Servers > Server Platform
l Servers > System administration tools
l Desktops > Desktop
l Desktops > Desktop Platform
l Desktops > Fonts
l Desktops > General Purpose Desktop
l Desktops > Graphical Administration Tools
l Desktops > Input Methods
l Desktops > X Window System
l Applications > Internet Browser
l Development > Additional Development
l Development > Development Tools
安装结束之后,重新启动,使用root用户登录。
安装VirtualBox扩展,下载Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack,双击运行。

安装成功后会在已经启动的RacNode1虚拟机窗口点击【设备】
点击【安装增强功能】,会自动挂载一个光驱到Linux系统中/media文件夹下。
|
[root@DNSServer 桌面]$ cd /media [root@DNSServer media]$ ls VBOXADDITIONS_4.1.10_76795 [root@DNSServer media]$ cd VBOXADDITIONS_4.1.10_76795/ [root@DNSServer VBOXADDITIONS_4.1.10_76795]$ ls 32Bit runasroot.sh VBoxWindowsAdditions.exe 64Bit VBoxLinuxAdditions.run VBoxWindowsAdditions-x86.exe AUTORUN.INF VBoxSolarisAdditions.pkg autorun.sh VBoxWindowsAdditions-amd64.exe [root@DNSServer VBOXADDITIONS_4.1.10_76795]$ ./VBoxLinuxAdditions.run |
禁用firewall
|
// 关闭firewall $ service iptables stop // 立即生效,重启后失效 $ chkconfig iptables off // 重启后生效 |
禁用SELinux
|
// 禁用SELinux $ /usr/sbin/setenforce 0 // 立即关闭SELinux $ set SELINUX=disabled |
配置相应信息
n hostname:ol6-112-rac1.cuug.net
n eth0,IP地址:192.168.8.111,子网掩码:255.255.255.0,默认网关:192.168.8.1
|
root@ol6-112-rac1.cuug.net:/>$ more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=08:00:27:28:39:E2 TYPE=Ethernet UUID=fefebda0-f397-4561-9a38-76e58c6a51e3 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.8.111 GATEWAY=192.168.8.1 NETMASK=255.255.255.0 |
n eth1,IP地址:192.168.6.111,子网掩码:255.255.255.0,网关:0.0.0.0
|
root@ol6-112-rac1.cuug.net:/>$ more /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 HWADDR=08:00:27:AE:91:06 TYPE=Ethernet UUID=7ae9829d-c9e5-4520-8577-50b9c5dc16e3 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.6.111 GATEWAY=0.0.0.0 NETMASK=255.255.255.0 |
可以自由地配置IP地址来适合你的网络,但在本文手续部分要与此处的设置保持一致
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1078657/ ,如需转载,请注明出处,否则将追究法律责任。