Thanks for the tips!
At some point I decided to put an infinite sleep(1) loop in the %POST
to earn some time in order to dive into the chroot environment under
Alt-F2 and experiment a bit.
No matter what I did I couldn't make the expect script to work. My
knowledge of expect is limited at best.
The original expct script was produced by autoexpect and it had this line:
spawn $env(SHELL)
which failed in chrooted env. I realized that the variable $SHELL is
empty so I replaced the line by:
spawn /bin/bash
but this didn't work either complaining that there are not enough
pseudo terminals exist.
I had more success with the second approach (thanks Iain!) using
inst_sge utility. But again there were several caveats. First it took
me a considerable amount of time to realize that the $HOSTNAME in
chrooted env is not set. inst_sge wouldn't complete properly when this
var is empty. In addition kernel's kernel.hostname had to be set too
via 'sysctl -w' too.
Even though the problem is solved I'm still puzzled with how to make
expect scripts work in kickstart.
On Fri, Sep 5, 2008 at 12:13 PM, Iain Morrison public.gmane.org> wrote:
Hi,
Can you not run the agent installation from the command line - this is
what we do
inst_sge -x -noremote -auto /n1/ge/6.1_U4/cXX-auto.conf
[We install the client using cfengine but it should weork in kickstart
as well.]
iain
----------------------------------------
Iain Morrison
IT Manager
MRC Epidemiology Unit
Institute of Metabolic Science
Box 285
Addenbrooke's Hospital
Hills Road
Cambridge
CB2 0QQ
Tel (01223) 769200
http://www.mrc-epid.cam.ac.uk/
I need to drive an interactive installation of execution daemon of
N1GE (Sun Grid Engine) as part of Kickstart installation. I have 20
new machines here waiting to be installed (followed by another 20), to
become execution nodes of an HPC cluster. The master/head node is
already installed and has N1GE master scheduler up and running,
waiting for execution nodes to join.
The installation of the exec daemon is not RPM based but bash-powered
wizard style of thing. I've prepared an expect script that supplies
all the answers (just a bunch of consecutive expect-send statements)
to the wizard and it works great when I run it by hand on freshly
installed exec node, but doesn't work when run as part of %POST. I
guess something is not right in pre-expect part of my %POST workflow.
Just wanted to verify that expect scripts work in general for other
people in their %POST sections.
On Fri, Sep 5, 2008 at 8:31 AM, John Summerfield
public.gmane.org> wrote:
If your answers will be the same, regardless of the machine, then one
would assume that the result is similar on each machine.
In the situation I had yesterday (installing Netbeans IDE, java GUI
installer) it was moumentally easier to install it once, tar.gz the
resulting directory and un-tar.gz it on to the machines in Kickstart.
Even if each install is slightly unique (e.g. includes the hostname in a
config file) I've always found it easier to do the above and then write a
script to edit the config file with the correct results.
--
Sam
I am new to installing virtual machines, and am trying to work through
examples in the RH virtualization guide, to set up paravirtualization on
a box on which I have the xen kernel loaded (and the virtualization
channel enabled).
The problem I am running into is the location of the installation files.
It appears that I cannot install from my install CDs, that I have to
have an ftp or http install location. I'd like the guest to be another
RH 5 distro. Where can I find, or how can I set up, an installation tree
to use to do this? This is very frustrating. I cannot find examples of
how to do it. I CAN find examples of fedora boot images on a fedora web
site, but nothing for RH 5?
Could someone point me in the right direction please?
---
Bill Tangren
U.S. Naval Observatory