Created
September 30, 2012 23:10
-
-
Save ehowardtillit/2bf8e9ac14bc0b28ef6b to your computer and use it in GitHub Desktop.
LXC at PMM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LXC | |
# What is lxc | |
# LXC vs the others (perf bench) | |
# installing | |
After installing a barebones Debian Squeeze we install LXC | |
.... | |
Then we install some things on the containers: | |
apt-get install -y vim dialog apt-utils | |
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen | |
apt-get -y --force-yes install locales | |
dpkg-reconfigure locales | |
apt-get --no-install-recommends install -y adduser apt-utils iproute netbase sudo iputils-ping iptables rsyslog | |
apt-get install --no-install-recommends -y openssh-blacklist openssh-blacklist-extra openssh-server | |
apt-get install -y net-tools ifupdown sockstat | |
apt-get install -y wget less lsof screen apt-utils nano telnet inetutils-ping psmisc | |
echo "deb http://ftp.fr.debian.org/debian/ squeeze main non-free contrib" > /etc/apt/sources.list | |
echo "deb-src http://ftp.fr.debian.org/debian/ squeeze main non-free contrib" >> /etc/apt/sources.list | |
echo "" >> /etc/apt/sources.list | |
echo "deb http://security.debian.org/ squeeze/updates main contrib non-free" >> /etc/apt/sources.list | |
echo "deb-src http://security.debian.org/ squeeze/updates main contrib non-free" >> /etc/apt/sources.list | |
echo "" >> /etc/apt/sources.list | |
echo "# squeeze-updates, previously known as 'volatile'" >> /etc/apt/sources.list | |
echo "deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list | |
echo "deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list | |
echo "" >> /etc/apt/sources.list | |
echo "# Dotdeb" >> /etc/apt/sources.list | |
echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list | |
echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list | |
wget http://www.dotdeb.org/dotdeb.gpg | |
cat dotdeb.gpg | sudo apt-key add - | |
apt-get update | |
apt-get upgrade |
http://wiki.debian.org/LXC
http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/#pre-setup-and-assumptions
http://wiki.debian.org/LXC/SimpleBridge%20http://sourceforge.net/tracker/?func=detail&aid=3411497&group_id=163076&atid=826303
http://serverfault.com/questions/397272/when-i-restart-my-lxc-environment-the-container-does-not-re-bind-to-the-ip-addr
http://wiki.pcprobleemloos.nl/using_lxc_linux_containers_on_debian_squeeze/creating_a_lxc_virtual_machine_template
http://www.activestate.com/blog/2011/10/virtualization-ec2-cloud-using-lxc
http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian
apt-get install -y git
apt-get install -y man
apt-get install -y curl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add "container_name" to hosts file.
apt-get install -y php5-cli libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-mysql php5-sqlite php5-xsl php5-suhosin php5-apc
apt-get install -y mysql-server mysql-client
apt-get -y autoremove