I set up cobbler on bootserver according to <a href="http://et.redhat.com/page/Cobbler_Import" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">import procedure</a><br><br>Distro: centos-5<br><br>I
modified the kickstart file <below> and edited the cobbler
settings files <below> when the `cobbler import`-generated
settings files caused problems.
<br><br>##############<br><br>/var/lib/cobbler/settings<br><br>##############<br><br>---<br>bootloaders:<br> ia64: /var/lib/cobbler/elilo-3.6-ia64.efi<br> standard: /usr/lib/syslinux/pxelinux.0<br>default_kickstart: /etc/cobbler/default.ks
<br>dhcpd_bin: /usr/sbin/dhcpd<br>dhcpd_conf: /etc/dhcpd.conf<br>httpd_bin: /usr/sbin/httpd<br>kernel_options:<br> ksdevice: eth0<br> lang: ' '<br> text: ~<br>koan_path: ''<br>manage_dhcp: 1<br>minimize_syncs: 1
<br>next_server: <cobbler hostname><br>server: <cobbler hostname><br>syslog_port: 25150<br>tftpboot: /tftpboot<br>tftpd_bin: /usr/sbin/in.tftpd<br>tftpd_conf: /etc/xinetd.d/tftp<br>webdir: /var/www/cobbler<br>
yum_core_mirror_from_server: 1<br><br>##############<br><br>/var/lib/cobbler/distros<br><br>##############<br>-<br> arch: x86_64<br> breed: redhat<br> initrd: /var/www/cobbler/ks_mirror<div id="mb_0">/centos-5/images/xen/initrd.img
<br> kernel: /var/www/cobbler/ks_mirror/centos-5/images/xen/vmlinuz<br> kernel_options: {}<br> ks_meta: {}<br> name: centos-5-xen<br> source_<span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">
repo</span>s:<br> -<br> - 'http://<cobbler hostname>/cobbler/ks_mirror/config/centos-5-xen-0.<span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">
repo</span>'<br> - 'http://<cobbler hostname>/cobbler/ks_mirror/centos-5'<br>-<br> ... additional non-xen centos-5 distro<br><br>###############<br><br>/var/lib/cobbler/profiles<br><br>###############
<br><br>---<br>-<br> distro: centos-5-xen<br> kernel_options: {}<br> kickstart: /etc/cobbler/centos-5-xen.ks<br> ks_meta:<br> test_boot_server: <cobbler hostname><br> name: testing-centos-5-xen
<br> <span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">repo</span>s: []<br> virt_file_size: 36<br> virt_paravirt: True<br> virt_ram: 2048
<br>-<br> ... additional non-xen centos-5 profiles<br><br>###############<br><br>/var/lib/cobbler/systems<br><br>###############<br><br>---<br>-<br> kernel_options: {}<br> ks_meta:<br> test_gateway: '<my gw>'
<br> test_hostname: <my hn><br> test_ip: '<my ip>'<br> test_mac_address: '<my mac>'<br> test_netmask: '<my nm>'<br> test_ns: '<my ns>'
<br> name: '<my mac>'<br> netboot_enabled: 1<br> profile: testing-centos-5-xen<br> pxe_address: '<my ip>'<br>-<br> ...etc<br><br>###############<br><br>/etc/cobbler/centos-5-xen.ks
<br><br>###############<br><br>#Generated by Kickstart Configurator<br>#platform=x86, AMD64, or Intel EM64T<br><br>#System language<br>lang en_US<br>#Language modules to install<br>langsupport en_US<br>#System keyboard<br>
keyboard us<br>#System mouse<br>mouse<br>#Sytem timezone<br># timezone --utc America/New_York<br>timezone --utc GMT<br>#Root password<br>rootpw --iscrypted <some encrypted passwd><br>#Reboot after installation<br>reboot
<br>#Use text mode install<br>text<br>#Install OS instead of upgrade<br>install<br>#Use HTTP-based installation Media<br>url --url http://$test_boot_server/cobbler/ks_mirror/centos-5<br># cobbler should overwrite the preceding anyway -- it doesn't; hence the need for this ks_meta item in cobbler distro addition
<br><br>#System bootloader configuration<br>## bootloader --location=mbr <br>bootloader --location=mbr<br>#Clear the Master Boot Record<br>zerombr yes<br>#Partition clearing information<br>clearpart --all --initlabel <br>
#Disk partitioning information<br>part swap --size 2048<br>part /var --size 2048<br>part /tmp --size 2048<br>part / --fstype ext3 --size 1 --grow<br><br>#System authorization infomation<br>auth --useshadow --enablemd5
<br>
#Network information<br>network --bootproto static --ip $test_ip --netmask $test_netmask --gateway $test<br>_gateway --nameserver $test_ns --hostname $test_hostname --device eth0 <br><br>#Firewall configuration<br>firewall --disabled
<br>#Do not configure XWindows<br>skipx<br><br>#Disable SELinux<br>selinux --disabled<br><br>#Package install information<br>%packages --resolvedeps<br>@ development-libs<br>@ development-tools<br>@ editors<br>@ legacy-software-development
<br>@ legacy-software-support<br>@ miscallvars<br>@ mysql<br>@ system-tools<br>@ text-internet<br>@ base-x<br>@ mysql<br><br>###################<br><br>In sum, after installing koan (again following the instructions from the "import DVD page") and running
<br><br> `koan --virt --server=<cobbler server hostname> --system=<mac address of proposed virtual host>`<br><br>I
received some errors and corrected them in turn, by modifying either my
kickstart file or the cobbler settings (distros, profiles, systems)
files.
<br><br>There is one error, however, which perplexes me. I can load
the centos-5-xen kernel and initrd files. DHCP appears cool. Anaconda
starts and then...<br><br>##########<br><br>Unable to read package metadata. This may be due to a missing |
<br> | <span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">repo</span>data directory. Please ensure that your install tree has |
<br> | been correctly generated. Cannot open/read <span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">repo</span>md.xml file |
<br> | for <span style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">repo</span>sitory: anaconda-base-200704101946.x86_64<br><br>##########
<br><br><br>This bothers me because in my kickstart file (which I verified the ks_meta args in /var/www/cobbler/kickstarts_sys/<my mac>/ks.cfg) clearly has the correct 'url --url ...' line which points to the repository.
<br><br>Any thoughts?<br><br>I appreciate your time.<br><br>Sincerely,<br><br> - Adam.<br></div>