CentOS 7 OPSI: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
Zeile 12: Zeile 12:
  
 
  yum install vim wget net-tools
 
  yum install vim wget net-tools
 +
 +
== LXC installieren ==
  
 
  rpm -Uhv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
 
  rpm -Uhv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Zeile 17: Zeile 19:
 
  yum install lxc (epel)
 
  yum install lxc (epel)
  
 +
Ergebnisse sollten alle grün sein.
 +
lxc-checkconfig
 +
 +
* https://github.com/tpokorra/lxc-scripts/issues/3
 
== Bridges ==
 
== Bridges ==
 
  vim /etc/sysconfig/network-scripts/ifcfg-br0
 
  vim /etc/sysconfig/network-scripts/ifcfg-br0

Version vom 18. März 2015, 17:46 Uhr

Installation vom ISO in eine VirtualBox 4.13.8 Debian Jessie

  • Partitionierung
    • Manuell auswählen
      • /boot : 250M, ext4
      • / im LVM: 7 GB, ext4
      • volume group maximieren
systemctl start sshd
hostname set-hostname <hostname>
yum install vim wget net-tools

LXC installieren

rpm -Uhv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install lxc (epel)

Ergebnisse sollten alle grün sein.

lxc-checkconfig

Bridges

vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge

DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


IPADDR0=10.0.10.1
NETMASK=255.255.255.0

ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
DELAY=0
STP=yes

Forwarding

vim /etc/sysctl.conf

net.ipv4.ip_forward = 1
sysctl -p /etc/sysctl.conf