VMware

Jonathan Marrott's VM Scripting Blog

A swell blog containing some of the scripts I have written for VM management.

6 Posts tagged with the install tag
0

DNS - Set Servers (Updated)

Posted by froboy Jan 18, 2008

Simple script to set DNS servers. This sets muplitle DNS servers while kickstart by default only sets one.

Set DNS servers using vimsh:
vimsh -n -e "/hostsvc/net/dns_set --dns-addresses=192.168.0.1,192.168.0.2 --dns-searchdomain=yourdomain.com"

Set DNS servers by manually creating resolv.conf:
cat > /etc/resolv.conf << EOF1

search yourdomain.com
nameserver 192.168.0.4
nameserver 192.168.0.6

EOF1

0 Comments Permalink
0

ESX Friendly Method:
Install IO:Tty -
1. Download Perl-IO-TTY from here
2. Copy to your host or execute from a shared location
3. Execute 'rpm -ivh perl-IO-Tty-1.07-1.el3.rf.i386.rpm'

Install Expect.pm -
1. Download Perl-Expect from here
2. Copy to your host or execute from a shared location
3. Execute 'rpm -ivh perl-Expect-1.21-1.el3.rf.noarch.rpm'

Pain-in-the-butt Method:
You can download these from http://sourceforge.net/projects/expectperl/

The installation itself is pretty simple. IO::Tty needs to be installed first. This installation does not add additional items to run in RAM.

Install IO:Tty -
1. Decompress file.
2. Browse to location of files.
3. Execute perl Makefile.PL
4. Execute make
5. Execute make install

Install Expect.pm -
1. Decompress file.
2. Browse to location of files.
3. Execute perl Makefile.PL
4. Execute make
5. Execute make install

0 Comments Permalink
1

VmPerl - Auto Install

Posted by froboy Sep 28, 2007

I hacked the installation script for VmPerl so it would auto-install with the defaults. Have fun!

1 Comments Permalink
0

TSM - Application Installation

Posted by froboy Sep 28, 2007

TSM v5.4.1.0 Installation
1. Execute: rpm -ivh TIVsm-API.i386.rpm
2. Execute: rpm -ivh TIVsm-BA.i386.rpm
3. Create/edit config files.

Configuration
The way I like to do it is to copy my config files from a static source and then edit them on the fly with a few replace commands. This facilitates kickstart deployment. I have included my sample config files below.

Commands to execute for tsm server and node replacement
sed -i.old -e 's/tcpserveraddr tsm1/tcpserveraddr tsm3/g' /opt/tivoli/tsm/client/ba/bin/dsm.sys
sed -i -e 's/nodename yourvm-bu/nodename vm01-bu/g' /opt/tivoli/tsm/client/ba/bin/dsm.sys

Included files:
dsm.sys - Base config file for TSM on ESX
dsm.opt - Base config file. Not typically used on ESX but included just to be safe.
inclexcl - Include/exclude file. This dynamically changes with my TSM backup script.

0 Comments Permalink
0

TSM - First Run Script

Posted by froboy Sep 28, 2007

When running TSM for the first time on ESX, you are prompted for a username and password. Here is a script to auto answer the first run questions. It assumes that the dsm.sys file exists and is correct. It also assumes that the node has been created on the TSM server.

I would recommend this script if you wish to auto-configure TSM during kickstart.

Requirements:
TSM Configured
perl module IO::Tty
perl module Expect.pm

0 Comments Permalink
2

TSM - Backup Script

Posted by froboy Sep 28, 2007

Here is a TSM backup Script that I automate on each of my servers. I actually run this off of a mount.

tsmex and tsmvm.pl should be in the same directory.

tsm is a cron job file that goes in /etc/cron.d. After copying execute the following statements:
chmod 0644 /etc/cron.d/*
service crond restart

2 Comments Permalink
Click to view froboy's profile Member since: Jun 26, 2006

A swell blog containing some of the scripts I have written for VM management.

View froboy's profile

Communities