This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_host_on_centos_7 [2017/04/27 11:45] – herwarth | docker_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===== | ||
| - | I create | + | * 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 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: | ||
| < | < | ||
| - | # 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 ' | nmcli con add type team con-name team0 ifname team0 config ' | ||
| Line 33: | Line 41: | ||
| # finally | # finally | ||
| nmcli con up team0 | nmcli con up team0 | ||
| + | </ | ||
| + | ====Bonding==== | ||
| + | < | ||
| + | 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 | ||
| + | </ | ||
| + | ====VLAN==== | ||
| + | < | ||
| # 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 | ||
| </ | </ | ||
| + | =====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===== | ||