AppLogic 2.3 Beta Documentation The latest production release is AppLogic 3.0.30 VPS_CentOS51 - VPS based on CentOS 5.1 - Implementation Design
Base Class
The VPS_CentOS51 application is build from scratch based on CentOS 5.1.
Class Volume
The volume configuration for the VPS_CentOS51 singleton has the following volume:
- boot volume: 2 GB, mounted as "/", writeable, instantiable
Packages
acl-2.2.39-2.1.el5
anacron-2.3-45.el5.centos
apr-1.2.7-11
apr-util-1.2.7-6
aspell-0.60.3-7.1
aspell-en-6.0-2.1
at-3.1.8-82.fc6
atk-1.12.2-1.fc6
attr-2.4.32-1.1
audit-1.5.5-7.el5
audit-libs-1.5.5-7.el5
audit-libs-python-1.5.5-7.el5
authconfig-5.3.12-2.el5
autoconf-2.59-12
autofs-5.0.1-0.rc2.55.el5.3
automake14-1.4p6-13
automake15-1.5-16
automake16-1.6.3-8
automake17-1.7.9-7
automake-1.9.6-2.1
basesystem-8.0-5.1.1.el5.centos
bash-3.1-16.1
bc-1.06-21
beecrypt-4.1.2-10.1.1
bind-9.3.3-10.el5
bind-chroot-9.3.3-10.el5
bind-libs-9.3.3-10.el5
bind-utils-9.3.3-10.el5
binutils-2.17.50.0.6-5.el5
bison-2.3-2.1
boost-1.33.1-10.el5
boost-devel-1.33.1-10.el5
byacc-1.9-29.2.2
bzip2-1.0.3-3
bzip2-devel-1.0.3-3
bzip2-libs-1.0.3-3
cairo-1.2.4-3.el5_1
ccid-1.0.1-6.el5
centos-release-5-1.0.el5.centos.1
centos-release-notes-5.1.0-2
checkpolicy-1.33.1-2.el5
chkconfig-1.3.30.1-1
coolkey-1.1.0-5.el5
coolkey-devel-1.1.0-5.el5
coreutils-5.97-12.1.el5
cpio-2.6-20
cpp-4.1.2-14.el5
cracklib-2.8.9-3.3
cracklib-dicts-2.8.9-3.3
crash-4.0-4.6.1
crontabs-1.10-8
cryptsetup-luks-1.0.3-2.2.el5
cscope-15.5-15.fc6.1
ctags-5.6-1.1
cups-1.2.4-11.14.el5_1.4
cups-libs-1.2.4-11.14.el5_1.4
curl-7.15.5-2.el5
curl-devel-7.15.5-2.el5
cvs-1.11.22-5.el5
cyrus-sasl-2.1.22-4
cyrus-sasl-devel-2.1.22-4
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-plain-2.1.22-4
db4-4.3.29-9.fc6
db4-devel-4.3.29-9.fc6
dbus-1.0.0-6.3.el5_1
dbus-devel-1.0.0-6.3.el5_1
dbus-glib-0.70-5
dbus-python-0.70-7.el5
dejagnu-1.4.4-5.1
Deployment_Guide-en-US-5.1.0-11.el5.centos.1
desktop-file-utils-0.10-7
dev86-0.16.17-2.2
device-mapper-1.02.20-1.el5
device-mapper-multipath-0.4.7-12.el5_1.3
dhcdbd-2.2-1.el5
dhclient-3.0.5-7.el5
dhcpv6_client-0.10-33.el5
diffstat-1.41-1.2.2
diffutils-2.8.1-15.2.2
dmidecode-2.7-1.28.2.el5
dmraid-1.0.0.rc13-4.el5
dos2unix-3.1-27.1
dosfstools-2.11-6.2.el5
doxygen-1.4.7-1.1
dump-0.4b41-2.fc6
e2fsprogs-1.39-10.el5_1.1
e2fsprogs-devel-1.39-10.el5_1.1
e2fsprogs-libs-1.39-10.el5_1.1
ed-0.2-38.2.2
eject-2.1.5-4.2.el5
ElectricFence-2.2.2-20.2.2
elfutils-0.125-3.el5
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125-3.el5
elfutils-libelf-devel-static-0.125-3.el5
elfutils-libs-0.125-3.el5
ethtool-5-1.el5
exim-4.63-3.el5
expat-1.95.8-8.2.1
expat-devel-1.95.8-8.2.1
expect-5.43.0-5.1
fbset-2.1-22
file-4.17-9.0.1.el5
filesystem-2.4.0-1.el5.centos
findutils-4.2.27-4.1
finger-0.17-32.2.1.1
flex-2.5.4a-41.fc6
fontconfig-2.4.1-6.el5
fontconfig-2.4.1-7.el5
freetype-2.2.1-19.el5
ftp-0.17-33.fc6
gawk-3.1.5-14.el5
gcc-4.1.2-14.el5
gcc-c++-4.1.2-14.el5
gcc-gnat-4.1.2-14.el5
gcc-objc-4.1.2-14.el5
GConf2-2.14.0-9.el5
gdb-6.5-25.el5_1.1
gdbm-1.8.0-26.2.1
gdbm-devel-1.8.0-26.2.1
gettext-0.14.6-4.el5
glib2-2.12.3-2.fc6
glib2-devel-2.12.3-2.fc6
glibc-2.5-18.el5_1.1
glibc-common-2.5-18.el5_1.1
glibc-devel-2.5-18.el5_1.1
glibc-headers-2.5-18.el5_1.1
gmp-4.1.4-10.el5
gmp-devel-4.1.4-10.el5
gnu-efi-3.0c-1.1
gnupg-1.4.5-13
gnutls-1.4.1-2
gpg-pubkey-e8562897-459f07a4
gpm-1.20.1-74.1
gpm-devel-1.20.1-74.1
grep-2.5.1-54.2.el5
groff-1.18.1.1-11.1
grub-0.97-13
gtk2-2.10.4-19.el5
gzip-1.3.5-9.el5.centos
hal-0.5.8.1-25.el5_1.1
hdparm-6.6-2
hesiod-3.1.0-8
hesiod-devel-3.1.0-8
hicolor-icon-theme-0.9-2.1
htmlview-4.0.0-1.el5
hwdata-0.211-1
ibmasm-3.0-9
ifd-egate-0.05-15
imake-1.0.2-3
indent-2.2.9-14.fc6
info-4.8-14.el5
initscripts-8.45.17.EL-1.el5.centos.1
iproute-2.6.18-4.el5
ipsec-tools-0.6.5-8.el5
iptables-1.3.5-1.2.1
iptables-ipv6-1.3.5-1.2.1
iptstate-1.4-1.1.2.2
iputils-20020927-43.el5
irda-utils-0.9.17-2.fc6
jwhois-3.2.3-8.el5
kbd-1.12-19.el5
kernel-devel-2.6.18-53.1.14.el5
kernel-headers-2.6.18-53.1.14.el5
keyutils-libs-1.2-1.el5
keyutils-libs-devel-1.2-1.el5
kpartx-0.4.7-12.el5_1.3
krb5-devel-1.6.1-17.el5
krb5-libs-1.6.1-17.el5
krb5-workstation-1.6.1-17.el5
ksh-20060214-1.4
kudzu-devel-1.2.57.1.15-1.el5.centos
less-394-5.el5
lftp-3.5.1-2.fc6
libacl-2.2.39-2.1.el5
libacl-devel-2.2.39-2.1.el5
libaio-0.3.106-3.2
libattr-2.4.32-1.1
libattr-devel-2.4.32-1.1
libcap-1.10-26
libcap-devel-1.10-26
libdrm-2.0.2-1.1
libevent-1.1a-3.2.1
libgcc-4.1.2-14.el5
libgcrypt-1.2.3-1
libgcrypt-devel-1.2.3-1
libglade2-2.6.0-2
libgnat-4.1.2-14.el5
libgomp-4.1.2-14.el5
libgpg-error-1.4-2
libgpg-error-devel-1.4-2
libgssapi-0.10-2
libhugetlbfs-1.0.1-1.el5
libhugetlbfs-lib-1.0.1-1.el5
libICE-1.0.1-2.1
libicu-3.6-5.11.1
libIDL-0.8.7-1.fc6
libidn-0.6.5-1.1
libidn-devel-0.6.5-1.1
libjpeg-6b-37
libnl-1.0-0.10.pre5.4
libnotify-0.4.2-6.el5
libobjc-4.1.2-14.el5
libogg-1.1.3-3.el5
libogg-devel-1.1.3-3.el5
libpcap-0.9.4-11.el5
libpfm-3.2-0.060926.4.el5
libpng-1.2.10-7.1.el5_0.1
libselinux-1.33.4-4.el5
libselinux-devel-1.33.4-4.el5
libselinux-python-1.33.4-4.el5
libsemanage-1.9.1-3.el5
libsepol-1.15.2-1.el5
libsepol-devel-1.15.2-1.el5
libSM-1.0.1-3.1
libstdc++-4.1.2-14.el5
libstdc++-devel-4.1.2-14.el5
libsysfs-2.0.0-6
libtermcap-2.0.8-46.1
libtermcap-devel-2.0.8-46.1
libtiff-3.8.2-7.el5
libtool-1.5.22-6.1
libusb-0.1.12-5.1
libusb-devel-0.1.12-5.1
libuser-0.54.7-2.el5.2
libuser-devel-0.54.7-2.el5.2
libutempter-1.1.4-3.fc6
libvolume_id-095-14.9.el5
libvorbis-1.1.2-3.el5.0
libvorbis-devel-1.1.2-3.el5.0
libwnck-2.16.0-4.fc6
libX11-1.0.3-8.0.1.el5
libXau-1.0.1-3.1
libXcursor-1.1.7-1.1
libXdmcp-1.0.1-2.1
libXext-1.0.1-2.1
libXfixes-4.0.1-2.1
libXft-2.1.10-1.1
libXi-1.0.1-3.1
libXinerama-1.0.1-2.1
libxml2-2.6.26-2.1.2.1
libxml2-devel-2.6.26-2.1.2.1
libxml2-python-2.6.26-2.1.2.1
libXrandr-1.1.1-3.1
libXrender-0.9.1-3.1
libXres-1.0.1-3.1
libxslt-1.1.17-2
libxslt-devel-1.1.17-2
libXt-1.0.2-3.1.fc6
libXxf86vm-1.0.1-3.1
lockdev-1.0.1-10
lockdev-devel-1.0.1-10
logrotate-3.7.4-8
logwatch-7.3-5
lsof-4.78-3
ltrace-0.5-6.45svn.fc6
lvm2-2.02.26-3.el5
lynx-2.8.5-28.1
m2crypto-0.16-6.el5.1
m4-1.4.5-3.el5.1
mailcap-2.1.23-1.fc6
mailx-8.1.1-44.2.2
make-3.81-1.1
MAKEDEV-3.23-1.2
man-1.6d-1.1
man-pages-2.39-10.el5
mcstrans-0.2.6-1.el5_1.1
mdadm-2.5.4-3.el5
mesa-libGL-6.5.1-7.5.el5
mgetty-1.1.33-9.fc6
microcode_ctl-1.17-1.42.el5
mingetty-1.07-5.2.2
mkbootdisk-1.5.3-2.1
mkinitrd-5.1.19.6-19
mktemp-1.5-23.2.2
mlocate-0.15-1.el5
module-init-tools-3.3-0.pre3.1.34.el5
mtools-3.9.10-2.fc6
mtr-0.71-3.1
mysql-5.0.22-2.2.el5_1.1
nano-1.3.12-1.1
nash-5.1.19.6-19
nasm-0.98.39-3.2.2
nc-1.84-10.fc6
ncurses-5.5-24.20060715
ncurses-devel-5.5-24.20060715
neon-0.25.5-5.1
net-tools-1.60-73
NetworkManager-0.6.4-6.el5
newt-0.52.2-9
newt-devel-0.52.2-9
nfs-utils-1.0.9-24.el5
nfs-utils-lib-1.0.8-7.2.z2
notification-daemon-0.3.5-8.el5
nscd-2.5-18.el5_1.1
nspr-4.6.5-3.el5
nss-3.11.7-1.3.el5.centos
nss_db-2.2-35.1
nss_ldap-253-5.el5
nss-tools-3.11.7-1.3.el5.centos
ntsysv-1.3.30.1-1
numactl-0.9.8-2.el5
oddjob-0.27-7
oddjob-libs-0.27-7
openldap-2.3.27-8.el5_1.3
openldap-devel-2.3.27-8.el5_1.3
openssh-4.3p2-24.el5
openssh-clients-4.3p2-24.el5
openssh-server-4.3p2-24.el5
openssl-0.9.8b-8.3.el5_0.2
openssl-devel-0.9.8b-8.3.el5_0.2
oprofile-0.9.2-6.el5
ORBit2-2.14.3-4.el5
pam-0.99.6.2-3.26.el5
pam_ccreds-3-5
pam-devel-0.99.6.2-3.26.el5
pam_krb5-2.2.14-1
pam_passwdqc-1.0.2-1.2.2
pam_pkcs11-0.5.3-23
pam_smb-1.1.7-7.2.1
pango-1.14.9-3.el5.centos
paps-0.6.6-17.el5
parted-1.8.1-12.el5
passwd-0.73-1
patch-2.5.4-29.2.2
patchutils-0.2.31-2.2.2
pax-3.4-1.2.2
pciutils-2.2.3-4
pciutils-devel-2.2.3-4
pcre-6.6-2.el5_1.7
pcsc-lite-1.3.1-7
pcsc-lite-devel-1.3.1-7
pcsc-lite-libs-1.3.1-7
perl-5.8.8-10.el5_0.2
perl-Compress-Zlib-1.42-1.fc6
perl-Convert-ASN1-0.20-1.1
perl-Crypt-SSLeay-0.51-11.el5
perl-DateManip-5.44-1.2.1
perl-DBI-1.52-1.fc6
perl-HTML-Parser-3.55-1.fc6
perl-HTML-Tagset-3.10-2.1.1
perl-IO-Socket-SSL-1.01-1.fc6
perl-LDAP-0.33-3.fc6
perl-libwww-perl-5.805-1.1.1
perl-libxml-perl-0.08-1.2.1
perl-Net-SSLeay-1.30-4.fc6
perl-String-CRC32-1.4-2.fc6
perl-URI-1.35-3
perl-XML-Dumper-0.81-2.fc6
perl-XML-Grove-0.46alpha-29.1.1
perl-XML-NamespaceSupport-1.09-1.2.1
perl-XML-Parser-2.34-6.1.2.2.1
perl-XML-SAX-0.14-5
perl-XML-Twig-3.26-1.fc6
pfmon-3.2-0.060926.4.el5
pinfo-0.6.9-1.fc6
pkgconfig-0.21-1.fc6
pkinit-nss-0.7.3-1.el5
pm-utils-0.99.3-6.el5.centos.17
policycoreutils-1.33.12-12.el5
popt-1.10.2-47.el5
portmap-4.0-65.2.2.1
postgresql-libs-8.1.11-1.el5_1.1
ppp-2.4.4-1.el5
prelink-0.3.9-2.1
procmail-3.22-17.1.el5.centos
procps-3.2.7-8.1.el5
psacct-6.3.2-41.1
psmisc-22.2-5
pstack-1.2-7.2.2
pycairo-1.2.0-1.1
pygobject2-2.12.1-5.el5
pygtk2-2.10.1-8.el5
pygtk2-libglade-2.10.1-8.el5
python-2.4.3-19.el5
python-devel-2.4.3-19.el5
python-elementtree-1.2.6-5
python-ldap-2.2.0-2.1
python-numeric-23.7-2.2.2
python-sqlite-1.1.7-1.2.1
python-urlgrabber-3.1.0-2
quota-3.13-1.2.3.2.el5
rcs-5.7-30.1
rdate-1.4-6
rdist-6.1.5-44
readahead-1.3-7.el5
readline-5.1-1.1
readline-devel-5.1-1.1
redhat-logos-4.9.99-8.el5.centos
redhat-lsb-3.1-12.3.EL.el5.centos
redhat-menus-6.7.8-2.el5
redhat-rpm-config-8.0.45-22.el5.centos
rhpl-0.194.1-1
rmt-0.4b41-2.fc6
rng-utils-2.0-1.14.1.fc6
rootfiles-8.1-1.1.1
rpm-4.4.2-47.el5
rpm-build-4.4.2-47.el5
rpm-devel-4.4.2-47.el5
rpm-libs-4.4.2-47.el5
rpm-python-4.4.2-47.el5
rp-pppoe-3.5-32.1
rsh-0.17-38.el5
rsync-2.6.8-3.1
sed-4.1.5-5.fc6
selinux-policy-2.4.6-106.el5_1.3
selinux-policy-targeted-2.4.6-106.el5_1.3
sendmail-8.13.8-2.el5
sendmail-cf-8.13.8-2.el5
setarch-2.0-1.1
setools-3.0-3.el5
setserial-2.17-19.2.2
setup-2.5.58-1.el5
setuptool-1.19.2-1.el5.centos
shadow-utils-4.0.17-12.el5
slang-2.0.6-4.el5
slang-devel-2.0.6-4.el5
sos-1.7-9.1.el5
specspo-13-1.el5.centos
splint-3.1.1-16.el5
sqlite-3.3.6-2
sqlite-devel-3.3.6-2
startup-notification-0.8-4.1
strace-4.5.16-1.el5.1
stunnel-4.15-2
subversion-1.4.2-2.el5
sudo-1.6.8p12-10
swig-1.3.29-2.el5
symlinks-1.2-24.2.2
sysfsutils-2.0.0-6
sysklogd-1.4.1-40.el5
syslinux-3.11-4
system-config-securitylevel-1.6.29.1-1.el5
system-config-securitylevel-tui-1.6.29.1-1.el5
systemtap-0.5.14-1.el5
systemtap-runtime-0.5.14-1.el5
SysVinit-2.86-14
talk-0.17-29.2.2
tar-1.15.1-23.0.1.el5
tcl-8.4.13-3.fc6
tcpdump-3.9.4-11.el5
tcp_wrappers-7.6-40.4.el5
tcsh-6.14-12.el5
telnet-0.17-39.el5
termcap-5.5-1.20060701.1
texinfo-4.8-14.el5
time-1.7-27.2.2
tmpwatch-2.9.7-1.1.el5.1
traceroute-2.0.1-2.el5
tree-1.5.0-4
tzdata-2007k-2.el5
udev-095-14.9.el5
unifdef-1.171-5.fc6
unix2dos-2.2-26.2.2
unzip-5.52-2.2.1
usbutils-0.71-2.1
usermode-1.88-3.el5
util-linux-2.13-0.45.el5_1.1
valgrind-3.2.1-6.el5
vconfig-1.9-2.1
vim-common-7.0.109-3.el5.3
vim-enhanced-7.0.109-3.el5.3
vim-minimal-7.0.109-3.el5.3
vixie-cron-4.1-72.el5
vsftpd-2.0.5-10.el5
wget-1.10.2-7.el5
which-2.16-7
wireless-tools-28-2.el5
words-3.0-9
wpa_supplicant-0.4.8-10.1.fc6
xen-ukrnl-3.0.4-12
xen-umods-3.0.4-12
xinetd-2.3.14-10.el5
xmlsec1-1.2.9-8.1
xmlsec1-devel-1.2.9-8.1
xorg-x11-filesystem-7.1-2.fc6
ypbind-1.19-8.el5
yp-tools-2.9-0.1
yum-3.0.5-1.el5.centos.5
yum-metadata-parser-1.0-8.fc6
yum-updatesd-3.0.5-1.el5.centos.5
zip-2.31-1.2.2
zlib-1.2.3-3
zlib-devel-1.2.3-3
Contents of the release directory
Exported application image
-
VPS_CentOS51-1.0.0-1.tar.bz2
Application sources
-
VPS_CentOS51-1.0.0-1-src.tar.bz2: tar of all the scripts used to recreate the application
Tests
-
VPS_CentOS51-tst.tar.bz2: VPS_CentOS51 test scripts
Re-install Procedure
Here are the steps to create a VPS_CentOS51 application from scratch (

This requires maintainer access to the grid):
1. Install CentOS? 5.1 (32 bit) on native hardware - requires all 5 CDs - The following is a list of instructions for selecting the packages that were installed:
- Desktop - unselect everything
- Applications
- select Editors
- select Text-based Internet and only select lynx within the optional packages
- Development
- Select Development libraries and select ALL optional packages
- Select Development Tools and unselect the following: frysk, gcc-fortran, dogtail
- Servers
- Select Mail Server and include ONLY the following optional packages: cyrus-sasl, exim, sendmail
- Select Legacy Network and include ONLY the following optional packages: xinetd
- Select FTP and include NO optional packages
- Select DNS and include NO optional packages
- Select Server Configuration Tools and include ONLY the following package: system-config-security-level
- Base
- The default packages are fine
- System Tools - include ONLY the following optional packages: gnutls-utils, mt-st, samba-client, screen
2. After the installation is complete, login the the server and do:
rpm -e acpid amtu apmd bluez-gnome bluez-libs bluez-utils pcmciautils firstboot-tui conman \
cpuspeed irqbalance memtest86+ kudzu system-config-network-tui smartmontools
cp -a /{bin,boot,dev,etc,home,lib,lib64,media,opt,root,sbin,srv,usr,var} /mnt/
mkdir -p /mnt/{mnt,proc,sys,tmp,selinux}
chmod 755 /mnt/mnt /mnt/sys/
chmod 555 /mnt/proc/
chmod 1777 /mnt/tmp/
# install xen DomU kernel and modules. The actual package versions will depend on the applogic version.
# The example below is for applogic 2.2, use the rpms that come in the applogic install directory for the current release
rpm --root /mnt -Uv xen-ukrnl-3.0.4-12.i386.rpm xen-umods-3.0.4-12.i386.rpm
depmod -a -b /mnt 2.6.16.33-xenU
rpm --root /mnt/ --nodeps -e kernel
# Update packages
yum -y update --installroot /mnt
################################
# Upgrade glibc with xen-friendly version
################################
# Download glibc source rpms
wget http://mirror.centos.org/centos/5.1/updates/SRPMS/glibc-2.5-18.el5_1.1.src.rpm
# Install dependancies
yum -y install gd-devel libpng-devel audit-libs-devel
# Install source rpm
rpm -i glibc-2.5-18.el5_1.1.src.rpm
# Patch /usr/src/redhat/SPECS/glibc.spec:
cat << EOF | patch -p1 /usr/src/redhat/SPECS/glibc.spec
@@ -1031,7 +1031,7 @@
GCC=gcc
GXX=g++
%ifarch %{ix86}
+BuildFlags="-mno-tls-direct-seg-refs -march=%{_target_cpu} -mtune=generic"
-BuildFlags="-march=%{_target_cpu} -mtune=generic"
%endif
%ifarch i686
BuildFlags="-march=i686 -mtune=generic"
EOF
# Build rpms
cd /usr/src/redhat/SPECS/
rpmbuild -bb glibc.spec
# Install rpms
cd /usr/src/redhat/RPMS/i386/
rpm --root /mnt/ -Uv glibc-common-2.5-18.1.i386.rpm glibc-devel-2.5-18.1.i386.rpm \
glibc-2.5-18.1.i386.rpm glibc-headers-2.5-18.1.i386.rpm nscd-2.5-18.1.i386.rpm
################################
# Cleanup
chroot /mnt yum clean all
chroot /mnt rpm -v --rebuilddb
rm -f /mnt/root/anaconda-ks.cfg /mnt/root/install.log /mnt/root/install.log.syslog /mnt/root/.lesshst /mnt/root/.bash_history
rm -rf /mnt/boot/grub
find /mnt/var/log/ -type f -exec rm -f {} \;
touch /mnt/var/log/lastlog
rm -f /mnt/etc/sysconfig/network-scripts/ifcfg-eth*
rm -f /mnt/etc/sysconfig/network-scripts/route-eth*
echo "127.0.0.1 localhost.localdomain localhost" > /mnt/etc/hosts
touch /mnt/etc/applogic_network.conf
rm -f /mnt/etc/sysconfig/iptables
# Extract files used in the appliances
tar -xvf /path/to/VPS_CentOS51-1.0.0-1-src.tar.bz2 -C /mnt
# Setup services
chroot /mnt chkconfig --add appliance_netsetup
chroot /mnt chkconfig --add applogic_appliance
chroot /mnt chkconfig --add applogic_network
chroot /mnt chkconfig --add applogic_vma
chroot /mnt chkconfig restorecond off
chroot /mnt chkconfig mcstrans off
chroot /mnt chkconfig mdmonitor off
chroot /mnt chkconfig pcscd off
chroot /mnt chkconfig microcode_ctl off
chroot /mnt chkconfig lvm2-monitor off
chroot /mnt chkconfig readahead_early off
chroot /mnt chkconfig auditd off
chroot /mnt chkconfig autofs off
chroot /mnt chkconfig cups off
chroot /mnt chkconfig gpm off
chroot /mnt chkconfig yum-updatesd off
chroot /mnt chkconfig haldaemon off
chroot /mnt chkconfig readahead_later off
# Reset root password
chroot /mnt passwd --stdin root < /proc/sys/kernel/random/uuid
# Cleanup /tmp
rm -rf /mnt/tmp/*
# Prepare image
dd if=/dev/zero of=/tmp/VPS.boot.img bs=1k count=2000k
mkfs -t ext3 -F /tmp/VPS.boot.img
mount -o loop /tmp/VPS.boot.img /media/
mv /mnt/* /media/
umount /media/
gzip /tmp/VPS.boot.img
3. From the AppLogic Editor, create an application named VPS_CentOS51_r1, where
r1 is the desired revision number.
4. Insert and branch a LINUX appliance. Save and exit the application.
5. Download
mkvps.sh (included in
VPS_CentOS51-1.0.0-1-src.tar.bz2) script on the grid controller. Edit the VERSION, DOC_URL and APPNAME variables with the proper version and run the script. It will:
- rename the appliance to VPS
- setup boundry
- export the app to VPS_CentOS51_r1
6. Upload the image you created on the native hardware to the grid. Example:
scp -o 'StrictHostKeyChecking=no' /tmp/VPS.boot.img.gz
root@ev1.NOSPAM.3tera.net:/vol/_impex/VPS_CentOS51_r1/vol/
Theory of Operation
VPS_CentOS51 is a virtual private server application that is designed to be deployed as a standalone application.
Configuration
External network setup
VPS_CentOS51 has an external interface which allows the appliance to communicate with the outside world. On start, the script
/appliance/appliance_netsetup.sh configures the external interface, assigning the
primary_ip and
secondary_ip (if one is specified). This script also sets the netmask and gateway, as well as setting the DNS servers.
User and passwords
The root password and the user name and password are setup through the
/appliance/change_pwd script on the initial boot of VPS_CentOS51 and when the
/appliance/passwd.stamp file is missing. This script is invoked by the
/appliance/appliance.sh script.
In order to update the
user,
user_pw, or
root_pw properties and have those changes take affect, the
/appliance/passwd.stamp file must be deleted prior to restarting VPS_CentOS51.
Log Files
VPS_CentOS51 does not create any additional logs aside from the standard syslog files.
Important Notes
None
--
NetClime - 31 Mar 2008