It is currently Sat Dec 07, 2019 5:34 am


All times are UTC




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Problem with GNS3 and VirtualBox
PostPosted: Tue Apr 10, 2012 7:01 pm 
Offline

Joined: Tue Apr 10, 2012 6:52 pm
Posts: 6
Hello all,
i've installed GNS3 0.8.2 and VirtualBox 4.1.1 r77245 on my mac running Lion.
GNS3 works correctly but i'm not able to integrate virtual box.

When i click the test button in Preferences - VirtualBox - General Settings tab i've the error:

Code:
Failed to load vboxapi, please check your VirtualBox..


The path "/Applications/GNS3.app/Contents/Resources/vboxwrapper.py" is correct and VirtualBox is correctly installed.
What should i check ?

Thank you so much for help!

N.




Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Wed Apr 11, 2012 1:00 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi,

In order to use GNS3 with VirtualBox, you must copy a library included in our GNS3 Application to the VirtualBox Application. (i.e. mv /Applications/GNS3.app/Contents/Resources/VBoxPython2.7.so /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2.7.so).

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Thu Apr 12, 2012 2:32 pm 
Offline

Joined: Tue Apr 10, 2012 6:52 pm
Posts: 6
hi,
i already have the library in the dir:

Code:
$ ls -lah /Applications/VirtualBox.app/Contents/MacOS/VBoxP*
-rw-r--r--  1 root      admin   195K Apr  3 14:45 /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2_5.so
-rwxr-xr-x  1 root      admin   427K Apr  3 14:45 /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2_6.so
-rwxr-xr-x  1 user  admin   220K Mar 14 04:32 /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2_7.so

and
Code:
altair:~ nagnelli$ ls -lah /Applications/GNS3.app/Contents/Resources/VBox*
-rwxr-xr-x  1 user  admin   220K Mar 14 04:32 /Applications/GNS3.app/Contents/Resources/VBoxPython2_7.so


Should i delete
Code:
-rw-r--r--  1 root      admin   195K Apr  3 14:45 /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2_5.so
-rwxr-xr-x  1 root      admin   427K Apr  3 14:45 /Applications/VirtualBox.app/Contents/MacOS/VBoxPython2_6.so


?

Thank you so much for help,
N.


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Thu Apr 12, 2012 2:39 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi,

You should delete or move the following file somewhere as a backup, but don't leave it in this directory:

Code:
/Applications/GNS3.app/Contents/Resources/VBoxPython2_7.so

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Thu Apr 12, 2012 3:40 pm 
Offline

Joined: Tue Apr 10, 2012 6:52 pm
Posts: 6
i've deleted the file but i've the same issue :(


Attachments:
Screen Shot 2012-04-12 at 5.38.58 PM.png
Screen Shot 2012-04-12 at 5.38.58 PM.png [ 64.23 KiB | Viewed 15020 times ]
Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Thu Apr 12, 2012 11:29 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi,

Does this directory exist?

Code:
/Library/Python/2.7/site-packages/vboxapi/

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Fri Apr 13, 2012 6:34 am 
Offline

Joined: Tue Apr 10, 2012 6:52 pm
Posts: 6
Yes, in it i've these files:

Code:
$ ls -alh /Library/Python/2.7/site-packages/vboxapi
total 320
drwxr-xr-x  6 root  wheel   204B Apr 10 20:12 .
drwxr-xr-x  5 root  wheel   170B Apr 10 20:12 ..
-rw-r--r--  1 root  wheel    73K Apr  3 14:45 VirtualBox_constants.py
-rw-r--r--  1 root  wheel    34K Apr 10 20:12 VirtualBox_constants.pyc
-rw-r--r--  1 root  wheel    20K Apr 10 20:12 __init__.py
-rw-r--r--  1 root  wheel    25K Apr 10 20:12 __init__.pyc


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Sat Apr 14, 2012 7:10 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Ok,

What if you manually start vboxwrapper?

Code:
python vboxwrapper.py
VirtualBox Wrapper (version 0.8.2)
Copyright (c) 2007-2012
Jeremy Grossmann and Alexey Eromenko "Technologov"

Using VirtualBox 4.1.12 r77245
VBoxWrapper TCP control server started (port 11525).
Listening on all network interfaces


Or test if you can load vboxapi directly with Python.

Code:
$ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from vboxapi import VirtualBoxManager
>>> g_vboxManager = VirtualBoxManager(None, None)
>>>

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Thu Apr 19, 2012 4:27 pm 
Offline

Joined: Thu Apr 19, 2012 11:23 am
Posts: 31
I have the same problem, have reinstalled everything multiple times. Tried both macport install of virtualbox and the standard macbuild.

I can successfully load vboxapi directly with python, and at some point I also managed to start vboxwrapper.py. However, GNS3 will then first complain about the 11525 port being taken, nothing strange with that. But when it tries to connect you'll just get a connection error message.

Atm I get this:

Code:
Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vboxapi
>>> from vboxapi import VirtualBoxManager
>>> g_vboxManager = VirtualBoxManager(None, None)
Bus error


Been trying all kinds of 'solutions' I've found in the forum but none of them works for me.

:(

Forgot..
OSX 10.6.8
VBOX 4.1.12 r77245
GNS3: 0.8.2


Top
 Profile  
 
 Post subject: Re: Problem with GNS3 and VirtualBox
PostPosted: Wed May 16, 2012 9:38 am 
Offline

Joined: Wed May 16, 2012 9:29 am
Posts: 1
Hello,

Got it working by following all the verification steps done before in this thread, and finally manually starting vboxwrapper.py.

Operation done are :
1 - Go to folder "/Applications/GNS3.app/Contents/Resources" :

Quote:
cd /Applications/GNS3.app/Contents/Resources


2 - Run vboxwrapper.py manually :

Quote:
python vobxwrapper.py


3 - Run GNS3 and go to "Preferences"/"VirtualBox" and click "Test Settings"

At this step I got an error message saying Virtualbox is already running and that it will not be close after quitting GNS3, and then the green message saying " VBoxwrapper and VirtualBox API 4.1.14 have success..."

Going to VirtualBox guest shows my guest in the list.

Hope this helps.
Franck.

My config :
Mac Book Pro OSX 10.7.4
GNS3 0.8.2
VirtualBox 4.1.14




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

All times are UTC


Who is online

Users browsing this forum: No registered users 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO