My CentOS 7.1 recipe (for solely running a FOG Server)



  • =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    CentOS_7 - Install Minimal Server +20151027

    • This is a MINIMAL (CORE) installation intended solely for a FOG Server role
    • The resulting image can be deployed to any virtual or physical hardware (hopefully)
    • https://wiki.centos.org/FAQ/CentOS7

    =-=-=-=-=-
    For a Physical FOG Server

    i.	Flash & Program System BIOS for ODD Boot
    ii.	Install HDD #1 (120+ GiB & zeroed) on first controller port
    iii.	Install ODD #1 on last controller port
    iv.	Insert CentOS-7-x86_64-NetInstall-1503 CD
    

    =-=-=-=-=-
    For a Hyper-V Virtual FOG Server

    i.	Create a New Virtual Machine: CentOS_7, Generation 1, 512MB Dynamic Memory, Onboard Network, Create a virtual hard disk
    ii.	Boot from CD
    iii.	Maximum RAM 2048MB
    iv.	1 Virtual Processor
    v.	DVD Drive Image File: "CentOS-7-x86_64-NetInstall-1503.iso"
    vi.	Automatic Start Action: Nothing
    

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    01> Install CentOS_7

    • Start Machine
    • Install!

    @ CentOS 7

    • Install CentOS 7

    @ What language would you like to use during the installation process?

    • English (Canada)
      = CONTINUE

    @ Installation Summary

    / Network & Host Name

    • Ethernet (eth0) = ON
    • Host Name = “centos7”
      = DONE

    / Date & Time

    • Americas + Toronto
    • Network Time = ON + Configure + OK
      = DONE

    / Installation Source

    / Software Selection

    • Minimal Install
      = DONE

    / Installation Destination

    • I will configure partitioning
    • Checkmark <Msft Virtual Disk>
      = DONE

    @ Manual Partitioning

    • Use the following partitioning scheme = Standard Partition
    • Click here to create them automatically
    • DATA /home = DELETE
    • SYSTEM swap = File System = swap, Desired Capacity = 10 GiB ( becomes sda3 )
    • SYSTEM / = File System = ext4, Desired Capacity = 999 GiB ( becomes sda2 )
    • SYSTEM /boot = File System = ext4, Desired Capacity = 500 MiB ( becomes sda1 )
      = DONE

    @ Summary of Changes
    = Accept Changes

    @ Installation Summary
    = Begin Installation

    @ Configuration

    / Root Password

    • “… root password …”
      = DONE

    / User Creation

    • Full name = Administrator
    • Username = administrator
    • Make this user administrator
    • Password = “… administrator password …”
      = DONE

    @ CentOS is now successfully installed …

    • Reboot (.ISO is ejected)

    … system restarts …
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    02> Master the OS & Update the Kernel

    • Login via CONSOLE
    • Determine IP Address
    • Logoff
    ip addr
    exit
    
    • Login REMOTELY with Kitty ( http://kitty.9bis.net/ )
    • Elevate Access Level
    • Disable root access via SSH (CentOS only)
    • Direct next Kernel recompilation to include AHCI drivers & be HW generic
    • Clean & Update the OS
    • Clear history
    • Shutdown
    sudo su
    
    sed -i "s|#PermitRootLogin yes|PermitRootLogin no|g" /etc/ssh/sshd_config
    systemctl restart sshd.service
    sed -i 's|#add_drivers+="|add_drivers+="ahci|g' /etc/dracut.conf
    sed -i 's|#hostonly="yes|hostonly="no|g' /etc/dracut.conf
    yum clean all
    yum makecache
    yum update -y
    history -c
    shutdown now
    

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    03> End of Recipe

    • Export VM
    • Add Legacy Network Adapter
    • Set Legacy Network Adapter, Virtual Switch: Onboard
    • Set BIOS Boot to Legacy Network Adapter

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    04> Ready for FOG Capture

    • Capture

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



  • Updated to include mastering for duplication.



  • My development Hyper-V server is a desktop i7 2600 and 16GB memory.

    FOG is such a lightweight that I find the storage I/O and Ethernet to be the only bottlenecks.

    My physical servers are all running on 2009 Lenovo M58 systems with Pentium E2220 and 2GB ; SATA-II and often 5900rpm at that.



  • Very nice. I suppose your virtualization server has a very high core speed for only one core to work smoothly.


 

382
Online

41.5k
Users

12.0k
Topics

113.4k
Posts