Hi Tim,
Thanks for your reply. I thought it was network trouble too at first. So I checked
connectivity to the resources I was attempting to use like so:
I can wget the url I am attempting to use:
[root@LCENT02:~] #wget
http://mirror.trouble-free.net/centos/5.6/os/x86_64/images/
--2011-06-15 08:00:48--
http://mirror.trouble-free.net/centos/5.6/os/x86_64/images/
Resolving mirror.trouble-free.net... 66.45.230.130
Connecting to mirror.trouble-free.net|66.45.230.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'
[ <=>
] 3,050 --.-K/s in 0s
2011-06-15 08:00:49 (97.0 MB/s) - `index.html' saved [3050]
And I can mount and list the NFS directory:
[root@LCENT02:~] #mount 192.168.1.250:/mnt/DVD /mnt/DVD
[root@LCENT02:~] #ls /mnt/DVD
CentOS RELEASE-NOTES-cs RELEASE-NOTES-en_US RELEASE-NOTES-ja
RELEASE-NOTES-ro
EULA RELEASE-NOTES-cs.html RELEASE-NOTES-en_US.html RELEASE-NOTES-ja.html
RELEASE-NOTES-ro.html
GPL RELEASE-NOTES-de RELEASE-NOTES-es RELEASE-NOTES-nl
repodata
images RELEASE-NOTES-de.html RELEASE-NOTES-es.html RELEASE-NOTES-nl.html
RPM-GPG-KEY-beta
isolinux RELEASE-NOTES-en RELEASE-NOTES-fr RELEASE-NOTES-pt_BR
RPM-GPG-KEY-CentOS-5
NOTES RELEASE-NOTES-en.html RELEASE-NOTES-fr.html RELEASE-NOTES-pt_BR.html
TRANS.TBL
So what I've done is edit the profile to use a different kickstart that I remember
having success with in the past. It works! So the problem is definitely with the ks file.
However I don't fully get the snippet idea yet that the working answer file uses
(working on it!) and I would prefer to use my original ks until I do.
Here is the working answer file:
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
text
# Firewall configuration
firewall --enabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Use network installation
url --url=$tree
# If any cobbler repo definitions were referenced in the kickstart profile, include them
here.
$yum_repo_stanza
# Network information
$SNIPPET('network_config')
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $default_password_crypted
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System timezone
timezone America/New_York
# Install OS instead of upgrade
install
# Clear the Master Boot Record
zerombr
# Allow anaconda to partition the system as needed
autopart
%pre
$SNIPPET('log_ks_pre')
$kickstart_start
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%packages
$SNIPPET('func_install_if_enabled')
%post
$SNIPPET('log_ks_post')
# Start yum configuration
$yum_config_stanza
# End yum configuration
$SNIPPET('post_install_kernel_options')
$SNIPPET('post_install_network_config')
$SNIPPET('func_register_if_enabled')
$SNIPPET('download_config_files')
$SNIPPET('koan_environment')
$SNIPPET('redhat_register')
$SNIPPET('cobbler_register')
# Enable post-install boot notification
$SNIPPET('post_anamon')
# Start final steps
$kickstart_done
# End final steps
And here is the one I would like to get working:
# Kickstart file automatically generated by anaconda.
install
keyboard us
## use mirror to install
#url --url
http://mirror.trouble-free.net/centos/5.6/os/x86_64/images/
# Use NFS installation media
nfs --server=192.168.1.250 --dir=/mnt/DVD
## system language
lang en_US.UTF-8
## network configuration
network --device eth0 --bootproto dhcp --hostname snjhnew
## root password
rootpw --iscrypted $default_password_crypted
## firewall
firewall --enabled --port=22:tcp,80:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone America/New_York
## include yum repos
$yum_repo_stanza
## partitioning experiment
clearpart --all
## auto-partitioning
#autopart
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
part /boot --fstype ext3 --ondisk=xvda --size 300
part / --fstype ext3 --ondisk=xvda --size 25000
part swap --size 2048 --ondisk=xvda
part /var --fstype ext3 --ondisk=xvda --size 2000
part /tmp --fstype ext3 --ondisk=xvda --size 2000
part /scratch --fstype ext3 --ondisk=xvda --size 1 --grow
%post
%packages
@base
@core
@editors
@legacy-network-server
@mail-server
@network-server
@server-cfg
@text-internet
@web-server
@Virtualization
koan
puppet
keyutils
trousers
fipscheck
device-mapper-multipath
One thing I don't understand with the working kickstart file is where it is getting
the url --url=$tree value where it is apparently getting the install files from.
Thanks in advance for your help!
Tim
----- Original Message -----
From: "Tim Tassinari" <tptass(a)yahoo.com>
To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Cc: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Sent: Wednesday, June 15, 2011 7:28:01 AM
Subject: Re: install url trouble
Tim,
When I've seen this in the past it is usually because the network for the machine
being kickstarted is either not setup or incorrect.
I'd verify that the network information is correct and utilizing it without any routes
that you can get to these media locations.
-tim
On Jun 14, 2011, at 11:33 PM, Tim Dunphy <bluethundr(a)jokefire.com> wrote:
hello list!
I am having trouble with the install url portion of the kickstart file. The ks was
working in the recent past and honestly I'm not sure what may have changed to break
the darn thing.
First is the mirror url I am attempting to use:
## use mirror to install
url --url
http://mirror.trouble-free.net/centos/5.6/os/x86_64/
Now if you pump that url into your browser you should see a viable installer location.
But this is what happens in the installer:
Welcome to CentOS
+-----------------+ HTTP Setup +------------------+
| |
| Please enter the following information: |
| |
| o the name or IP number of your Web server |
| o the directory on that server containing |
| CentOS for your architecture |
| |
| Web site name: mirror.trouble-free.net_ |
| CentOS directory: /centos/5.6/os/x86_64/__ |
| |
| +----+ +------+ |
| | OK | | Back | |
| +----+ +------+ |
| |
| |
+-------------------------------------------------+
<Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next
screen
Next I tried the NFS media I have used in the past without kickstart.
# Use NFS installation media
nfs --server=192.168.1.250 --dir=/mnt/DVD
Now with this I can type the appropriate command on the command line and have it mount:
[root@LCENT03:~] #mount 192.168.1.250:/mnt/DVD /mnt/DVD
[root@LCENT03:~] #cd /mnt/DVD
[root@LCENT03:/mnt/DVD] #ls
CentOS RELEASE-NOTES-cs RELEASE-NOTES-en_US RELEASE-NOTES-ja
RELEASE-NOTES-ro
EULA RELEASE-NOTES-cs.html RELEASE-NOTES-en_US.html RELEASE-NOTES-ja.html
RELEASE-NOTES-ro.html
GPL RELEASE-NOTES-de RELEASE-NOTES-es RELEASE-NOTES-nl
repodata
images RELEASE-NOTES-de.html RELEASE-NOTES-es.html RELEASE-NOTES-nl.html
RPM-GPG-KEY-beta
isolinux RELEASE-NOTES-en RELEASE-NOTES-fr RELEASE-NOTES-pt_BR
RPM-GPG-KEY-CentOS-5
NOTES RELEASE-NOTES-en.html RELEASE-NOTES-fr.html RELEASE-NOTES-pt_BR.html
TRANS.TBL
But in the installer this is what happens:
Welcome to CentOS
+----------------------+ NFS Setup +----------------------+
| |
| Please enter the following information: |
| |
| o the name or IP number of your NFS server |
| o the directory on that server containing |
| CentOS for your architecture |
| o optionally, parameters for the NFS mount |
| |
| NFS server name: 192.168.1.250___________ |
| CentOS directory: /mnt/DVD________________ |
| NFS mount options (optional): ________________________ |
| |
| +----+ +------+ |
| | OK | | Back | |
| +----+ +------+ |
| |
| |
+---------------------------------------------------------+
<Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next
screen
I'd really appreciate it if a fresh set of eyes could help spot the problem and
possibly posit a solution.
Thanks!
tim
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler