Still having problems with anaconda crashing because the filesystem is
mounted read only.
Tried changing the logging command in the kickstart to:
logging --level=debug --host=172.20.0.22
This resulted in messages going to the Ctrl-Alt-F3 virtual console to go to
/var/log/messages on the cobbler server.
tried using port=25150, but that didn't seem to do anything
in /var/log/cobbler on the cobbler server
I have cobbler.log and install.log and empty directories for kicklog and
syslog
how do I get logfiles recorded in kicklog and syslog
Think what I'm really looking for is how to capture the messages that ran
off the top of the screen on the Ctrl-Alt-F4 console
It is reporting lots of ioerrors on xvda
Here are the relevant parts of the kickstart:
bootloader --location=mbr --driveorder=xvda
clearpart --all --initlabel --drives=xvda
part /boot --bytes-per-inode=4096 --fstype="ext2" --ondisk=xvda
--size=100
part swap --bytes-per-inode=4096 --fstype="swap" --ondisk=xvda
--recommended
part / --bytes-per-inode=4096 --fstype="ext3" --ondisk=xvda --size=1
--grow
And here's the relevant output from cobber report
profile : gtm
parent : cust001
dhcp tag : <<inherit>>
kernel options : <<inherit>>
post kernel options : {}
kickstart : /var/lib/cobbler/kickstarts/gtm.ks
ks metadata : <<inherit>>
owners : ['admin']
repos : <<inherit>>
server : <<inherit>>
virt bridge : <<inherit>>
virt cpus : <<inherit>>
virt file size : 10
virt path : dat-vg
virt ram : 1024
virt type : <<inherit>>
profile : cust001
parent : RHEL5-xen-x86_64
dhcp tag : <<inherit>>
kernel options : <<inherit>>
post kernel options : {}
kickstart : <<inherit>>
ks metadata : <<inherit>>
owners : ['admin']
repos : <<inherit>>
server : <<inherit>>
virt bridge : <<inherit>>
virt cpus : <<inherit>>
virt file size : <<inherit>>
virt path : <<inherit>>
virt ram : <<inherit>>
virt type : xenpv
system : gtm-00
profile : gtm
image :
kernel options : {}
kernel options post : {}
kickstart : <<inherit>>
ks metadata : {}
netboot enabled? : True
owners : ['admin']
server : <<inherit>>
virt cpus : <<inherit>>
virt file size : <<inherit>>
virt path : <<inherit>>
virt ram : <<inherit>>
virt type : <<inherit>>
interface : intf0
mac address : 00:50:56:01:00:01
ip address : 172.20.0.201
hostname :
gateway :
subnet :
virt bridge :
dhcp tag :
We seem to have created the correct logical volume:
[root@hollywood kickstarts]# lvdisplay dat-vg/gtm-00-disk0
--- Logical volume ---
LV Name /dev/dat-vg/gtm-00-disk0
VG Name dat-vg
LV UUID gUDfR8-6BkI-eemF-d5f5-ds0e-8cm5-WegeYq
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
Doing a fdisk -l on the Ctrl-Alt-F2 console
it appears to have been partitioned correctly
But it's mounted read-only
Can't cut an paste from the Ctrl-Alt-F2 console window.
Should I be using the anaconda command
logvol instead of part
On Fri, Sep 12, 2008 at 3:07 PM, drew einhorn <drew.einhorn(a)gmail.com>wrote:
On Fri, Sep 12, 2008 at 1:46 PM, Michael DeHaan <mdehaan(a)redhat.com>wrote:
>
> Sounds like you are using dnsmasq for DHCP management, read this:
>
>
https://fedorahosted.org/pipermail/cobbler/2008-September/000680.html
>
>
Solved that problem.
I'm up and running with:
cobbler-1.2.4-1.el5
koan-1.2.0-1.el5
Now I can:
cobbler sync
cobbler check doesn't report any problems
neither does cobbler validateks
But I'm still fighting the same underlying problem I had before I started
troubleshooting.
For some reason anaconda is dying because it's trying to write to a
read-only filesystem.
I don't know why the file system is read only. Normally I'd did a little
deeper, before asking again.
But it may already too late you may have already left for the weekend.,
The following kickstart started on another platform and I working on
getting
it into shape for the new enviornment.
Right now I'm putting everything into a single logical volume under a xen
virtual machine.
# Install OS instead of upgrade
install
# Redhat Installation number
key dc7b728addf0bd72
# Use network installation
url --url=$tree
# Installation logging level
logging --level=debug
# Localization
#lang en_US
lang en_US.UTF-8
keyboard us
#platform=x86, AMD64, or Intel EM64T
# System authorization information
authconfig --enableshadow --enablemd5
# Encrypted root password
rootpw --iscrypted $1$tINggEpW$5Yo8dnyOuF5tyzHBhSHG30
# Firewall configuration
firewall --enabled --http --ssh --port=https:tcp
# SELinux configuration
selinux --enforcing
# text mode gives us less trouble
# and we don't have to figure out what's wrong with xconfig, etc.
skipx
# Mouse Configuration
# mouse generic3ps/2 --device psaux
# Text install
text
# Run the Setup Agent on first boot
firstboot --disable
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
# System timezone
timezone --isUtc America/Denver
# System bootloader configuration
bootloader --append="rhgb quiet" --location=mbr --driveorder=xvda
# Disk Partitioning
clearpart --all --initlabel --drives=xvda
#clearpart --all --initlabel --drives=xvdb
#clearpart --all --initlabel --drives=xvdc
#clearpart --all --initlabel --drives=xvdd
part /boot --bytes-per-inode=4096 --fstype="ext2" --ondisk=xvda --size=100
part swap --bytes-per-inode=4096 --fstype="swap" --ondisk=xvda
--recommended
part / --bytes-per-inode=4096 --fstype="ext3" --ondisk=xvda --size=1
--grow
#part /dat --bytes-per-inode=4096 --fstype="ext3" --ondisk=xvdb --size=1
--grow
#part /jrn --bytes-per-inode=4096 --fstype="ext3" --ondisk=xvdc --size=1
--grow
#part /img --bytes-per-inode=4096 --fstype="ext3" --ondisk=xvdd --size=1
--grow
# information on drives to be preserved on reinstall or share among VMs
# are created by cfengine after the kickstart is complete
# If any cobbler repo definitions were referenced in the kickstart profile,
# include them here.
$yum_repo_stanza
# minimal system
# think Kickstart Tips and Tricks has advice for this
# gotta go look
%packages --nobase
SNIPPET::fws-base
# gtm specific
@web-server
%pre
%post
# NEED to clean this up
# # 3rd Party repos
# $yum_config_stanza
# rm /etc/yum.repos.d/CentOS-Base.repo
# rm /etc/yum.repos.d/CentOS-Media.repo
# Current repo setup is a stopgap
#wget
http://172.20.0.22/repo.config/base.repo
#wget
http://172.20.0.22/repo.config/updates.repo
#wget
http://172.20.0.22/repo.config/CentOS-fasttrack.repo
wget
http://172.20.0.22/repo.config/extras.repo
yum -y yum-priorities yum-fastestmirror
#wget
http://172.20.0.22/repo.config/addons.repo
#wget
http://172.20.0.22/repo.config/atrpms.repo
#wget
http://172.20.0.22/repo.config/CentOS-csgfs.repo
#wget
http://172.20.0.22/repo.config/centosplus.repo
#wget
http://172.20.0.22/repo.config/contrib.repo
#wget
http://172.20.0.22/repo.config/dag.repo
#wget
http://172.20.0.22/repo.config/dries.repo
wget
http://172.20.0.22/repo.config/epel.repo
#wget
http://172.20.0.22/repo.config/kbs-CentOS-Extras.repo
#wget
http://172.20.0.22/repo.config/kbs-CentOS-Misc.repo
#wget
http://172.20.0.22/repo.config/kbs-CentOS-Misc-Testing.repo
wget
http://172.20.0.22/repo.config/rpmforge.repo
yum -y update
# basic 3rd party
yum -y install koan
# ctl 3rd party
yum -y install cfengine
# ETH=`grep DEVICE /tmp/netinfo | cut -d = -f 2`
# IP=`ifconfig $ETH | grep "inet " | cut -d : -f 2 | cut -d " " -f
1`
# MAC=`ifconfig $ETH | grep HWaddr | sed 's/.*HWaddr //'`
### NEED this command to be executed on ctl, not on the box being
provisioned
# cobbler system add --name=$MAC --profile=ctl --pxe-address=$IP
# NEED bootstrap cfengine
$kickstart_done
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
--
Drew Einhorn