TurnToJPG -->


Install Ubuntu 18.04, 4 Core/ 4G memory, 50 G disk.

Install with basic sshd support.


Network planning:, no dhcp.


Configure the networking via following commands:

# vim /etc/netplan/01-netcfg.yaml
  version: 2
  renderer: networkd
      dhcp4: no
      addresses: []
        addresses: [,]

# netplan --debug apply
# systemctl disable systemd-resolved.service
# systemctl stop systemd-resolved.service
# rm -f /etc/resolv.conf 
# echo nameserver>/etc/resolv.conf

Configure the hostname:

# sudo hostnamectl set-hostname
# echo "" | sudo tee -a /etc/hosts

Install foreman

Install foreman via following commands:

# hostnamectl set-hostname
# echo ""| sudo tee -a /etc/hosts
# apt-get update
# apt-get update
# sudo apt-get install ca-certificates
# wget
# sudo dpkg -i puppet5-release-bionic.deb
# rm puppet5-release-bionic.deb
# echo "deb bionic 1.19" | sudo tee /etc/apt/sources.list.d/foreman.list
# echo "deb plugins 1.19" | sudo tee -a /etc/apt/sources.list.d/foreman.list
# apt-get -y install ca-certificates
# wget -q -O- | sudo apt-key add -
# apt-get update
# sudo apt-get install foreman-installer
# foreman-installer
# foreman-installer  --enable-foreman-proxy  --foreman-proxy-tftp=true  --foreman-proxy-tftp-servername=  --foreman-proxy-dhcp=true  --foreman-proxy-dhcp-interface=eth0  --foreman-proxy-dhcp-gateway=  --foreman-proxy-dhcp-nameservers=""  --foreman-proxy-dhcp-range=""  --foreman-proxy-dns=true  --foreman-proxy-dns-interface=eth0  --foreman-proxy-dns-forwarders=  --foreman-proxy-foreman-base-url=  --foreman-proxy-oauth-consumer-key=ceqCFsvS8qrVRv8W3pb5yWNs6Prt9iZS  --foreman-proxy-oauth-consumer-secret=aYCHnyCzRXFuuy4nNXWthBKhPiNdfzJt

Refers to:



After a while, you will see the server has been detected and displayed in the webpage:


Configuration for CentOS7

Download iso from mirror:

# wget
# mount -t iso9660 ./CentOS-7-x86_64-Minimal-1810.iso /mnt
# cp -arv /mnt/* ./website

Create docker based website:

# apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
# curl -fsSL | sudo apt-key add -
# apt-key fingerprint 0EBFCD88
# add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \
# apt-get update && apt-get install -y docker-ce
# docker pull jrelva/nginx-autoindex:latest
# mkdir -p /opt/web
# docker run --name docker-nginx -p 7888:80 -d --restart=always -v /opt/web:/usr/share/nginx/html jrelva/nginx-autoindex

Host-> Installation Media, add new iso:


Host-> Operating System, Create new os:


Filled the description of the new os:


Choose x86_64:


Partition Tables we choose Kickstart default:


Associate the installation media with our centos 7.6:


Click submit, later we will choose template for provision.

Host-> Provision Templates, choose following templates and associate with CentOS7_x86_64:


kickstart default finish
kickstart default
kickstart default ipxe
kickstart default pxelinux
kickstart default use data

Associate with template:


Next we will configure the subnet and the foreman-proxy items.