User Tools

Site Tools


haas:system:log.offbyone.lan

This is an old revision of the document!


Overview

log.offbyone.lan is the network syslog server in the LAIR.

hostname RAM disk swap OS Kernel
log.offbyone.lan 256MB 4GB (/) 128MB Debian 8.0 “Jessie” (AMD64) 3.14-1-amd64

log.offbyone.lan created on sokraits on 07/12/2014.

News

  • 04/11/2014 – Created log.offbyone.lan to replace the old one (mth)

TODO

  • important task
  • other important task
  • yet more important tasks

Xen Config

Creation

log.offbyone.lan created on sokraits on 04/11/2014:

sokraits:~# xen-create-image --verbose --hostname=log role=udev --dist=jessie --mac=00:16:3E:2d:47:76

Configuration

######################################################################
##
## LAIR Xen VM configuration file
##
##     created by xen-tools 4.2 on Fri Apr 11 05:39:29 2014.
##
######################################################################

######################################################################
##
## PyGRUB
##
bootloader  = '/usr/lib/xen-default/bin/pygrub'

######################################################################
##
## CPU(s) + memory size
##
memory      = '256'
vcpus       = '1'

######################################################################
##
## Disk device(s).
##
root        = '/dev/xvda1 ro'
disk        = [ 'file:/xen/images/log.disk,xvda1,w',
                'file:/xen/images/log.swap,xvda2,w' ]

######################################################################
##
## Hostname
##
name        = 'log'

######################################################################
##
## Networking
##
dhcp        = 'dhcp'
vif         = [ 'mac=00:16:3E:2d:47:76' ]

######################################################################
##
## Behaviour
##
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

grub config

Due to the fact that sokraits/halfadder are still on squeeze, they cannot handle VMs running Jessie's default kernel (3.13).. so we're transplanting the standard wheezy kernel.

I dropped the necessary files (*3.2.0* from a wheezy VM with pygrub) into /boot, and updated the VM's grub/menu.lst as follows:

default         0
timeout         2

title           Debian GNU/Linux 7
root            (hd0,0)
kernel          /boot/vmlinuz-3.2.0-4-amd64 root=/dev/xvda1 ro
initrd          /boot/initrd.img-3.2.0-4-amd64

title           Debian GNU/Linux 7 (Single-User)
root            (hd0,0)
kernel          /boot/vmlinuz-3.2.0-4-amd64 root=/dev/xvda1 ro single
initrd          /boot/initrd.img-3.2.0-4-amd64

title           Debian GNU/Linux jessie/sid
root            (hd0,0)
kernel          /boot/vmlinuz-3.13-1-amd64 root=/dev/xvda1 ro
initrd          /boot/initrd.img-3.13-1-amd64

title           Debian GNU/Linux jessie/sid (Single-User)
root            (hd0,0)
kernel          /boot/vmlinuz-3.13-1-amd64 root=/dev/xvda1 ro single
initrd          /boot/initrd.img-3.13-1-amd64

Kernel modules will also need to be transplanted into /lib/modules.

For simplicity, I have created an archive called jessie_on_squeeze.tar.gz that has all the necessary files (extracts onto / on the VM).

Network Configuration

Machine Interface IP Address MAC Address Other Names
log.offbyone.lan eth0 10.80.2.15 00:16:3E:2d:47:76

Packages

The following packages have been installed on db:

lair-std
lair-ldap
lair-nfs
lair-autofs
lair-backup
lair-vm

syslog-ng config

As log is the log aggregator, it mustn't have the LAIR standard client configuration. Following is its config:

package_thing.conf

Identification of the file(s) to edit, along with working configs:

##
## package_thing.conf - configuration file for package_thing
##

############ GENERAL PARAMETERS #################
Server=blah.offbyone.lan
Hostname=sample

Be sure to do an entry for each relevant config file. The idea is to allow someone else to replicate the work you've done (that someone could easily be you).

important topic

Explanation of important topic relevant to the service your machine is providing.

Potentially useful URLs

haas/system/log.offbyone.lan.1405368653.txt.gz · Last modified: 2014/07/14 20:10 by wedge