On Sat, Oct 29, 2011 at 6:45 PM, John Paget Bourke
<[email protected]> wrote:
> Hi,
>
> One more issue
>
> [root@Config koan]# koan --server=localhost --port=80 --system=asystem --virt 
> --virt-type=vmware
> - looking for Cobbler at http://localhost:80/cobbler_api
> - reading URL: http://192.168.1.143/cblr/svc/op/ks/system/asystem
> install_tree: http://192.168.1.143/cblr/links/RHEL6-x86_64
> <type 'exceptions.TypeError'>
> start_install() got an unexpected keyword argument 'qemu_net_type'
>  File "/usr/lib/python2.6/site-packages/koan/app.py", line 240, in main
>    k.run()
>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 380, in run
>    self.virt()
>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 734, in virt
>    return self.net_install(after_download)
>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 625, in 
> net_install
>    after_download(self, profile_data)
>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 732, in 
> after_download
>    self.virt_net_install(profile_data)
>   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285, in 
> virt_net_install
>    qemu_net_type    =  self.qemu_net_type
>
> Any suggestions ?

Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.

To fix this temporarily on your system, apply the following patch:

diff --git a/koan/vmwcreate.py b/koan/vmwcreate.py
index b7ef448..e869aca 100755
--- a/koan/vmwcreate.py
+++ b/koan/vmwcreate.py
@@ -129,7 +129,8 @@ def start_install(name=None,
                   bridge=None,
                   virt_type=None,
                   virt_auto_boot=False,
-                  qemu_driver_type=None):
+                  qemu_driver_type=None,
+                  qemu_net_type=None):

     if profile_data.has_key("file"):
         raise koan.InfoException("vmware does not work with --image yet")

I'll get a fix in for this in the next release as well.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to