Same steps, same error.

# cobbler image add --name=winxp
--file=nfs://172.25.0.50/ovirtnfs/winxp.iso --breed=windows
--virt-type=qemu --name=winxp

# cobbler image report --name=winxp
image           : winxp
arch            : i386
breed           : windows
comment         :
created         : Thu Sep 24 11:39:27 2009
file            : 172.25.0.50/ovirtnfs/winxp.iso
image type      : iso
kickstart       :
modified        : Thu Sep 24 11:39:50 2009
os version      :
owners          : ['admin']
virt bridge     : xenbr0
virt cpus       : 1
network count   : 1
virt file size  : 5
virt path       :
virt ram        : 512
virt type       : qemu

When i try to isntall from koan, I get at first this error

<type 'exceptions.IndexError'>
string index out of range
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 204, in main
    k.run()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 312, in run
    self.virt()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 601, in virt
    return self.net_install(after_download)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 398, in net_install
    if profile_data["kickstart"][0] == "/":

So, I add an empty kickstart and the error change to:

<type 'exceptions.ValueError'>
Install media location must be an NFS, HTTP or FTP network install
source, or an existing file/device
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 204, in main
    k.run()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 312, in run
    self.virt()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 601, in virt
    return self.net_install(after_download)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 520, in net_install
    after_download(self, profile_data)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 599, in
after_download
    self.virt_net_install(profile_data)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1080, in
virt_net_install
    virt_type     =  self.virt_type
   File "/usr/lib/python2.6/site-packages/koan/qcreate.py", line 91,
in start_install
    guest.cdrom = input_path
   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line
380, in set_cdrom
    self._installer.location = val
   File "/usr/lib/python2.6/site-packages/virtinst/DistroInstaller.py",
line 138, in set_location
    raise ValueError(_("Install media location must be an NFS, HTTP "

2009/8/13 Thomas S Hatch <[email protected]>
>
> direct path at least gets it installing, I will keep you posted
>
> On Thu, Aug 13, 2009 at 2:08 PM, Michael DeHaan <[email protected]> wrote:
>>
>> On 08/13/2009 03:58 PM, Thomas S Hatch wrote:
>>
>> I figure I am missing soumthing obvious, but here goes.
>> When I define a cobbler image the protocol gets hacked off! So I run this 
>> command:
>>
>> cobbler image edit 
>> --file='nfs://192.168.41.76:/cobbler/ks_mirror/WinLite.iso' 
>> --name='windows_test_1'
>>
>> then I run a report:
>>
>> image           : windows_test_1
>> arch            : i386
>> breed           : windows
>> comment         :
>> created         : Thu Aug 13 13:30:29 2009
>> file            : 192.168.41.76:/cobbler/ks_mirror/WinLite.iso
>> image type      : iso
>> kickstart       : /var/lib/cobbler/kickstarts/base.ks
>> modified        : Thu Aug 13 13:59:46 2009
>> os version      :
>> owners          : ['admin']
>> virt bridge     : br0
>> virt cpus       : 1
>> network count   : 1
>> virt file size  : 15
>> virt path       : /vm/images/
>> virt ram        : 512
>> virt type       : qemu
>>
>> and the nfs:// is missing from the file field.  So I try to install anyway:
>>
>> koan --server=192.168.41.76 --virt --image='windows_test_1'
>>
>> and I get this:
>> - looking for Cobbler at http://192.168.41.76/cobbler_api
>> - reading URL: http://192.168.41.76/cblr/svc/op/ks/profile/windows_test_1
>> warning: kickstart found but no install_tree found
>> libvirtd (pid  2182) is running...
>> - using qemu hypervisor, type=kvm
>> Thu, 13 Aug 2009 14:01:11 DEBUG    No conn passed to Guest, opening URI 
>> 'qemu:///system'
>> <type 'exceptions.ValueError'>
>> Install media location must be an NFS, HTTP or FTP network install source, 
>> or an existing file/device
>>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 204, in main
>>     k.run()
>>    File "/usr/lib/python2.6/site-packages/koan/app.py", line 312, in run
>>     self.virt()
>>    File "/usr/lib/python2.6/site-packages/koan/app.py", line 601, in virt
>>     return self.net_install(after_download)
>>    File "/usr/lib/python2.6/site-packages/koan/app.py", line 520, in 
>> net_install
>>     after_download(self, profile_data)
>>    File "/usr/lib/python2.6/site-packages/koan/app.py", line 599, in 
>> after_download
>>     self.virt_net_install(profile_data)
>>    File "/usr/lib/python2.6/site-packages/koan/app.py", line 1080, in 
>> virt_net_install
>>     virt_type     =  self.virt_type
>>    File "/usr/lib/python2.6/site-packages/koan/qcreate.py", line 91, in 
>> start_install
>>     guest.cdrom = input_path
>>    File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 380, in 
>> set_cdrom
>>     self._installer.location = val
>>    File "/usr/lib/python2.6/site-packages/virtinst/DistroInstaller.py", line 
>> 138, in set_location
>>     raise ValueError(_("Install media location must be an NFS, HTTP "
>>
>>
>> What might I be missing?
>>
>> -Tom Hatch
>>
>> ________________________________
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>> This definitely looks like a bug and we should fix it.   If NFS is mounted 
>> consistently, a workaround might be to use the file path until you can get 
>> that sorted out.
>>
>> (Daryl, remember anything about this one?)
>>
>>
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to