Build a CentOS7 server for: pxe boot, kickstart, reposync, repotrack, nfs, https (STEP 1)

STEP 1 – clone an existing “minimal” VM (or build one).

This step requires an existing “minimal/baseline” VM ready to clone.

If you don’t have one, install/configure a CentOS version 7 64-bit instance.

  • On MacOS/Fusion:
    • clone an existing baseline VM.
    • verify VM config: 1 vcpu, 512MB mem, 6g NVMe disk, 1 network interface (VMNET2).
    • verify VM config: disable/remove Printer, Sound, USB, Camera, Bluetooth.
    • update shared folder settings, VM name, and notes.
  • In VM:
    • use nmtui to set/rename hostname and set static IP.
    • pull scripts and config files into /home/elmer from /mnt/hgfs/c7pxe
    • * many of these scripts and config files are described in following steps.
    • yum repolist # => should be using online CentOS-7-64bit: base,updates,extras,epel
    • systemctl status kdump # => check and confirm it’s disabled
    • free -h  # “Swap: 0B 0B 0B” # => check and confirm it’s all zeros (ie., swap is disabled).
    • hostname; ip address; uname -r
    • yum update
    • List all of the installed packages (RPMs) with size info, and sort the list by size:
    • rpm -qa –queryformat ‘%10{size} – %-25{name} \t %{version}\n’ | sort -n
    • ./yum-clean.sh # note: my custom script for cleaning up after yum.
    • ./shrink-disk.sh # note: my custom script for cleaning up and shrinking virtual disks.
  • On MacOS/Fusion:  shut down the newly cloned VM and ZIP a baseline backup before continuing.

One thought on “Build a CentOS7 server for: pxe boot, kickstart, reposync, repotrack, nfs, https (STEP 1)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s