niyaz chistee | 2 Apr 09:57
Picon

Re: Kernel panic while booting rhel4 via pxe

Okay now I tried one more thing. This time I installed vmware on the same machine on which my cobbler setup was. And I booted RHEL4 via PXE and it booted and got installed. But what is happening when I try to boot my Virtual machine from VMware which itself is installed on a separate machine with windows xp as host. I even have bridged virtual interface in vmware /dev/vmnet0 on both places but it works on the same machine on which cobbler is but not on the different machine with vmware.

Thanks
Regards
SysAdmin

On 4/1/07, niyaz chistee <prime.provogue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Well, finally I got to try my cobbler koan setup on a physical client and it worked with charm (had to adjust the kickstart a little to get a fully un-attended installation). So I configured two profiles now one helps in creating virtual machines on the same cobbler server and another one helps in creating new physical machines. But then also the problem mentioned earlier remains.
I am not able to install a new virtual machine via vmware. Do I need to create a new separate profile for vmware .

Thanks for all help.

Regards
SysAdmin


On 3/31/07, niyaz chistee <prime.provogue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks for the quick reply once again. I did append ramdisk_size=8192 or ramdisk_size=16438 but it didn't helped. Same error once again. One more thing to tell you is that I am trying to install the client via VMware in windows. Does this situation creates this error?

Thanks in advance.

Regards
SysAdmin

On 3/31/07, Dhawal Doshy < dhawal-4zuCc3F3HegJvtFkdXX2HpqQE7yCjDx5@public.gmane.org > wrote:
niyaz chistee wrote:
> Thanks for quick response. This is my cobbler --report:
> distro          : rhel4
> kernel          : /media/hda6/rhel4/images/pxeboot/vmlinuz
> initrd          : /media/hda6/rhel4/images/pxeboot/initrd.img
> kernel options  : {}
> architecture    : x86
> ks metadata     : {}
> breed           : redhat
>
> profile         : rhel4x
> distro          : rhel4
> kickstart       : /media/hda6/rhel4/ks.cfg
> kernel options  : {}
> ks metadata     : {}
> virt file size  : 5
> virt ram        : 512
> virt paravirt   : True
> repos           :
>
> And here is my /tftpboot/pxelinux.cfg/default:
>
> DEFAULT local
> PROMPT 1
> MENU TITLE Cobbler | http://cobbler.et.redhat.com
> TIMEOUT 200
> TOTALTIMEOUT 6000
> ONTIMEOUT local
>
> LABEL local
>         MENU LABEL (local)
>         MENU DEFAULT
>         LOCALBOOT 0
>
> LABEL rhel4x
>        kernel /images/rhel4/vmlinuz
>        MENU LABEL rhel4x
>        append ksdevice=eth0 lang= syslog= 192.168.1.45:25150
> <http://192.168.1.45:25150> text  initrd=/images/rhel4/initrd.img ks=
> http://192.168.1.45/cblr/kickstarts/rhel4x/ks.cfg

You do not appear to have a ramdisk_size=8192 OR ramdisk_size=16438 in
your 'append' line of '/tftpboot/pxelinux.cfg/default'. Maybe (just
maybe) that is the cause of the this problem..


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
https://www.redhat.com/mailman/listinfo/et-mgmt-tools



_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Vikas | 2 Apr 10:29
Picon

Possible bug in cobbler 0.4.5.3 on FC6

Here are the steps I followed:
$cobbler import --mirror=/rhel5 --name=C5

The directory /rhel5 has the contents of 6 discs of rhel in one directory.

This is the error I got:
- no comps file found: /var/www/cobbler/ks_mirror/C5/repodata/comps.xml
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
418, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
312, in import_tree
    return self.apply_args(args,commands,on_ok)
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
406, in apply_args
    on_ok()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
311, in <lambda>
    on_ok = lambda: go_import()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
304, in go_import
    self.temp_mirror_name)
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in
import_tree
    return importer.run()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 82, in run
    self.guess_kickstarts()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 139, in guess_kickstarts
    results = self.scan_rpm_filename(rpm)
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 186, in scan_rpm_filename
    major = int(major)
ValueError: invalid literal for int(): 5Server

Even though with this error:
[root <at> 69 ~]# koan --server=69.90.xxx.yyy --list-profile
listing defined profiles...
C5
C5-xen

The above output seems to be ok.

So here are my questions:
A. Why does the above mentioned error happen ?
B. Can this error be ignored ?

-----
Mortgage fir Virtualization Group http://www.mortgagefit.com
Vikas
vikas at mortgagefit dot com
niyaz chistee | 2 Apr 12:46
Picon

Re: Possible bug in cobbler 0.4.5.3 on FC6



On 4/2/07, Vikas <kedia.vikas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Here are the steps I followed:
$cobbler import --mirror=/rhel5 --name=C5

The directory /rhel5 has the contents of 6 discs of rhel in one directory.

This is the error I got:
- no comps file found: /var/www/cobbler/ks_mirror/C5/repodata/comps.xml
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
418, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
312, in import_tree
    return self.apply_args(args,commands,on_ok)
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
406, in apply_args
    on_ok()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
311, in <lambda>
    on_ok = lambda: go_import()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
304, in go_import
    self.temp_mirror_name)
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in
import_tree
    return importer.run()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 82, in run
    self.guess_kickstarts()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 139, in guess_kickstarts
    results = self.scan_rpm_filename(rpm)
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 186, in scan_rpm_filename
    major = int(major)
ValueError: invalid literal for int(): 5Server


Even though with this error:
[root <at> 69 ~]# koan --server=69.90.xxx.yyy --list-profile
listing defined profiles...
C5
C5-xen

The above output seems to be ok.

So here are my questions:
A. Why does the above mentioned error happen ?
B. Can this error be ignored ?

Yes the error can be ignored and you can continue with your setup. But I too also don't know the cause. If someone can through light on this error it would be very helpful. Regards. 

-----
Mortgage fir Virtualization Group http://www.mortgagefit.com
Vikas
vikas at mortgagefit dot com

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
niyaz chistee | 2 Apr 12:55
Picon

Re: Possible bug in cobbler 0.4.5.3 on FC6

Just to help you out. I did the same
cobbler import --mirro=/media/rhel4 --name=RH4 (/media/rhel4 holding my EL4 dvd)
and i found the same error as did you got
sent 1944177538 bytes  received 31594 bytes  7521118.50 bytes/sec
total size is 1943828388  speedup is 1.00
- creating new distro: RH4
- creating new profile: RH4
- running repo update on /var/www/cobbler/ks_mirror/RH4
- no comps file found: /var/www/cobbler/ks_mirror/RH4/repodata/comps.xml
- skipping rhel4 since profile isn't mirrored
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 418, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 312, in import_tree
    return self.apply_args(args,commands,on_ok)
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 406, in apply_args
    on_ok()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 311, in <lambda>
    on_ok = lambda: go_import()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 304, in go_import
    self.temp_mirror_name)
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in import_tree
    return importer.run()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 82, in run
    self.guess_kickstarts()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 139, in guess_kickstarts
    results = self.scan_rpm_filename(rpm)
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 186, in scan_rpm_filename
    major = int(major)
ValueError: invalid literal for int(): 4ES

My host OS is Redhat Enterprise Linux 5 Server.

Regards
SysAdmin

On 4/2/07, niyaz chistee < prime.provogue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:


On 4/2/07, Vikas <kedia.vikas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Here are the steps I followed:
$cobbler import --mirror=/rhel5 --name=C5

The directory /rhel5 has the contents of 6 discs of rhel in one directory.

This is the error I got:
- no comps file found: /var/www/cobbler/ks_mirror/C5/repodata/comps.xml
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
418, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
312, in import_tree
    return self.apply_args(args,commands,on_ok)
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
406, in apply_args
    on_ok()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
311, in <lambda>
    on_ok = lambda: go_import()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
304, in go_import
    self.temp_mirror_name)
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in
import_tree
    return importer.run()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 82, in run
    self.guess_kickstarts()
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 139, in guess_kickstarts
    results = self.scan_rpm_filename(rpm)
  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 186, in scan_rpm_filename
    major = int(major)
ValueError: invalid literal for int(): 5Server


Even though with this error:
[root <at> 69 ~]# koan --server=69.90.xxx.yyy --list-profile
listing defined profiles...
C5
C5-xen

The above output seems to be ok.

So here are my questions:
A. Why does the above mentioned error happen ?
B. Can this error be ignored ?

Yes the error can be ignored and you can continue with your setup. But I too also don't know the cause. If someone can through light on this error it would be very helpful. Regards. 

-----
Mortgage fir Virtualization Group http://www.mortgagefit.com
Vikas
vikas at mortgagefit dot com

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Michael DeHaan | 2 Apr 16:23
Picon
Favicon

Re: error while running cobbler import

niyaz chistee wrote:
> Hi,
>
> I am trying to configure cobbler to configure my xen virtual machines. 
> I tried to import the installation tree of rhel5 from cobbler using 
> the command:
>
>  cobbler import --mirror=/rhel5/Dump/ --mirror-name=rhel5

... snip ...

Apparently the version detection code needs some tweaking to work well 
with RHEL5 trees -- I primarily testing against Fedora.    

It looks like everything else went ok, so the only thing you might want 
to do is change the kickstart entry in /var/lib/cobbler/profiles to some 
other file, if /etc/cobbler/default.ks isn't good enough -- or you could 
just change
that file.

I'll put some more RHEL5 import testing on the list of things to 
investigate for this week.

--Michael

> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@...
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Michael DeHaan | 2 Apr 16:27
Picon
Favicon

Re: Re: error while running cobbler import

niyaz chistee wrote:
> Hello,
>
> Finally I got rid of the dhcp problem. 

I'm glad you got your problems figured out.   As you can guess, the 
balloon message was about you not having enough RAM.    Xen isn't 
completely obvious about what goes wrong when, this is true :)

> But I had to stop my dummy0 virtual network interface in dom0 host and 
> have to bridge my xenbr1 to eth1 (physical wireless device on dom0 
> host). The installation started without asking me anything (that was 
> real great un-attended installation).
> The only thing it asked was when it was about to create the 
> partitions. It asked me whether it should format the whole disk or 
> not. When I pressed Yes it continued. If I want it to not ask this 
> thing what should I do. And one more thing after installation it stop 
> and asked me to press reboot button. 
There are some sample kickstarts in /etc/cobbler that you could use, 
particularly one that is tailored to creating really small Xen guests.  

> If I want it to automatically reboot then what should I do. I guess 
> something %post directive.

reboot goes in the main section of the kickstart, not post.   For an 
example, see  /etc/cobbler/kickstart_fc6_domU.ks

> Please help. And one more thing, I had to made huge modifications in 
> my kickstart file. So I am posting it once more. Hope it help you guys 
> in getting me:
>
> install
> nfs --server=192.168.1.5 <http://192.168.1.5> --dir=/rhel5/Dump
> key <HIDDEN>
> lang en_US.UTF-8
> network --bootproto=bootp --device=eth0 --onboot=on
> rootpw --iscrypted $1$VwD9nalr$06K0bUawzanX72gNk0es91
> firewall --disabled
> authconfig --enableshadow --enablemd5
> selinux --disabled
> timezone --utc Asia/Calcutta
> bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
> # The following is the partition information you requested
> # Note that any partitions you deleted are not expressed
> # here so unless you clear all partitions first, this is
> # not guaranteed to work
> clearpart --all --drives=xvda
> part /boot --fstype ext3 --size=100 --ondisk=xvda
> part pv.2 --size=0 --grow --ondisk=xvda
> volgroup VolGroup00 --pesize=32768 pv.2
> logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 
> --grow
> logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 
> --size=144 --grow --maxsize=288
>
> %packages
> @admin-tools
> @base
> @core
>
>
> On 3/31/07, *niyaz chistee* <prime.provogue@... 
> <mailto:prime.provogue@...> > wrote:
>
>     Hello guys,
>
>     I somehow overcome the balloon problem. What I did was I delete
>     the system and profile by
>     cobbler system remove --name=<system_mac>
>     cobbler profile remove --name=<profile_name>
>
>     And I added again the profile but this time I gave
>     --virt-ram-size=256 (as this was where koan reported warning
>     earlier) and then I created system  as I did previously.
>     Then I ran koan once again (as I did earlier) but now a new
>     problem. It starts the virtual machine and ask me to connect to it
>     via xm console. I did so but it hangs during acquiring ip address
>     from dhcp. After sometime it ask me to give ip address manually I
>     do so ( 10.1.1.45/255.255.255.0 <http://10.1.1.45/255.255.255.0>
>     gateway 10.1.1.1 <http://10.1.1.1>) but then it reports error in
>     getting nfs:/10.1.1.1/rhel5/Dump/ks.cfg. I have figured out the
>     problem. But don't know how to resolve it.
>     It is the same as I mentioned earlier. I have two network
>     interfaces. One is eth1 (wireless device) and other is dummy0
>     (virtual network interface). All the communication of xen vm's
>     with the xen dom0 is done via a bridge xenbr1 which is mapped to
>     dummy0. And in the dhcpd.conf there is nothing for the subnet
>     10.1.1.0 <http://10.1.1.0> and if I do manually (as of now cobbler
>     is managing my dhcpd.con) it reports error and doesn't start dhcpd
>     service. The error is logged into /var/log/messages and it is
>     shown below:
>
>     Mar 31 10:05:01 server dhcpd: Internet Systems Consortium DHCP
>     Server V3.0.5-RedHat
>     Mar 31 10:05:01 server dhcpd: Copyright 2004-2006 Internet Systems
>     Consortium.
>     Mar 31 10:05:01 server dhcpd: All rights reserved.
>     Mar 31 10:05:01 server dhcpd: For info, please visit
>     http://www.isc.org/sw/dhcp/
>     Mar 31 10:05:01 server dhcpd: Wrote 0 deleted host decls to leases
>     file.
>     Mar 31 10:05:01 server dhcpd: Wrote 0 new dynamic host decls to
>     leases file.
>     Mar 31 10:05:01 server dhcpd: Wrote 0 leases to leases file.
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: No subnet declaration for eth1 (
>     192.168.1.5 <http://192.168.1.5>).
>     Mar 31 10:05:01 server dhcpd: ** Ignoring requests on eth1.  If
>     this is not what
>     Mar 31 10:05:01 server dhcpd:    you want, please write a subnet
>     declaration
>     Mar 31 10:05:01 server dhcpd:    in your dhcpd.conf file for the
>     network segment
>     Mar 31 10:05:01 server dhcpd:    to which interface eth1 is
>     attached. **
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: Not configured to listen on any
>     interfaces!
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: If you did not get this software
>     from ftp.isc.org <http://ftp.isc.org>, please
>     Mar 31 10:05:01 server dhcpd: get the latest from ftp.isc.org
>     <http://ftp.isc.org> and install that before
>     Mar 31 10:05:01 server dhcpd: requesting help.
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: If you did get this software from
>     ftp.isc.org <http://ftp.isc.org> and have not
>     Mar 31 10:05:01 server dhcpd: yet read the README, please read it
>     before requesting help.
>     Mar 31 10:05:01 server dhcpd: If you intend to request help from
>     the dhcp-server@... <mailto:dhcp-server@...>
>     Mar 31 10:05:01 server dhcpd: mailing list, please read the
>     section on the README about
>     Mar 31 10:05:01 server dhcpd: submitting bug reports and requests
>     for help.
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: Please do not under any
>     circumstances send requests for
>     Mar 31 10:05:01 server dhcpd: help directly to the authors of this
>     software - please
>     Mar 31 10:05:01 server dhcpd: send them to the appropriate mailing
>     list as described in
>     Mar 31 10:05:01 server dhcpd: the README file.
>     Mar 31 10:05:01 server dhcpd:
>     Mar 31 10:05:01 server dhcpd: exiting.
>     Mar 31 10:05:01 server dhcpd: dhcpd startup failed
>
>     If you want me to give some more information please feel free to ask.
>     Thanks in advance
>
>     Regards
>     SysAdmin
>
>
>     On 3/31/07, *niyaz chistee* <prime.provogue@...
>     <mailto:prime.provogue@...>> wrote:
>
>         Well I thought that I should go the other way. So I did this:
>         Note: I have my RHEL5 Dump in /rhel5/Dump
>
>         cobbler distro add --name=rhel5
>         --kernel=/rhel5/Dump/images/xen/vmlinuz
>         --initrd=/rhel5/Dump/images/initrd.img
>
>         This ran good. Then I did the following:
>
>         cobbler profile add --name=redhat5x --distro=rhel5
>         --kickstart=/rhel5/Dump/ks.cfg --virt-file-size=2 --virt-ram=128
>         cobbler system add --name=00:16:3E:5F:93:6A --profile=redhat5x
>
>         Okay Now I exported my /rhel5/Dump via NFS. Here's cat
>         /etc/exports
>         /rhel5/Dump     10.1.1.0/255.255.255.0(rw,sync,no_root_squash)
>         <http://10.1.1.0/255.255.255.0%28rw,sync,no_root_squash%29>
>
>         For the sake of convience I am also posting my
>         /rhel5/Dump/ks.cfg and /etc/dhcpd.conf
>         cat /etc/dhcpd.conf
>         #
>         ******************************************************************
>         # Cobbler managed dhcpd.conf file
>         # generated from cobbler dhcp.conf template (Sat Mar 31
>         02:31:13 2007)
>         #
>         ******************************************************************
>         ddns-update-style interim;
>         allow booting;
>         allow bootp;
>         ignore client-updates;
>         set vendorclass = option vendor-class-identifier;
>         subnet 192.168.1.0 <http://192.168.1.0> netmask 255.255.255.0
>         <http://255.255.255.0> {
>              option routers          192.168.1.5 <http://192.168.1.5>;
>              option subnet-mask      255.255.255.0 <http://255.255.255.0>;
>              range dynamic-bootp     192.168.1.100
>         <http://192.168.1.100> 192.168.1.254 <http://192.168.1.254>;
>              filename                "/pxelinux.0";
>              default-lease-time      21600;
>              max-lease-time          43200;
>              next-server             10.1.1.1 <http://10.1.1.1>;
>         }
>         host label1 {
>             hardware ethernet 00:16:3E:5F:93:6A;
>             next-server 10.1.1.1 <http://10.1.1.1>;
>         }
>
>         cat /rhel5/Dump/ks.cfg
>         install
>         url --url nfs:10.1.1.1:/rhel5/Dump
>         key <I_AM_NOT_WRITING_IT>
>         lang en_US.UTF-8
>         network --device eth0 --bootproto dhcp
>         rootpw --iscrypted $1$VwD9nalr$06K0bUawzanX72gNk0es91
>         firewall --disabled
>         authconfig --enableshadow --enablemd5
>         selinux --disabled
>         timezone --utc Asia/Calcutta
>         bootloader --location=mbr --driveorder=xvda
>         --append="console=xvc0"
>         # The following is the partition information you requested
>         # Note that any partitions you deleted are not expressed
>         # here so unless you clear all partitions first, this is
>         # not guaranteed to work
>         clearpart --all --drives=xvda
>         part /boot --fstype ext3 --size=100 --ondisk=xvda
>         part pv.2 --size=0 --grow --ondisk=xvda
>         volgroup VolGroup00 --pesize=32768 pv.2
>         logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00
>         --size=1024 --grow
>         logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00
>         --size=144 --grow --maxsize=288
>         %packages
>         @admin-tools
>         @base
>         @core
>         @dialup
>         @java
>         @system-tools
>         @text-internet
>
>         Now I started my portmap,tftp,nfs,httpd services and finally I
>         started koan.
>
>         koan --virt --server=192.168.1.5 <http://192.168.1.5>
>         --profile=redhat5x
>         It gave me this:
>         - processing profile: redhat5x
>         - fetching configuration for profile: redhat5x
>         - url= http://192.168.1.5/cobbler/profiles/redhat5x
>         - {'kickstart': 'nfs://10.1.1.1/rhel5/Dump/ks.cfg', 'name':
>         'redhat5x', 'virt_ram': 128, 'repos': '', 'kernel_options':
>         'ksdevice=eth0 lang=  syslog= 10.1.1.1:25150
>         <http://10.1.1.1:25150> text ', 'virt_file_size': 2, 'distro':
>         'rhel5-xen', 'virt_paravirt': 'True', 'ks_meta': ''}
>         - fetching configuration for distro: rhel5-xen
>         - url=http://192.168.1.5/cobbler/distros/rhel5-xen
>         - {'kernel': '/rhel5/Dump/images/xen/vmlinuz', 'ks_meta': '',
>         'breed': 'redhat', 'kernel_options': 'ksdevice=eth0 lang= 
>         syslog= 10.1.1.1:25150 <http://10.1.1.1:25150> text ',
>         'initrd': '/rhel5/Dump/images/xen/initrd.img', 'arch': 'x86',
>         'name': 'rhel5-xen'}
>         - downloading initrd initrd.img to /tmp/initrd.img
>         - url=http://192.168.1.5/cobbler/images/rhel5-xen/initrd.img
>         - downloading kernel vmlinuz to /tmp/vmlinuz
>         - url= http://192.168.1.5/cobbler/images/rhel5-xen/vmlinuz
>         - kernel saved = /tmp/vmlinuz
>         - initrd saved = /tmp/initrd.img
>         - invalid RAM size specified, defaulting to 256 MB
>         libvir: Xen Daemon error : POST operation failed: ( xend.err
>         'Error creating domain: The privileged domain did not balloon!')
>         Failed to create domain 00_16_3E_5C_D5_0C
>         Traceback (most recent call last):
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         97, in main
>             k.run()
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         152, in run
>             self.do_virt()
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         297, in do_virt
>             return self.do_net_install("/tmp",after_download)
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         253, in do_net_install
>             after_download(self, distro_data, profile_data)
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         296, in after_download
>             self.do_virt_net_install(profile_data, distro_data)
>           File "/usr/lib/python2.4/site-packages/koan/app.py", line
>         600, in do_virt_net_install
>             extra=kextra
>           File "/usr/lib/python2.4/site-packages/koan/virtcreate.py",
>         line 102, in start_paravirt_install
>             guest.start_install()
>           File
>         "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py",
>         line 220, in start_install
>             return XenGuest.XenGuest.start_install(self, consolecb)
>           File
>         "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line
>         367, in start_install
>             self.domain = self.conn.createLinux(cxml, 0)
>           File "/usr/lib/python2.4/site-packages/libvirt.py", line
>         249, in createLinux
>             if ret is None:raise libvirtError('virDomainCreateLinux()
>         failed')
>         libvirtError: virDomainCreateLinux() failed
>
>         I don't know what happened during the ballon but it didn't
>         created the virtual machine I was expecting.
>         One more thing I would like to through light on is that I have
>         configured a virtual dummy0 network interface which is bridged
>         to xenbr1. Here's my ifconfig(not shown are the xen virtual
>         interfaces):
>         dummy0    Link encap:Ethernet  HWaddr F6:42:E2:23:B6:57 
>                   inet addr:10.1.1.1 <http://10.1.1.1>  Bcast:
>         10.1.1.255 <http://10.1.1.255>  Mask:255.255.255.0
>         <http://255.255.255.0>
>                   inet6 addr: fe80::f442:e2ff:fe23:b657/64 Scope:Link
>                   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>                   RX packets:41 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:7438 (7.2 KiB)  TX bytes:11815 (11.5 KiB)
>         eth1      Link encap:Ethernet  HWaddr 00:13:02:4B:70:05 
>                   inet addr: 192.168.1.5 <http://192.168.1.5> 
>         Bcast:192.168.1.255 <http://192.168.1.255>  Mask:
>         255.255.255.0 <http://255.255.255.0>
>                   inet6 addr: fe80::213:2ff:fe4b:7005/64 Scope:Link
>                   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>                   RX packets:318 errors:0 dropped:45 overruns:0 frame:0
>                   TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:1000
>                   RX bytes:173630 (169.5 KiB)  TX bytes:30388 ( 29.6 KiB)
>                   Interrupt:16 Base address:0xe000
>         Memory:b0200000-b0200fff
>
>         All my xen related network stuff is handled by dummy0 and it
>         is then masqureaded to eth1. I think there is problem with
>         /etc/dhcpd.conf regarding eth1 and dummy0. I am not getting it.
>         Please through some light.
>
>         Regards
>
>
>         On 3/31/07, *niyaz chistee* < prime.provogue@...
>         <mailto:prime.provogue@...>> wrote:
>
>             Hi,
>
>             I am trying to configure cobbler to configure my xen
>             virtual machines. I tried to import the installation tree
>             of rhel5 from cobbler using the command:
>
>              cobbler import --mirror=/rhel5/Dump/ --mirror-name=rhel5
>
>             It ran for sometime mirroring my rpm's and in last it
>             ended up with this:
>             sent 2597509927 bytes  received 50280 bytes  8644127.14
>             bytes/sec
>             total size is 2596994302  speedup is 1.00
>             - creating new distro: rhel5
>             - creating new profile: rhel5
>             - running repo update on /var/www/cobbler/ks_mirror/rhel5
>             - no comps file found:
>             /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml
>             - modifying existing distro: rhel5
>             - modifying existing profile: rhel5
>             - running repo update on /var/www/cobbler/ks_mirror/rhel5
>             - no comps file found:
>             /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml
>             - creating new distro: rhel5-xen
>             - creating new profile: rhel5-xen
>             - running repo update on /var/www/cobbler/ks_mirror/rhel5
>             - no comps file found:
>             /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml
>             Traceback (most recent call last):
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 502, in main
>                 BootCLI( sys.argv).run()
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 102, in run
>                 self.curry_args(self.args[1:], self.commands['toplevel'])
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 418, in curry_args
>                 commands[args[0]](args[1:])
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 312, in import_tree
>                 return self.apply_args(args,commands,on_ok)
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 406, in apply_args
>                 on_ok()
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 311, in <lambda>
>                 on_ok = lambda: go_import()
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/cobbler.py",
>             line 304, in go_import
>                 self.temp_mirror_name)
>               File "/usr/lib/python2.4/site-packages/cobbler/api.py",
>             line 152, in import_tree
>                 return importer.run()
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
>             line 82, in run
>                 self.guess_kickstarts()
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
>             line 139, in guess_kickstarts
>                 results = self.scan_rpm_filename(rpm)
>               File
>             "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
>             line 186, in scan_rpm_filename
>                 major = int(major)
>             ValueError: invalid literal for int(): 5Server
>
>             I don't know what this is all about. But when I ran
>             cobbler report it showed me this:
>
>             [root <at> server cobbler]# cobbler report
>             distro          : rhel5
>             kernel          :
>             /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/vmlinuz
>             initrd          :
>             /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/initrd.img
>             kernel options  : {}
>             architecture    : x86
>             ks metadata     : {}
>             breed           : redhat
>
>             distro          : rhel5-xen
>             kernel          :
>             /var/www/cobbler/ks_mirror/rhel5/images/xen/vmlinuz
>             initrd          :
>             /var/www/cobbler/ks_mirror/rhel5/images/xen/initrd.img
>             kernel options  : {}
>             architecture    : x86
>             ks metadata     : {}
>             breed           : redhat
>
>             profile         : rhel5
>             distro          : rhel5
>             kickstart       : /etc/cobbler/default.ks
>             kernel options  : {}
>             ks metadata     : {}
>             virt file size  : 5
>             virt ram        : 512
>             virt paravirt   : True
>             repos           :
>
>             profile         : rhel5-xen
>             distro          : rhel5-xen
>             kickstart       : /etc/cobbler/default.ks
>             kernel options  : {}
>             ks metadata     : {}
>             virt file size  : 5
>             virt ram        : 512
>             virt paravirt   : True
>             repos           :
>
>             That means it has created the distro and profile part. Is
>             that perfect or something is missing.
>
>             Please help.
>
>             Regards
>             SysAdmin
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@...
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Michael DeHaan | 2 Apr 16:43
Picon
Favicon

Re: Kernel panic while booting rhel4 via pxe

niyaz chistee wrote:
> Thanks for the quick reply once again. I did append ramdisk_size=8192 
> or ramdisk_size=16438 but it didn't helped. Same error once again. One 
> more thing to tell you is that I am trying to install the client via 
> VMware in windows. Does this situation creates this error?

FYI:   I've removed the ramdisk option (it was unneccessary) from newer 
versions of cobbler.  New installs won't have that.

(Still reading...)

>
> Thanks in advance.
>
> Regards
> SysAdmin
>
> On 3/31/07, *Dhawal Doshy* <dhawal@... 
> <mailto:dhawal@...>> wrote:
>
>     niyaz chistee wrote:
>     > Thanks for quick response. This is my cobbler --report:
>     > distro          : rhel4
>     > kernel          : /media/hda6/rhel4/images/pxeboot/vmlinuz
>     > initrd          : /media/hda6/rhel4/images/pxeboot/initrd.img
>     > kernel options  : {}
>     > architecture    : x86
>     > ks metadata     : {}
>     > breed           : redhat
>     >
>     > profile         : rhel4x
>     > distro          : rhel4
>     > kickstart       : /media/hda6/rhel4/ks.cfg
>     > kernel options  : {}
>     > ks metadata     : {}
>     > virt file size  : 5
>     > virt ram        : 512
>     > virt paravirt   : True
>     > repos           :
>     >
>     > And here is my /tftpboot/pxelinux.cfg/default:
>     >
>     > DEFAULT local
>     > PROMPT 1
>     > MENU TITLE Cobbler | http://cobbler.et.redhat.com
>     > TIMEOUT 200
>     > TOTALTIMEOUT 6000
>     > ONTIMEOUT local
>     >
>     > LABEL local
>     >         MENU LABEL (local)
>     >         MENU DEFAULT
>     >         LOCALBOOT 0
>     >
>     > LABEL rhel4x
>     >        kernel /images/rhel4/vmlinuz
>     >        MENU LABEL rhel4x
>     >        append ksdevice=eth0 lang= syslog= 192.168.1.45:25150
>     <http://192.168.1.45:25150>
>     > <http://192.168.1.45:25150>
>     text  initrd=/images/rhel4/initrd.img ks=
>     > http://192.168.1.45/cblr/kickstarts/rhel4x/ks.cfg
>     <http://192.168.1.45/cblr/kickstarts/rhel4x/ks.cfg>
>
>     You do not appear to have a ramdisk_size=8192 OR ramdisk_size=16438 in
>     your 'append' line of '/tftpboot/pxelinux.cfg/default'. Maybe (just
>     maybe) that is the cause of the this problem..
>
>
>     _______________________________________________
>     et-mgmt-tools mailing list
>     et-mgmt-tools@... <mailto:et-mgmt-tools@...>
>     https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@...
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Michael DeHaan | 2 Apr 16:44
Picon
Favicon

Re: Kernel panic while booting rhel4 via pxe

niyaz chistee wrote:
> I am not able to install a new virtual machine via vmware. Do I need 
> to create a new separate profile for vmware .
>

koan does not support vmware.
Michael DeHaan | 2 Apr 16:59
Picon
Favicon

Corrected bug in cobbler sync

This should only affect users who installed cobbler several versions 
ago, before the kickstart tracking features were in ...
If you're seeing a traceback while running "cobbler sync", the following 
is the fix for the problem:

diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 98f018b..2f8902a 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -655,7 +655,7 @@ class BootSync:
         # kickstart path rewriting (get URLs for local files)
         if kickstart_path is not None and kickstart_path != "":

-            if system is not None and kickstart_path.startswith("/") or 
kickstart_path.find("/cobbler/kickstarts/") != -1:
+            if system is not None and kickstart_path.startswith("/"):
                 pxe_fn = self.get_pxe_filename(system.name)
                 kickstart_path = 
"http://%s/cblr/kickstarts_sys/%s/ks.cfg" % (self.settings.server, pxe_fn)
             elif kickstart_path.startswith("/") or 
kickstart_path.find("/cobbler/kickstarts/") != -1:

To apply this fix prior to the next release:

    git clone git://et.redhat.com/cobbler
    make
    rpm -Uvh cobbler*.noarch.rpm --force

I plan on releasing this later this week, along with a fix for the RHEL5 
DVD/tree "cobbler import" problem reported earlier.

--Michael

Re: Corrected bug in cobbler sync

The %changelog in the spec file needs an adjustment to the latest
changes date string, the make bombs out without it. I think it's just an
extra field or something. I corrected my local install manually.

On Mon, 2007-04-02 at 10:59 -0400, Michael DeHaan wrote:
> This should only affect users who installed cobbler several versions 
> ago, before the kickstart tracking features were in ...
> If you're seeing a traceback while running "cobbler sync", the following 
> is the fix for the problem:
> 
> diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
> index 98f018b..2f8902a 100644
> --- a/cobbler/action_sync.py
> +++ b/cobbler/action_sync.py
> @@ -655,7 +655,7 @@ class BootSync:
>          # kickstart path rewriting (get URLs for local files)
>          if kickstart_path is not None and kickstart_path != "":
>  
> -            if system is not None and kickstart_path.startswith("/") or 
> kickstart_path.find("/cobbler/kickstarts/") != -1:
> +            if system is not None and kickstart_path.startswith("/"):
>                  pxe_fn = self.get_pxe_filename(system.name)
>                  kickstart_path = 
> "http://%s/cblr/kickstarts_sys/%s/ks.cfg" % (self.settings.server, pxe_fn)
>              elif kickstart_path.startswith("/") or 
> kickstart_path.find("/cobbler/kickstarts/") != -1:
> 
> 
> To apply this fix prior to the next release:
> 
>     git clone git://et.redhat.com/cobbler
>     make
>     rpm -Uvh cobbler*.noarch.rpm --force
> 
> I plan on releasing this later this week, along with a fix for the RHEL5 
> DVD/tree "cobbler import" problem reported earlier.
> 
> --Michael
> 
> 
> 
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@...
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Gmane