*Empty MediaWiki Message*

This commit is contained in:
Daniel.plominski 2015-03-18 02:14:11 +00:00
parent 4a35b178e0
commit 5cbd2f0293
1 changed files with 67 additions and 0 deletions

67
LXC.mw
View File

@ -230,3 +230,70 @@ lxc starten
lxc wheezy auf jessie upgraden (ohne systemd)
: <source lang="bash">apt-get update; apt-get upgrade</source>
== LXC Debian 7 (Wheezy) Container Upgrade auf Debian 8 (Jessie) mit sysvinit ==
Container läuft mit Wheezy
<source lang="bash">
grep "PRETTY" /var/lib/lxc/*/*/etc/os-release
/var/lib/lxc/bind/root/etc/os-release:PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
</source>
lxc capabilities anpassen und container restarten
<source lang="bash">
vi /var/lib/lxc/bind/config
## Capabilities
### LXC - jessie/systemd hacks // ###
lxc.kmsg = 0
#lxc.cap.drop = audit_control
#lxc.cap.drop = audit_write
### LXC - jessie/systemd hacks // ###
lxc-stop -n bind
</source>
nachschauen ob noch alte interfaces active sind
<source lang="bash">
ifconfig | grep "bind"
</source>
und ggf. abwarten bis die alten interface ressourcen "freigegeben" sind (nicht mehr auftauchen)
Container neustarten:
<source lang="bash">
lxc-start -n bind
</source>
Repo anpassen
<source lang="bash">
rm /etc/apt/sources.list.d/debian.list
</source>
<source lang="bash">
vi /etc/apt/sources.list
### ### ### C3D2 ### ### ###
deb http://ftp.de.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.de.debian.org/debian/ jessie main contrib non-free
deb http://ftp.de.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.de.debian.org/debian-security/ jessie/updates main contrib non-free
deb-src http://ftp.de.debian.org/debian-security/ jessie/updates main contrib non-free
### ### ### C3D2 ### ### ###
# EOF
</source>
Container Upgrade
<source lang="bash">
apt-get update; apt-get clean; apt-get update; apt-get upgrade
</source>