It is currently Fri Oct 24, 2014 11:18 am


All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Failed to start Qemuwrapper
PostPosted: Wed Dec 22, 2010 7:33 am 
hi,

How to configure "Path to qemu" and "Path to qemu-img", I can't find these files in GNS3 Resource folder.

My Version is GNS3 0.7.3.




Attachments:
Screen shot 2010-12-22 at 3.05.20 PM.png
Screen shot 2010-12-22 at 3.05.20 PM.png [ 113.08 KiB | Viewed 18057 times ]
Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Sat Dec 25, 2010 9:32 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Qemu is not included in the DMG, you have to get it yourself. This will probably change in future releases.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Mon Jan 10, 2011 4:28 pm 
Offline

Joined: Mon Jan 10, 2011 4:03 pm
Posts: 3
I'm having the same problem as syz2000, so I took grossmj's advice and tried downloading Qemu myself. I couldn't get it to work, but maybe someone can spot my mistake.

I used MacPorts to download and install Qemu. It placed both "qemu" and "qemu-img" in the path "/opt/local/bin". I configured the Qemu preferences in GNS3 to reflect that. I let the Qemuwrapper point to "qemuwrapper.py" in the .App package and left the working directory of "/tmp" alone. I downloaded a lightweight Qemu linux image from Qemu project site and pointed the Qemu host preference to that image. When I hit the "Test" button under the Qemu Preferences pane in GNS3, it returns an error message that it's unable to initialize Qemuwrapper. "Qemuwrapper" is indeed present in "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py". I downloaded the GN3S source files and copied the "Qemuwrapper" folder from the source into "/Applications/GNS3.app/Contents/Resources/" and then changed the qemuwrapper configuration value again to point to the new file from the source. It still fails to initialize when I hit the test button. If I attempt to create a Qemuhost in the main screen of GNS3, a status prompt appears but it fails to connect.

I can launch qemu using the same linux image just fine via the CLI.

I gave it a shot but am apparently not understanding something. Thanks in advance for any help.


Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Mon Jan 24, 2011 10:05 pm 
Did you get this working, I have the same issue. Installed qemu and qemu-img from ports, no problems there. But when I test qemu in gns3 preferences i get "Failed to start qemuwrapper". Tried the one that comes with the dmg package and also the wrapper script from source.


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Mon Jan 31, 2011 1:24 am 
Same problem here, I am very curious on how to get this working.

Any thing you can share to help get Qemu working will be very appreciated!


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Wed Mar 02, 2011 2:13 am 
And yet another "Failed to start Qemuwrapper" here... have working qemu/qemu-img 0.13.0 from Macports.
Code:
  Model Name:      Mac mini aluminum
  Model Identifier:   Macmini4,1
  Processor Name:   Intel Core 2 Duo
  Processor Speed:   2.4 GHz
  Number Of Processors:      1
  Total Number Of Cores:   2
  L2 Cache:   3 MB
  Memory:    2 GB
  Bus Speed:   1.07 GHz
  Boot ROM Version:   MM41.0042.B00

  Mac OS X 10.6.6



Edit:
Could this be a hint to the problem?
Code:
$ python qemuwrapper.py
qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
  global IP
Traceback (most recent call last):
  File "qemuwrapper.py", line 47, in <module>
    import pemubin
ImportError: No module named pemubin


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Wed Mar 02, 2011 3:45 am 
So, retrieving the pemubin.py file from http://code.gns3.net/gns3-devel/file/60 ... emuwrapper and putting it into the Resouces file in the GNS3.app directory makes qemuwrapper work:
Code:
$ python qemuwrapper.py
qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
  global IP
Qemu Emulator Wrapper (version 0.7.3)
Copyright (c) 2007-2010 Thomas Pani & Jeremy Grossmann

Unpacking pemu binary.
Qemu TCP control server started (port 10525).
Listenning on all network interfaces


After the successful start, I killed the qemuwrapper process by hitting <Ctrl>-C:
Code:
Qemu TCP control server started (port 10525).
Listenning on all network interfaces
^CShutdown in progress...
Shutdown completed.


However, after that, clicking the "Test" button on the Qemu pref's page still failed to start qemuwrapper...

BUT! I found if you start qemuwrapper as above by hand, and leave it running, then clicking the "Test" button yields
Qemuwrapper, qemu and qemu-img have successfully started

SO I guess that's the trick for now...

Just start qemuwrapper via a terminal shell as so:
Code:
$ python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py


And leave it running while you use GNS3. Kill it off by <Ctrl>-C when you are finished needing it.

Hopefully this can be fixed in a future version...


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Sat Mar 26, 2011 4:04 am 
Offline

Joined: Thu Mar 24, 2011 4:31 pm
Posts: 6
I tried following these instructions and got the following error in Terminal -

Last login: Fri Mar 25 23:02:07 on ttys000
Ronald-Nutters-MacBook-Pro:~ ronaldnutter$ python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
'import site' failed; use -v for traceback
/Applications/GNS3.app/Contents/Resources/qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
global IP
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 33, in <module>
import base64
ImportError: No module named base64
Ronald-Nutters-MacBook-Pro:~ ronaldnutter$

I have the macport stuff installed. I am new to the Mac so this is a trial by fire. Got GNS3 working but would like to get this running as well so I can simulate the ASA as well. I have also tried doing sudo port install base64 but that didnt get rid of this error.

Any suggestions appreciated,
Ron


Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Mon Apr 18, 2011 2:52 pm 
rnutter wrote:
I tried following these instructions and got the following error in Terminal -

Last login: Fri Mar 25 23:02:07 on ttys000
Ronald-Nutters-MacBook-Pro:~ ronaldnutter$ python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
'import site' failed; use -v for traceback
/Applications/GNS3.app/Contents/Resources/qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
global IP
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 33, in <module>
import base64
ImportError: No module named base64
Ronald-Nutters-MacBook-Pro:~ ronaldnutter$

I have the macport stuff installed. I am new to the Mac so this is a trial by fire. Got GNS3 working but would like to get this running as well so I can simulate the ASA as well. I have also tried doing sudo port install base64 but that didnt get rid of this error.

Any suggestions appreciated,
Ron


You need to be a root user.

sudo python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
or
sudo -s
python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Tue Apr 19, 2011 5:14 pm 
Offline

Joined: Mon Jan 10, 2011 4:03 pm
Posts: 3
Works perfectly now. Thanks for solving the mystery, wdennis.




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO