Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2009-09-14 15:16:41
Size: 522
Editor: AsmoKoskinen
Comment:
Revision 13 as of 2009-09-14 17:59:44
Size: 12228
Editor: AsmoKoskinen
Comment: LTSP-klusteri
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="margin: 0em 0em 0em -1.5em; padding: 0px;"rowstyle="margin: 0px; padding: 0px;"style="margin: 0px; padding: 0px; text-align: left; font-size: x-large; color: rgb(92, 46, 0);">'''LTSP5 :: LTSP 5 Työpaja 2009''' ||
Linuxin päätejärjestelmä (http://www.ltsp.org) on edennyt versioon 5.
||<tablestyle="margin: 0em 0em 0em -1.5em; padding: 0px;"rowstyle="margin: 0px; padding: 0px;"style="margin: 0px; padding: 0px; text-align: left; font-size: x-large; color: rgb(92, 46, 0);">'''LTSP-klusteri''' ||
Linuxin päätejärjestelmä (http://www.ltsp.org) palvelee, ei vain luokallista päätteitä, vaan satoja, jopa tuhansia päätteitä, kun käytetään LTSP-klusteria.
Line 4: Line 4:

Tämä ei ole ohje LTSP-klusterin käyttöönottamista varten. Sellainen tehdään tälle sivulle LTSP-työpajan jälkeen: http://wiki.ubuntu-fi.org/LTSP5_Ty%C3%B6paja_2009_2

Tälle sivulle on koottu asennuksen yhteydessä muokatut asetustiedostot, jotta niitä voidaan käyttää LTSP-työpajan asennuksessa.

Tässä tehty asennus KVM-virtuaalipalvelimelle perustuu tähän Stéphane Graberin ohjeeseen: https://wiki.stgraber.org/LTSP-Cluster/Documentation/OpenVZSetup

= LTSP-klusteri KVM-virtuaalipalvelimella =

Tässä asennuksessa on ensin asennettu Ubuntu 9.04-koneeseen KVM-virtuaaliympäristö. Sen asennuksesta ja käytöstä löytyy omat ohjeensa: http://wiki.ubuntu-fi.org/KVM

== KVM-virtuaalipalvelin ==

{{{
admin-kvm@kvm:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
        address 192.168.1.101
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off
admin-kvm@kvm:~$
}}}

{{{
admin-kvm@kvm:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 kvm

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-kvm@kvm:~$
}}}

{{{
sudo virt-clone -o Ubuntu910LTSP -n Ubuntu910LTSP_K1 -f Ubuntu910LTSP_K1.img --connect=qemu:///system
}}}

== Viisi virtuaalista LTSP-palvelinta ==

=== ltsp-root01 ===

{{{
admin-ltsp5@ltsp-root01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.1.115
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-root01:~$
}}}

{{{
admin-ltsp5@ltsp-root01:~$ cat /etc/hostname
ltsp-root01
admin-ltsp5@ltsp-root01:~$
}}}

{{{
admin-ltsp5@ltsp-root01:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ltsp-root01

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-ltsp5@ltsp-root01:~$
}}}

{{{
admin-ltsp5@ltsp-root01:~$ cat /etc/dhcp3/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
 next-server 192.168.1.115;
 option domain-name "ltsp-root01";
 option domain-name-servers 192.168.1.1;
 option routers 192.168.1.1;
 range 192.168.1.20 192.168.1.100;
 filename "/ltsp/i386/pxelinux.0";
 }

host ltsp100 {
        hardware ethernet 00:A0:D1:A3:81:55;
        fixed-address 192.168.1.100;
}

host ltsp099 {
 hardware ethernet 00:22:64:49:7F:F5;
 fixed-address 192.168.1.99;
 }
admin-ltsp5@ltsp-root01:~$
}}}

{{{
admin-ltsp5@ltsp-root01:~$ cat /opt/ltsp/i386/etc/ltsp/getltscfg-cluster.conf
SERVER=192.168.1.117
PORT=80
ENABLE_SSL=N
INVENTORY=Y
TIMEOUT=2
admin-ltsp5@ltsp-root01:~$
}}}

=== ltsp-control01 ===

{{{
admin-ltsp5@ltsp-control01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.117
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-control01:~$
}}}

{{{
admin-ltsp5@ltsp-control01:~$ cat /etc/hostname
ltsp-control01
admin-ltsp5@ltsp-control01:~$
}}}

{{{
admin-ltsp5@ltsp-control01:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ltsp-control01

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-ltsp5@ltsp-control01:~$
}}}

{{{
admin-ltsp5@ltsp-control01:~$ cat /etc/ltsp/ltsp-cluster-control.config.php
<?php
#This is a generated file, edit at your own risk !
 $CONFIG['save'] = "Save";
 $CONFIG['lang'] = "en";
 $CONFIG['charset'] = "UTF-8";
 $CONFIG['use_https'] = "false";
 $CONFIG['terminal_auth'] = "false";
 $CONFIG['terminal_password'] = "c3g7ms2hbzereycb";
 $CONFIG['db_server'] = "localhost";
 $CONFIG['db_user'] = "ltsp";
 $CONFIG['db_password'] = "ltsp";
 $CONFIG['db_name'] = "ltsp";
 $CONFIG['db_type'] = "postgres";
 $CONFIG['auth_name'] = "EmptyAuth";
 $CONFIG['loadbalancer'] = "192.168.1.119";
 $CONFIG['first_setup_lock'] = "TRUE";
 $CONFIG['rootInstall'] = "/usr/share/ltsp-cluster-control/Admin/";
?>
admin-ltsp5@ltsp-control01:~$
}}}

==== Selainpohjainen LTSP-klusterin kontrollikeskus ====

[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_01.png LTSP-ClusterControlCenter_01.png]
[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_02.png LTSP-ClusterControlCenter_02.png]
[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_03.png LTSP-ClusterControlCenter_03.png]
[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_04.png LTSP-ClusterControlCenter_04.png]
[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_05.png LTSP-ClusterControlCenter_05.png]
[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_06.png LTSP-ClusterControlCenter_06.png]

=== ltsp-loadbalancer01 ===

{{{
admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.119
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-loadbalancer01:~$
}}}

{{{
admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/hostname
ltsp-loadbalancer01
admin-ltsp5@ltsp-loadbalancer01:~$
}}}

{{{
admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ltsp-loadbalancer01

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-ltsp5@ltsp-loadbalancer01:~$
}}}

{{{
admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/ltsp/lbsconfig.xml
<?xml version="1.0"?>
<lbsconfig>
 <!-- This is a sample configuration file! see doc/configure.txt for
 more information -->
 <lbservice listen="*:8008" max-threads="1" refresh-delay="60" returns="$IP"/>
 <lbslave is-slave="false"/>
 <mgmtservice enabled="true" listen="*:8001"/>
 <nodes>
  <group default="true" name="jaunty">
   <node address="http://192.168.1.121:8000" name="ltsp-appserv01"/>
   <node address="http://192.168.1.123:8000" name="ltsp-appserv02"/>
  </group>
 </nodes>
 <rules>
  <variable name="LOADAVG" weight="25">
   <rule capacity=".7"/>
  </variable>
  <variable name="NBX11SESS" weight="50">
   <rule capacity="$CPUFREQ*$CPUCOUNT/120" critical="$CPUFREQ*$CPUCOUNT/100"/>
  </variable>
  <variable name="MEMUSED" weight="25">
   <rule capacity="$MEMTOTAL-100000"/>
  </variable>
 </rules>
</lbsconfig>
admin-ltsp5@ltsp-loadbalancer01:~$
}}}

=== ltsp-ltsp-appserv01 ===

{{{
admin-ltsp5@ltsp-appserv01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.1.121
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-appserv01:~$
}}}

{{{
admin-ltsp5@ltsp-appserv01:~$ cat /etc/hostname
ltsp-appserv01
admin-ltsp5@ltsp-appserv01:~$
}}}

{{{
admin-ltsp5@ltsp-appserv01:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.1.121 ltsp-appserv01

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-ltsp5@ltsp-appserv01:~$
}}}

=== ltsp-appserv02 ===

{{{
admin-ltsp5@ltsp-appserv02:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.1.123
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-appserv02:~$
}}}

{{{
admin-ltsp5@ltsp-appserv02:~$ cat /etc/hostname
ltsp-appserv02
admin-ltsp5@ltsp-appserv02:~$
}}}

{{{
admin-ltsp5@ltsp-appserv02:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ltsp-appserv02

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101 kvm

192.168.1.115 ltsp-root01
192.168.1.117 ltsp-control01
192.168.1.119 ltsp-loadbalancer01
192.168.1.121 ltsp-appserv01
192.168.1.123 ltsp-appserv02

admin-ltsp5@ltsp-appserv02:~$
}}}

----

LTSP-klusteri

Linuxin päätejärjestelmä (http://www.ltsp.org) palvelee, ei vain luokallista päätteitä, vaan satoja, jopa tuhansia päätteitä, kun käytetään LTSP-klusteria.

SisällysluetteloBRTableOfContents(3)

Tämä ei ole ohje LTSP-klusterin käyttöönottamista varten. Sellainen tehdään tälle sivulle LTSP-työpajan jälkeen: http://wiki.ubuntu-fi.org/LTSP5_Ty%C3%B6paja_2009_2

Tälle sivulle on koottu asennuksen yhteydessä muokatut asetustiedostot, jotta niitä voidaan käyttää LTSP-työpajan asennuksessa.

Tässä tehty asennus KVM-virtuaalipalvelimelle perustuu tähän Stéphane Graberin ohjeeseen: https://wiki.stgraber.org/LTSP-Cluster/Documentation/OpenVZSetup

LTSP-klusteri KVM-virtuaalipalvelimella

Tässä asennuksessa on ensin asennettu Ubuntu 9.04-koneeseen KVM-virtuaaliympäristö. Sen asennuksesta ja käytöstä löytyy omat ohjeensa: http://wiki.ubuntu-fi.org/KVM

KVM-virtuaalipalvelin

admin-kvm@kvm:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
        address 192.168.1.101
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off
admin-kvm@kvm:~$

admin-kvm@kvm:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       kvm

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-kvm@kvm:~$

sudo virt-clone -o Ubuntu910LTSP -n Ubuntu910LTSP_K1 -f Ubuntu910LTSP_K1.img --connect=qemu:///system

Viisi virtuaalista LTSP-palvelinta

ltsp-root01

admin-ltsp5@ltsp-root01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.115
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-root01:~$

admin-ltsp5@ltsp-root01:~$ cat /etc/hostname
ltsp-root01
admin-ltsp5@ltsp-root01:~$

admin-ltsp5@ltsp-root01:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       ltsp-root01

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-ltsp5@ltsp-root01:~$

admin-ltsp5@ltsp-root01:~$ cat /etc/dhcp3/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
        next-server 192.168.1.115;
        option domain-name "ltsp-root01";
        option domain-name-servers 192.168.1.1;
        option routers 192.168.1.1;
        range 192.168.1.20 192.168.1.100;
        filename "/ltsp/i386/pxelinux.0";
        }

host ltsp100 {
        hardware ethernet 00:A0:D1:A3:81:55;
        fixed-address 192.168.1.100;
}

host ltsp099 {
        hardware ethernet 00:22:64:49:7F:F5;
        fixed-address 192.168.1.99;
        }
admin-ltsp5@ltsp-root01:~$

admin-ltsp5@ltsp-root01:~$ cat /opt/ltsp/i386/etc/ltsp/getltscfg-cluster.conf
SERVER=192.168.1.117
PORT=80
ENABLE_SSL=N
INVENTORY=Y
TIMEOUT=2
admin-ltsp5@ltsp-root01:~$

ltsp-control01

admin-ltsp5@ltsp-control01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.117
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-control01:~$

admin-ltsp5@ltsp-control01:~$ cat /etc/hostname
ltsp-control01
admin-ltsp5@ltsp-control01:~$

admin-ltsp5@ltsp-control01:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       ltsp-control01

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-ltsp5@ltsp-control01:~$

admin-ltsp5@ltsp-control01:~$ cat /etc/ltsp/ltsp-cluster-control.config.php
<?php
#This is a generated file, edit at your own risk !
        $CONFIG['save'] = "Save";
        $CONFIG['lang'] = "en";
        $CONFIG['charset'] = "UTF-8";
        $CONFIG['use_https'] = "false";
        $CONFIG['terminal_auth'] = "false";
        $CONFIG['terminal_password'] = "c3g7ms2hbzereycb";
        $CONFIG['db_server'] = "localhost";
        $CONFIG['db_user'] = "ltsp";
        $CONFIG['db_password'] = "ltsp";
        $CONFIG['db_name'] = "ltsp";
        $CONFIG['db_type'] = "postgres";
        $CONFIG['auth_name'] = "EmptyAuth";
        $CONFIG['loadbalancer'] = "192.168.1.119";
        $CONFIG['first_setup_lock'] = "TRUE";
        $CONFIG['rootInstall'] = "/usr/share/ltsp-cluster-control/Admin/";
?>
admin-ltsp5@ltsp-control01:~$

Selainpohjainen LTSP-klusterin kontrollikeskus

[http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_01.png LTSP-ClusterControlCenter_01.png] [http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_02.png LTSP-ClusterControlCenter_02.png] [http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_03.png LTSP-ClusterControlCenter_03.png] [http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_04.png LTSP-ClusterControlCenter_04.png] [http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_05.png LTSP-ClusterControlCenter_05.png] [http://www.arkki.info/howto/Wiki/LTSP5-Testausta/LTSP-ClusterControlCenter_06.png LTSP-ClusterControlCenter_06.png]

ltsp-loadbalancer01

admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.119
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-loadbalancer01:~$

admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/hostname
ltsp-loadbalancer01
admin-ltsp5@ltsp-loadbalancer01:~$

admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       ltsp-loadbalancer01

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-ltsp5@ltsp-loadbalancer01:~$

admin-ltsp5@ltsp-loadbalancer01:~$ cat /etc/ltsp/lbsconfig.xml
<?xml version="1.0"?>
<lbsconfig>
        <!-- This is a sample configuration file! see doc/configure.txt for
        more information -->
        <lbservice listen="*:8008" max-threads="1" refresh-delay="60" returns="$IP"/>
        <lbslave is-slave="false"/>
        <mgmtservice enabled="true" listen="*:8001"/>
        <nodes>
                <group default="true" name="jaunty">
                        <node address="http://192.168.1.121:8000" name="ltsp-appserv01"/>
                        <node address="http://192.168.1.123:8000" name="ltsp-appserv02"/>
                </group>
        </nodes>
        <rules>
                <variable name="LOADAVG" weight="25">
                        <rule capacity=".7"/>
                </variable>
                <variable name="NBX11SESS" weight="50">
                        <rule capacity="$CPUFREQ*$CPUCOUNT/120" critical="$CPUFREQ*$CPUCOUNT/100"/>
                </variable>
                <variable name="MEMUSED" weight="25">
                        <rule capacity="$MEMTOTAL-100000"/>
                </variable>
        </rules>
</lbsconfig>
admin-ltsp5@ltsp-loadbalancer01:~$

ltsp-ltsp-appserv01

admin-ltsp5@ltsp-appserv01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.121
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-appserv01:~$

admin-ltsp5@ltsp-appserv01:~$ cat /etc/hostname
ltsp-appserv01
admin-ltsp5@ltsp-appserv01:~$

admin-ltsp5@ltsp-appserv01:~$ cat /etc/hosts
127.0.0.1       localhost
192.168.1.121   ltsp-appserv01

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-ltsp5@ltsp-appserv01:~$

ltsp-appserv02

admin-ltsp5@ltsp-appserv02:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.123
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
admin-ltsp5@ltsp-appserv02:~$

admin-ltsp5@ltsp-appserv02:~$ cat /etc/hostname
ltsp-appserv02
admin-ltsp5@ltsp-appserv02:~$

admin-ltsp5@ltsp-appserv02:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       ltsp-appserv02

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

192.168.1.101   kvm

192.168.1.115   ltsp-root01
192.168.1.117   ltsp-control01
192.168.1.119   ltsp-loadbalancer01
192.168.1.121   ltsp-appserv01
192.168.1.123   ltsp-appserv02

admin-ltsp5@ltsp-appserv02:~$