Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 14th January 2011, 09:09
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default LXC containers as VM's for ISPConfig 3 - First steps & quick start.

These steps work well on a Debian Lenny 5.0 container.
After logging into the container for the first time:

1. Type passwd and enter your new UNIX password.

2. Configure locales: dpkg-reconfigure locales Select your language from the long list. NOTE: Should be in utf8 format and the default for the container.
Clear out your locales cache: apt-get install localepurge
Then run localepurge

3. Configure local time. VERY IMPORTANT if you want to avoid problems with syncing timestamped files later (yikes!). Do this: dpkg-reconfigure tzdata and select correct timezone. Then run this diff -s /etc/localtime /usr/share/zoneinfo/`cat /etc/timezone` .. these should be the same and when you "poweroff" from the console you should see local time being correctly reported.

4. apt-get install vim-nox

5. Get a decent set of sources from here: http://debgen.simplylinux.ch/ -include "main", "security" and "volatile" repos.
vi /etc/apt/sources.list
Paste your new sources in and save.
apt-get update
apt-get upgrade


6. vi /etc/network/interfaces and set up a static ip for the container as you normally would.
/etc/init.d/networking restart
check the output of ifconfig - your network should reflect your changes.

7. vi /etc/hosts - write out the hosts file as you normally would - note that this will be a new file since the default container doesn't have a hosts file.
echo hostname.example.tld > /etc/hostname
/etc/init.d/hostname.sh start

The output of hostname and hostname -f should now be hostname.example.tld

-----------------------
You should be good to go now with installing a base system for use in a multiserver setup although the master server (with quota installed) will still have to reside on the host server/physical machine unless you customize your fstab in the container.
-----------------------
Regards.
Reply With Quote
The Following 3 Users Say Thank You to CSsab For This Useful Post:
falko (15th January 2011), SamTzu (18th October 2011), till (14th January 2011)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Monit & Munin SamTzu HOWTO-Related Questions 2 23rd September 2014 23:20
monitrc configuration for Debian ISPConfig 3 server Hans Tips/Tricks/Mods 2 28th March 2011 00:22
Monitoring server Ubuntu wiss Installation/Configuration 7 20th November 2010 13:56
CPU load locks up box. Apache or MYSQL related. crypted General 61 29th October 2010 23:16
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 22:58


All times are GMT +2. The time now is 15:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.