Hi,<br><br>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:<br><br> cobbler import --mirror=/rhel5/Dump/ --mirror-name=rhel5
<br><br>It ran for sometime mirroring my rpm's and in last it ended up with this:<br>sent 2597509927 bytes received 50280 bytes 8644127.14 bytes/sec<br>total size is 2596994302 speedup is 1.00<br>- creating new distro: rhel5
<br>- creating new profile: rhel5<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>- modifying existing distro: rhel5<br>- modifying existing profile: rhel5
<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>- creating new distro: rhel5-xen<br>- creating new profile: rhel5-xen<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5
<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>Traceback (most recent call last):<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main<br> BootCLI(
sys.argv).run()<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run<br> self.curry_args(self.args[1:], self.commands['toplevel'])<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 418, in curry_args
<br> commands[args[0]](args[1:])<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 312, in import_tree<br> return self.apply_args(args,commands,on_ok)<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 406, in apply_args
<br> on_ok()<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 311, in <lambda><br> on_ok = lambda: go_import()<br> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 304, in go_import
<br> self.temp_mirror_name)<br> File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in import_tree<br> return importer.run()<br> File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 82, in run
<br> self.guess_kickstarts()<br> File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 139, in guess_kickstarts<br> results = self.scan_rpm_filename(rpm)<br> File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 186, in scan_rpm_filename
<br> major = int(major)<br>ValueError: invalid literal for int(): 5Server<br><br>I don't know what this is all about. But when I ran cobbler report it showed me this:<br><br>[root@server cobbler]# cobbler report<br>
distro : rhel5<br>kernel : /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/vmlinuz<br>initrd : /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/initrd.img<br>kernel options : {}<br>architecture : x86
<br>ks metadata : {}<br>breed : redhat<br><br>distro : rhel5-xen<br>kernel : /var/www/cobbler/ks_mirror/rhel5/images/xen/vmlinuz<br>initrd : /var/www/cobbler/ks_mirror/rhel5/images/xen/initrd.img
<br>kernel options : {}<br>architecture : x86<br>ks metadata : {}<br>breed : redhat<br><br>profile : rhel5<br>distro : rhel5<br>kickstart : /etc/cobbler/default.ks<br>kernel options : {}
<br>ks metadata : {}<br>virt file size : 5<br>virt ram : 512<br>virt paravirt : True<br>repos : <br><br>profile : rhel5-xen<br>distro : rhel5-xen<br>kickstart : /etc/cobbler/default.ks
<br>kernel options : {}<br>ks metadata : {}<br>virt file size : 5<br>virt ram : 512<br>virt paravirt : True<br>repos : <br><br>That means it has created the distro and profile part. Is that perfect or something is missing.
<br><br>Please help.<br><br>Regards<br>SysAdmin<br>