User Tools

Site Tools


docker_host_on_centos_7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_host_on_centos_7 [2017/04/27 11:45] herwarthdocker_host_on_centos_7 [2017/05/07 11:33] (current) herwarth
Line 1: Line 1:
 ======Docker host on CentOS 7====== ======Docker host on CentOS 7======
 =====Base installation===== =====Base installation=====
-create 512MB /boot, and LVM on the rest of the storageIn my case I use 120GB SSDs in the bare metal servers as boot disk. On LVM I have a 4GB swap LV and 16GB root LV. Do not use all the spaceam going to create other LVs as well during the setupI only create etx4 filesystems. I do not believe in XFS as Redhat does+  * minimal install 
-I choose a minimal install, kdump disabled and no security policy.+  * disable kdump 
 +  * do not configure network 
 +  * no security policy 
 +  * create own partition layout, choose LVM 
 +  * create 512MB /boot 
 +  * create swap of 4GB on LVM, rename volumename cl to rootvg. use all remaing space on disk for LVM 
 +  * do not use all space for root filesystem. choose 16GB for / and keep the rest unused. 
 +  * choose ext4 for all filesystems. I do not believe in XFS as Redhat does.
  
 =====Configure network===== =====Configure network=====
 +  # remove old interface config
 +  nmcli con del eno1
 +  nmcli con del eno2
 +
 +====Teaming====
 I am going to use vlans on a teaming interface of two network interfaces. It is easy to assign vlan interfaces to Openstack. This is the configuration for one server: I am going to use vlans on a teaming interface of two network interfaces. It is easy to assign vlan interfaces to Openstack. This is the configuration for one server:
 <code> <code>
-# remove old interface config 
-nmcli con del eno1 
-nmcli con del eno2 
- 
 # create team device # create team device
 nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "lacp"}}' nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "lacp"}}'
Line 33: Line 41:
 # finally  bring up team0 # finally  bring up team0
 nmcli con up team0 nmcli con up team0
 +</code>
 +====Bonding====
 +<code>
 +nmcli con add type bond con-name bond0 ifname bond0 mode 802.3ad
  
 +# disable IP on bond0 interface
 +nmcli c mod bond0 ipv4.method disabled
 +nmcli c mod bond0 ipv6.method link-local
 +
 +# add slaves
 +nmcli con add type bond-slave ifname eno1 master bond0
 +nmcli con add type bond-slave ifname eno2 master bond0
 +</code>
 +====VLAN====
 +<code>
 # create vlan devices # create vlan devices
-nmcli con add type vlan con-name vlan2 dev team0 id 2 +nmcli con add type vlan con-name vlan2 dev team0 id 2 connection.interface-name vlan2 
-nmcli con add type vlan con-name vlan11 dev team0 id 11+nmcli con add type vlan con-name vlan11 dev team0 id 11 connection.interface-name vlan11
  
 # disable ip addresses on vlan11 interface. we are going to use this as an external network in openstack # disable ip addresses on vlan11 interface. we are going to use this as an external network in openstack
Line 51: Line 73:
 hostnamectl set-hostname hp1.mngt.bh.helux.nl hostnamectl set-hostname hp1.mngt.bh.helux.nl
 </code> </code>
 +=====Configure firewalld=====
 +Use my [[firewalld-zones-centos7|Using firewalld to create zones with subnets on CentOS 7]] howto to create the zones and rules.
  
 =====Configure disks===== =====Configure disks=====
docker_host_on_centos_7.1493293549.txt.gz · Last modified: by herwarth