Friday, February 23, 2018

Installing Oracle Linux 6 on VirtualBox

Download Oracle Linux 6.9 ISO
Create Virtual Machine
Linux Installation
Software Updates
Firewall
SELinux

I. Download Oracle Linux 6.9 ISO

- Go to http://edelivery.oracle.com/

- Click Sign In

- Search for Oracle Linux in the search bar

- Click on Oracle Linux 6.9.0.0.0 (Oracle Linux), then it should be in the Select Software Cart
- Click on Select Software, then select platform x86-64 bit and click continue.

- Accept the Oracle Standard Terms and Restrictions
- Click on the iso for "Oracle Linux 6 Update 9 for x86-64

- Download will begin and take approximately 30-45 minutes (May be faster)

II. Create Virtual Machine

- Download and install Virtual Box
- Open Virtual Box
- Select New
- Give the name Oracle Linux 6 (or whatever you choose)

- Give the VM some memory (I did 4GB, 4096MB)

- Select Create Virtual Hard Drive now

- Select VDI or VMDK (I did VDI)

- Select Dynamically allocated

- Specify the size of the drive you need.


III. Linux Installation

- Select VM
- Click Settings -> System -> Change "Pointing Device" From PS/2 Mouse to USB Tablet (This will fix the mouse integration issue)

- Click Settings -> Network -> Change "Attached to:" from "Nat" to "Bridged Adapter"

- In the "Storage" pane in Virtual Box select "[Optical Drive] Empty" and select correct .iso file

- Select the VM and choose Start
- In the Shared Folders section, you can share a windows folder where you loaded all your software. In my case I used C:\Software as my Folder Path.

- Choose "Install or Upgrade an existing system" and press enter

- You may choose "Skip" to skip media test and start installation and Click Next

- Select English and click Next

- Click Next
- Choose Basic Storage Devices

- Click Next
- Click Yes, discard any data

- Change the Hostname to your prefference. (Ex: bob.oracle)

- Click Next
- Select appropriate timezone

- Click Next
- Choose Create Custom Layout

- Click Next
- Click Create
- Select Standart Partition
- Click Create
- Mount Point: /home
- Size (mb): 400 and Click Ok
- File System Type: swap
- Size (mb): 2048(2GB)
- Click Ok
- Click Create
- Mount Point: /
- Size (mb): Give it all the remaining space available
- Click Ok, the file layout should look like below:

- Click Next
- Select Format
- Select Write changes to Disk

- Click Next
- Select the following packages for the install:
  Base System - Base
  Base System - Compatibility libraries
  Base System - Network file system client
  Base System - Perl Support
  Servers - Server platform
  Servers - System administration tools
  Desktops - Desktop
  Desktops - Desktop Platform
  Desktops - Fonts
  Desktops - General Purpose Desktop
  Desktops - Graphic Administration Tools
  Desktops - Input methods
  Desktops - X Window System
  Applications - Internet browser
  Development - Development Tools

- Click Next
- Installation will being

- Click Reboot

- Click Forward
- Agree and Click Forward
- Choose "No, I prefer to register at a later time"

- Click Forward
- Choose "No thanks, Ill continue later"

- Click Forward
- Create username and password, you can ignore this.

- Click Forward
- You can select "Synchronize date and time over the network" and Click Forward

- Disable kdump by unchecking Enable kdump? and click Finish.

- Click Yes then OK and System will reboot
- Log in as root user
- Go to Devices -> Insert Guest Additions CD Image -> Ok -> Run

- Press Return when installation is finished
- Restart VM and log back in
- Right-Click netowrk Icon on task bar
  a. Edit Connections -> System eth0 -> Edit
  b. Check "Connect automatically"
  c. Apply
  d. If still red "X" then click icon and select System eth0.

- Check internet access
  [root@dns ~]# ping google.com
  PING google.com (172.217.11.238) 56(84) bytes of data.
  64 bytes from den02s01-in-f14.1e100.net (172.217.11.238): icmp_seq=1 ttl=57 time=66.6 ms
  64 bytes from den02s01-in-f14.1e100.net (172.217.11.238): icmp_seq=2 ttl=57 time=41.8 ms
  64 bytes from den02s01-in-f14.1e100.net (172.217.11.238): icmp_seq=3 ttl=57 time=24.2 ms
  ^C
  --- google.com ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2661ms
  rtt min/avg/max/mdev = 24.209/44.251/66.681/17.421 ms

IV. Software Updates

[root@dns ~]# vi /etc/yum.repos.d/public-yum-ol6.repo
  a. Make enabled=1 for "[public_ol6_addons]"
  b. [root@dns ~]# yum update -y

V. Firewall

- To turn off the firewall do the following as the "root" user:
  [root@dns ~]# service iptables stop
  iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
  iptables: Flushing firewall rules:                         [  OK  ]
  iptables: Unloading modules:                               [  OK  ]

  [root@dns ~]# chkconfig iptables off
- Alternatively, use the GUI by doing the following:

  1. Open the "Firewall Configuration" dialog (System > Administration > Firewall).
  2. Click the "Close" button on the startup dialog and type in the "root" password if requested.
  3. On the resulting dialog, click the "Disable" button, followed by the "Apply" button on the toolbar.
  4. Click the "Yes" button on the confirmation dialog.
  5. Quit the "Firewall Configuration" dialog.

VI. SELinux

Set SELinux to "permissive" by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
  [root@dns ~]# vi /etc/selinux/config
  change SELINUX=permissive
- Once the change is complete, either restart the server or run the following command as "root".
  [root@dns ~]# setenforce Permissive

No comments:

Post a Comment