>In 2.2.3 we addressed that by detecting the virtinst version >and disabling certain features (like disk and net drivers). It looks >like we need to add --autostart to that list.
cool thanks. >What versions of cobbler (and koan) are you using? Hi bob, I'm on Cobbler 2.2.3 and koan-2.2.3-2. thanks On Sat, Jul 7, 2012 at 10:21 PM, James Cammarata <[email protected]> wrote: > On Sat, Jul 7, 2012 at 7:50 PM, Tim Dunphy <[email protected]> wrote: > > slight correction. this url is a 404 in my web browser - > > > > http://192.168.1.36/cblr/svc/op/ks/profile/xen32 > > > > On the file system the profile is locate here: > > > > [root@VIRTCENT14 web]# locate xen32 > > /var/lib/cobbler/config/profiles.d/xen32.json > > > > Still not sure how to correct the 404... thanks again > > > > tim > > > > On Sat, Jul 7, 2012 at 8:21 PM, Tim Dunphy <[email protected]> wrote: > >> > >> Hello, > >> > >> I am attempting to create a vm with koan on a centos 5.8 system. I am > >> able to list the profiles and systems on the cobbler server like so: > >> > >> [root@LCENT01:~] #koan --server=cobbler --list profiles > >> - looking for Cobbler at http://cobbler:80/cobbler_api > >> deb605-gtk-i386 > >> rhel62-i386 > >> deb605-i386 > >> ubuntu12-i386 > >> xen32 > >> > >> > >> [root@LCENT01:~] #koan --server=cobbler --list systems > >> - looking for Cobbler at http://cobbler:80/cobbler_api > >> virtcent01.example.com > >> > >> When I go to create the virtual machine this is the response I get - > >> > >> > >> [root@LCENT01:~] #koan --server cobbler --virt --profile xen32 > --virt-name > >> vm01 --nogfx > >> - looking for Cobbler at http://cobbler:80/cobbler_api > >> - reading URL: http://192.168.1.36/cblr/svc/op/ks/profile/xen32 > >> Traceback (most recent call last): > >> File "/usr/lib/python2.4/site-packages/koan/utils.py", line 130, in > >> urlread > >> fd = urllib2.urlopen(url) > >> File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen > >> return _opener.open(url, data) > >> File "/usr/lib/python2.4/urllib2.py", line 364, in open > >> response = meth(req, response) > >> File "/usr/lib/python2.4/urllib2.py", line 471, in http_response > >> response = self.parent.error( > >> File "/usr/lib/python2.4/urllib2.py", line 402, in error > >> return self._call_chain(*args) > >> File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain > >> result = func(*args) > >> File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default > >> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > >> HTTPError: HTTP Error 404: Not Found > >> libvirtd (pid 2801) is running... > >> downloading initrd initrd.img to /var/lib/xen/initrd.img_koan > >> url=http://192.168.1.36/cobbler/images/rhel62-i386/initrd.img > >> - reading URL: > http://192.168.1.36/cobbler/images/rhel62-i386/initrd.img > >> downloading kernel vmlinuz to /var/lib/xen/vmlinuz_koan > >> url=http://192.168.1.36/cobbler/images/rhel62-i386/vmlinuz > >> - reading URL: http://192.168.1.36/cobbler/images/rhel62-i386/vmlinuz > >> - warning: old python-virtinst detected, a lot of features will be > >> disabled > >> - adding disk: /mnt/xen//vm01-disk0 of size 10 (driver type=raw) > >> - ['virt-install', '--connect', 'xen:///', '--name', 'vm01', '--ram', > >> '512', '--vcpus', '1', '--uuid', '70543513-b885-ac08-ea41-03ea600beafc', > >> '--autostart', '--nographics', '--paravirt', '--boot', > >> > 'kernel=/var/lib/xen/vmlinuz_koan,initrd=/var/lib/xen/initrd.img_koan,kernel_args=ks= > http://192.168.1.36/cblr/svc/op/ks/profile/xen32 > >> ksdevice=link kssendmac lang= text ', '--os-variant', 'generic26', > '--disk', > >> 'path=/mnt/xen//vm01-disk0,size=10', '--network', 'bridge=xenbr0', > '--wait', > >> '0', '--noautoconsole'] > >> usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options] > >> > >> virt-install: error: no such option: --autostart > >> command failed (2) > >> > >> > >> I can hit all of URL's listed in the output so I'm not sure why it's > >> complaining about a 404. But I think the problem may be related to the > >> "virt-install: error: no such option: --autostart" error message. I was > >> hoping to get some advice on how to get around this problem. > > This a definite bug, and I think at least one other person reported > it. The issue is the version of python-virtinst that is available to > RHEL5 (and clones) is quite limited in the command line flags it > accepts. In 2.2.3 we addressed that by detecting the virtinst version > and disabling certain features (like disk and net drivers). It looks > like we need to add --autostart to that list. > > The 404 would seem to be some kind of apache/cobbler/wsgi > misconfiguration, but isn't what ultimately kills the install. > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler > -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
_______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
