Multi server setup

Discussion in 'General' started by mrbronz, Apr 21, 2012.

  1. mrbronz

    mrbronz Member HowtoForge Supporter

    Hi

    Sorry in advance this is probably a silly question

    OK I am trying to follow the "Multiserver Setup With Dedicated Web, Email, DNS & MySQL Database Servers On Debian Squeeze With ISPConfig 3"

    Am I right in assuming that this is all on 1 machine?

    If so how do I install the other servers from step 2?

    or should I say how do I ssh? or login to the other machines?

    so that I can proceed
     
  2. MaddinXx

    MaddinXx Member

    Hi mrbronz

    After this tutorial you will have 5 server, each of them running another service (web, db, mail & 2x dns), so this is on 5 machines.

    If you just own one, you can do the same tutorial within OpenVZ or any other VM machine, like I did.

    Can you get a bit more detailed on where you stick?

    Regards,
    MaddinXx
     
  3. mrbronz

    mrbronz Member HowtoForge Supporter

    I think you answerd it... I was assuming that this was all on one machine.

    I must admit I am a little confused on how to set up a vserver on ISPconfig 3.

    I was hoping that I might be able to use the vservers to set up the services, but I cant seem to get the vserver to work.
     
  4. MaddinXx

    MaddinXx Member

    OK :)

    This sounds to me like you are having 1 dedicated server and want:

    ISPConfig on the dedicated server
    - to create 5 virtual servers (using ISPConfig)
    - and each of these will be for one service

    If it's that what you want, you should follow these steps:

    1) Follow this tutorial to setup ISPConfig with OpenVZ support on the dedicated server: http://www.howtoforge.com/installing-openvz-plus-management-of-vms-through-ispconfig-3-debian-6.0

    2) Create the 5 VPS using the ISPConfig interface

    3) Follow the multi server tutorial from your 1st post on them (forget about the dedicated server).

    Attention: In the steps you are setting up the master<->slave relations (primary MySQL access) you should "use" the dedicated server as the master so you can manage all of your servers through it's ISPConfig. OK?

    You would than have:

    - 1 dedicated server with ISPConfig installed. This will manage the VPS (OpenVZ) (1st tutorial) as well as the services on them (ISPConfig) (2nd tutorial).
    - 5 VPS which were created using ISPConfig (see above) (1st tutorial), while always one of them will be used for a service (2nd tutorial).
     
  5. mrbronz

    mrbronz Member HowtoForge Supporter

    Hi

    Thank you so much for your help

    I run into a problem on the first step of the howto you pointed me to
    I'm getting 'Unable to locate package linux-image-openvz-686'

    I have

    deb http://download.openvz.org/debian-systs etch openvz
    deb http://rasta.struction.de/pve-1.4-i386/ etch openvz

    in my sources.list not sure if this is 100% correct as
    I'm still trying to understand the repositories.

    is this repository listing correct or am I missing something?
     
  6. falko

    falko Super Moderator Howtoforge Staff

  7. MaddinXx

    MaddinXx Member

    Not a problem :)

    Oh so you are still on Debian Etch (V4)? If it's a brand new server I recommend you to upgrade to Squeeze, which is stable version at the moment (V6).

    I am not 100% sure, but you should be able to follow these steps to upgrade to Squeeze:

    Code:
    nano /etc/apt/sources.list
    Remove your entries and add:

    Code:
    # Offizieller Debian Mirror
    deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
    
    # Security Updates
    deb http://security.debian.org/ squeeze/updates main contrib non-free
    After that run:

    Code:
    apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
    You should than be on Squeeze.

    After that, I recommend you to reboot the server and run the tutorials as described.

    You can see here, that the package should be available afterwards, as it is in Squeeze repo: http://packages.debian.org/squeeze/linux-image-openvz-686

    Regards,
    MaddinXx
     
  8. mrbronz

    mrbronz Member HowtoForge Supporter

    If I use

    Code:
    apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
    Im getting error "There are problems and -y was used without --force-yes"

    So I ran each apt-get individually

    Code:
    apt-get update
    Code:
    apt-get upgrade 
    Code:
    apt-get dist-upgrade
    However on the last command I get
    "Could not perform immediate configuration on 'exim4-daemon-light'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)"

    I cant figure out if this is a warning or a dead error

    I also need to mention Im using Ubuntu server 11.10 I dont know if this is relavant or not
     
    Last edited: Apr 22, 2012
  9. MaddinXx

    MaddinXx Member

  10. mrbronz

    mrbronz Member HowtoForge Supporter

  11. mrbronz

    mrbronz Member HowtoForge Supporter

    Hi MaddinXx

    even though I had errors after install as you suggested I rebooted the server and tried again to run the "apt-get -y install linux-image-openvz-686 vzctl vzquota vzdump"

    But I still get the ""There are problems and -y was used without --force-yes"" but after removing the -y option instarts to install but at the end I get

    "Processing triggers for man-db ...
    Errors were encountered while processing:
    /var/cache/apt/archives/firmware-linux-free_2.6.32-41squeeze2_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)"

    any Ideas?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please post your /etc/apt/sources.list.
     
  13. mrbronz

    mrbronz Member HowtoForge Supporter

    OK here you go:

    Code:
    # 
    #deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release i386 (20111011)]/ oneiric main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric main restricted
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric universe
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric universe
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://gb.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb http://security.ubuntu.com/ubuntu oneiric-security universe
    deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu oneiric partner
    # deb-src http://archive.canonical.com/ubuntu oneiric partner
    
    ## Uncomment the following two lines to add software from Ubuntu's
    ## 'extras' repository.
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    # deb http://extras.ubuntu.com/ubuntu oneiric main
    # deb-src http://extras.ubuntu.com/ubuntu oneiric main
    
    #deb http://download.openvz.org/debian-systs etch openvz
    #deb http://rasta.struction.de/pve-1.4-i386/ etch openvz
    #deb http://download.openvz.org/ubuntu/dists/hardy/ oneiric partner
    
    # Offizieller Debian Mirror
    deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
    
    # Security Updates
    deb http://security.debian.org/ squeeze/updates main contrib non-free
    
     
  14. MaddinXx

    MaddinXx Member

    Hi mrbronz

    I am absolutely not familiar with Ubuntu, but you definitely should not use Debian Repos on it.

    Could you please backup your current sources.list and create a new one containing this content:

    Code:
    deb http://de.archive.ubuntu.com/ubuntu oneiric main restricted universe multiverse
    #deb-src http://de.archive.ubuntu.com/ubuntu oneiric main restricted universe multiverse
    
    deb http://de.archive.ubuntu.com/ubuntu oneiric-updates main restricted universe multiverse
    #deb-src http://de.archive.ubuntu.com/ubuntu oneiric-updates main restricted universe multiverse
    
    deb http://de.archive.ubuntu.com/ubuntu oneiric-security main restricted universe multiverse
    #deb-src http://de.archive.ubuntu.com/ubuntu oneiric-security main restricted universe multiverse
    
    deb http://de.archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse
    #deb-src http://de.archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse
    These are the official 11.10 repos, which should be fine.

    // edit: you can find mirrors here: https://launchpad.net/ubuntu/+archivemirrors which are located near you.

    // edit2: Not sure if this will help, as you already seem to have most of these entries in your sources.list. But it seems Ubuntu does not have OpenVZ in their repo, so you could try following this tutorial: http://www.howtoforge.com/installing-and-using-openvz-on-ubuntu-10.04

    Afterwards run the whole apt-get commands again.

    Regards,
    MaddinXx
     
    Last edited: Apr 24, 2012
  15. mrbronz

    mrbronz Member HowtoForge Supporter

    Hi thanks for the info

    I seem to be having a problem selecting the correct image from the howto you pointed me to...

    After i type in the uname -r i get
    Code:
    3.0.0-17-generic-pae
    Now I'm assuming that I just replace

    Code:
    aptitude build-dep linux-image-2.6.32-24-server
    with

    Code:
    aptitude build-dep linux-image-3.0.0-17-generic-pae
    I assume this because there seems to be very little guidance in this section of the howto.

    but I get the following error

    Code:
    Unable to find the source package for "linux-image-3.0.0-17-generic-pae".
    Unable to find the source package for "linux-image-3.0.0-17-generic-pae".
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.
    E: You must put some 'source' URIs in your sources.list
    
    so unless I have the very same setup as the author, which clearly I don't,

    what repository would I need to add to my list or what else am I missing to get me back on track.

    Thank you in anticipation
     
  16. falko

    falko Super Moderator Howtoforge Staff

    I second that.

    The problem with using Ubuntu is that there's no OpenVZ support for Ubuntu...
     
  17. mrbronz

    mrbronz Member HowtoForge Supporter

    So should I laugh or cry... I'm confused... are you saying don't use Linux based Ubuntu or don't use Linux?

    I still have the same problem taken from your howto Falko

    on installing openvz on Ubuntu...

    OK straight forward question :

    Is it possible for me to install openvz on Ubuntu 11.10 (3.0.0-17-generic-pae) in the same way your howto on 10.04 (2.6.32-24-server)?
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    What Falko meant is that there is no openvz kernel available for Ubuntu 11.10 and no openvz tools. Ubuntu 11.10 uses Linux kernel 3.0.x and there are no OpenVZ patches available for 3.x Linux kernels from openvz.org.
     
  19. mrbronz

    mrbronz Member HowtoForge Supporter

    Thank you for getting back to me till

    I know you guys understand these things extremely more than I there is no question about that.

    But all I would like to know is answer to the question in my last post

    and my next question would be if it is possible how?

    If not I will move on to find another solution
     
  20. MaddinXx

    MaddinXx Member

    Hi again
    & thanks falko and till for investigation. I was at the end of my knowledge :)

    @mrbronz: You could switch to Debian, I personally recommend you this step (and the ISPConfig team too I guess).

    OpenVZ is supported there.
     

Share This Page