It is currently Sat Jul 04, 2020 9:54 pm


All times are UTC




Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Tue Jun 19, 2012 8:35 am 
Offline

Joined: Mon Oct 13, 2008 2:28 pm
Posts: 36
Hi,

My ASA842 do not even start in latest test version, no qemu console window.

qemu test button give succesfull result.

Niklas




Attachments:
topology.net [5.45 KiB]
Downloaded 207 times
Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Tue Jun 19, 2012 12:50 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
Hi salkindnul,

Please do those steps:
* Close GNS3 (+ any qemuwrapper running in background)
* Go to GNS3 install directory and start the script "qemuwrapper-start.cmd" it will open a qemuwrapper listening on port 10525
* Open GNS3
* Enter the command "debug 3" in GNS3 console
* Drag a ASA inside the topology (You will be asked that a qemuwrapper already exist. Please leave it be, don't kill that process!!)
* Start your ASA
* Check/Send all the data/logs from GNS3 console and Qemurapper output in a attached file

Thanks


Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Tue Jun 19, 2012 1:10 pm 
Offline

Joined: Thu Apr 19, 2012 11:23 am
Posts: 31
Hi!

Still problems with the vboxapi I'm afraid.

Vbox installation should be ok:

Code:
RFMB:Resources root# python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[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)
>>> print g_vboxManager.vbox.revision
78094



Code:
Starting vboxwrapper
debuglevel =  3

class VBoxWrapperRequestHandler
vboxwrapper.py    main()
starting server on host localhost (port 11525)
VBoxWrapperServer::__init__()
VBoxWrapperRequestHandler::handle()
VBoxWrapperRequestHandler::handle_one_request()
handle_one_request(), request =
VBoxWrapperRequestHandler::check_cache()
cur_time = 1340109879.68, CACHED_TIME = 0.0
cache miss on time
VBoxWrapperRequestHandler::__get_tokens()
('VBoxWrapperRequestHandler::__get_tokens(),    returns tokens = ', [])
VBoxWrapperRequestHandler::send_reply(code=200, done=1, msg=At least a module and a command must be specified)
VBoxWrapperRequestHandler::handle_one_request()
handle_one_request(), request =
VBoxWrapperRequestHandler::check_cache()
cur_time = 1340109879.68, CACHED_TIME = 1340109879.68
cache hit
VBoxWrapperRequestHandler::handle()
VBoxWrapperRequestHandler::handle_one_request()
handle_one_request(), request = vboxwrapper version

VBoxWrapperRequestHandler::check_cache(vboxwrapper version)
cur_time = 1340109879.88, CACHED_TIME = 0.0
cache miss on time
VBoxWrapperRequestHandler::__get_tokens(vboxwrapper version)
('VBoxWrapperRequestHandler::__get_tokens(),    returns tokens = ', ['vboxwrapper', 'version'])
('handle_one_request(), module = ', 'vboxwrapper', ' command = ', 'version', ' data = ', [])
('handle_one_request(), 1: mname = ', 'do_vboxwrapper_version')
handle_one_request(), if not hasattr success
handle_one_request(), if len(data) success
VBoxWrapperRequestHandler::do_vboxwrapper_version([])
VBoxWrapperRequestHandler::send_reply(code=100, done=1, msg=0.8.3)
VBoxWrapperRequestHandler::handle_one_request()
handle_one_request(), request = vbox version

VBoxWrapperRequestHandler::check_cache(vbox version)
cur_time = 1340109879.88, CACHED_TIME = 1340109879.88
cache miss on instruction
VBoxWrapperRequestHandler::__get_tokens(vbox version)
('VBoxWrapperRequestHandler::__get_tokens(),    returns tokens = ', ['vbox', 'version'])
('handle_one_request(), module = ', 'vbox', ' command = ', 'version', ' data = ', [])
('handle_one_request(), 1: mname = ', 'do_vbox_version')
handle_one_request(), if not hasattr success
handle_one_request(), if len(data) success
VBoxWrapperRequestHandler::do_vbox_version([])
VBoxWrapperRequestHandler::send_reply(code=212, done=1, msg=Failed to load vboxapi, please check your VirtualBox installation.)
VBoxWrapperRequestHandler::handle_one_request()
handle_one_request(), request =
VBoxWrapperRequestHandler::check_cache()
cur_time = 1340109879.88, CACHED_TIME = 1340109879.88
cache miss on instruction
VBoxWrapperRequestHandler::__get_tokens()
('VBoxWrapperRequestHandler::__get_tokens(),    returns tokens = ', [])
VBoxWrapperRequestHandler::send_reply(code=200, done=1, msg=At least a module and a command must be specified)
VBoxWrapperRequestHandler::handle_one_request()



Stacktrace of GNS3 when testing vbox settings:

Code:
close_nocancel(0x18)       = 0 0
recvfrom_nocancel(0x17, 0x7FFF5FBF7A10, 0x4)       = 4 0
close_nocancel(0x17)       = 0 0
kevent(0x15, 0x7FFF5FBF7C88, 0x1)       = 0 0
kevent(0x15, 0x0, 0x0)       = 1 0
kevent(0x15, 0x0, 0x0)       = 1 0
recvfrom_nocancel(0x6, 0x7FFF5FBF7A20, 0x1C)       = 28 0
recvfrom_nocancel(0x6, 0x1081A15F0, 0x25)       = 37 0
select_nocancel(0x7, 0x7FFF5FBF7A50, 0x0)       = 0 0
kevent(0x15, 0x7FFF5FBF7520, 0x1)       = 0 0
sendto_nocancel(0x6, 0x10CA09290, 0x1C)       = 28 0
close_nocancel(0x15)       = 0 0
connect(0xD, 0x7FFF5FBF80B8, 0x10)       = -1 Err#36
select(0xE, 0x0, 0x7FFF5FBF7FF0, 0x0, 0x7FFF5FBF7FE0)       = 1 0
getsockopt(0xD, 0xFFFF, 0x1007)       = 0 0
select(0xE, 0x0, 0x7FFF5FBF7E50, 0x0, 0x7FFF5FBF7E40)       = 1 0
sendto(0xD, 0x106CFF714, 0x14)       = 20 0
select(0xE, 0x7FFF5FBF81C0, 0x0, 0x0, 0x7FFF5FBF81B0)       = 1 0
recvfrom(0xD, 0x10125DA24, 0x400)       = 11 0
select(0xE, 0x0, 0x7FFF5FBF7E50, 0x0, 0x7FFF5FBF7E40)       = 1 0
sendto(0xD, 0x106D00CCC, 0xD)       = 13 0
select(0xE, 0x7FFF5FBF81C0, 0x0, 0x0, 0x7FFF5FBF81B0)       = 1 0
recvfrom(0xD, 0x10125DA24, 0x400)       = 72 0
ioctl(0x16, 0x4004667F, 0x7FFF5FBF84FC)       = 0 0
read(0x16, "[Errno 32] Broken pipe\nTraceback (most recent call last):\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 582, in process_request_thread\n    self.finish_request(request, client_address)\n  File \"/Library/Framew", 0x38F)       = 911 0
sendto(0x12, 0x7FFF5FBF8D56, 0x1)       = 1 0
workq_kernreturn(0x1, 0x1000A0090, 0x0)       = 0 0
workq_kernreturn(0x1, 0x1000A0720, 0x0)       = 0 0
kevent(0x3, 0x7FFF5FBF9C08, 0x1)       = 1 0
kevent(0x3, 0x0, 0x0)       = 1 0
kevent(0x3, 0x0, 0x0)       = 1 0
kevent(0x3, 0x0, 0x0)       = 1 0
kevent(0x3, 0x0, 0x0)       = 0 0
workq_kernreturn(0x1, 0x1000A0030, 0x0)       = 0 0
workq_kernreturn(0x1, 0x1000A00C0, 0x0)       = 0 0
open_nocancel("/Applications/GNS3.app/Contents/Resources\0", 0x100004, 0x1081AA414)       = 13 0
fcntl_nocancel(0xD, 0x2, 0x1)       = 0 0
fstatfs64(0xD, 0x7FFF5FBF6BE0, 0xD34)       = 0 0
getdirentries64(0xD, 0x101232000, 0x1000)       = 2360 0
getdirentries64(0xD, 0x101232000, 0x1000)       = 0 0
close_nocancel(0xD)       = 0 0
workq_kernreturn(0x1, 0x1000A00F0, 0x0)       = 0 0
kevent(0x3, 0x7FFF5FBF8DF8, 0x1)       = 1 0
kevent(0x3, 0x7FFF5FBF8DF8, 0x1)       = 1 0
getattrlist("/var/root/Library/Saved Application State/data.data\0", 0x106C47090, 0x106C46CE0)       = -1 Err#2
open("/var/root/Library/Saved Application State/net.gns3.savedState/data.data\0", 0x1, 0x180)       = 13 0
lseek(0xD, 0x0, 0x2)       = 10960 0
writev(0xD, 0x106C47920, 0x3)       = 1232 0
close(0xD)       = 0 0
getattrlist("/var/root/Library/Saved Application State/windows.plist\0", 0x106C47530, 0x106C47180)       = -1 Err#2
open("/var/root/Library/Saved Application State/net.gns3.savedState/windows.plist\0", 0x601, 0x1B6)       = 13 0
write(0xD, "bplist00\244\001\030\",\333\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\023\024\025\026\027\\NSDragRegion_\020\023NSWindowWorkspaceID_\020\027NSWindowZoomButtonFrameYNSDataKey^NSWindowNumber]NSWindowLevel]NSWindowFrame_\020\036NSWindowMiniaturizeButtonFrameWNSTitle_\020\030NSWindowCloseButtonFrameZNSWindowIDO\020|\0", 0x472)       = 1138 0
fsync(0xD, 0x100812800, 0x0)       = 0 0
close(0xD)       = 0 0
__disable_threadsignal(0x1, 0x0, 0x0)       = 0 0
__disable_threadsignal(0x1, 0x0, 0x0)       = 0 0




SocketServer.py:

Code:
568 class ThreadingMixIn:
569     """Mix-in class to handle each request in a new thread."""
570
571     # Decides how threads will act upon termination of the
572     # main process
573     daemon_threads = False
574
575     def process_request_thread(self, request, client_address):
576         """Same as in BaseServer but as a thread.
577
578         In addition, exception handling is done here.
579
580         """
581         try:
582             self.finish_request(request, client_address)
583             self.shutdown_request(request)
584         except:
585             self.handle_error(request, client_address)
586             self.shutdown_request(request)
587
588     def process_request(self, request, client_address):
589         """Start a new thread to process the request."""
590         t = threading.Thread(target = self.process_request_thread,
591                              args = (request, client_address))
592         t.daemon = self.daemon_threads
593         t.start()


Last edited by robeen on Tue Jun 19, 2012 9:24 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Tue Jun 19, 2012 2:19 pm 
Offline

Joined: Mon Oct 13, 2008 2:28 pm
Posts: 36
tranzitwww,

Creating a new ASA in a new file works fine!

Loading my old topology and trying to start ASA fails.

I have change UDP port from 20000 to 40000 in topology file

Did what you requested but started GNS3 using saved topology and tried to start ASA2.

Output attached.

Thanks!


Attachments:
gns.txt [45.23 KiB]
Downloaded 243 times
Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Wed Jun 20, 2012 11:00 am 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
Hi,

* For salkindnul: You start the wrong wrapper :))
I've ask you to start Qemuwrapper script not Vboxrapper, because you said that you have problems with ASA not with VBox!
And in the same time it will be great that you upload also the .net file (the topology/project file)

* For VBox, there is "a issue" if the Vbox name contains special characters like "Linux Microcore 3.8.2 [](){}`[email protected]#$%^&-_=+;',.". Vbox allows that string, but works with all that except '%' :)
A VirtualBox machine can have a name with all characters except '*,:,",|,\,<,>,?,/' exactly the characters will are not allowed to have in a file name (Windows) + the character "%"

Red stuff is ok because that is exactly the Vbox name :D
The pipe also works in that form :)
Putty Also :D

So, Can you replace all "bad" characters from "VM Name" string and fix the notification -> "Couldn't set the same hostname as in VirtualBox"
And use that value for Vbox name (inside GNS3, to replace "VBOX1") and Pipe name (Inside Vbox)
Also this can be used from the moment the user is adding a new Vbox in GNS3 global settings...
About Vbox "VM List", "VM Name" that is a little bit confusing :D
"VM List / unique ID:" should be replaced with something like "GNS3 name" or "Identifier name" (Like on Qemu)
Also move the select capability to "VM Name / UUID" and make it read-only.
Now if I try to modify "VM List / unique ID:" it will automatically modify "VM Name / UUID" which is really critical not to be modified!

Quote:
12:46:23: DEBUG (1): sending to vboxwrapper at 127.0.0.1:11525 -> vbox find_vm "Linux Microcore 3.8.2 [](){}`[email protected]#$^&-_=+;',."
12:46:23: DEBUG (2): Set default image Linux Microcore 3.8.2 [](){}`[email protected]#$^&-_=+;',. for node type <class 'GNS3.Node.AnyVBoxEmuDevice.VBoxDevice'>, model 'VBoxDevice'
12:46:23: DEBUG (1): sending to vboxwrapper at 127.0.0.1:11525 -> vbox setattr VBOX1 image "Linux Microcore 3.8.2 [](){}`[email protected]#$^&-_=+;',."
Couldn't set the same hostname as in VirtualBox for VBOX1 because non alphanumeric characters have been detected

putty.exe -serial \\.\pipe\VBOX\Linux_Microcore_3.8.2_[](){}`[email protected]#$^&-_=+;',. -wt "VBOX1 [Local Console]" -gns3 5

Attachment:
vbox.jpg
vbox.jpg [ 104.95 KiB | Viewed 8656 times ]


Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Wed Jun 20, 2012 2:11 pm 
Offline

Joined: Mon Oct 13, 2008 2:28 pm
Posts: 36
Maybe this explains it?

C:\Program Files\GNS3>qemuwrapper-start.cmd
Qemu Emulator Wrapper (version 0.8.3)
Copyright (c) 2007-2011 Thomas Pani & Jeremy Grossmann

Unable to start Qemu: [Error 2] The system cannot find the file specified
Path to Qemu seems to be invalid, please check. Current path is qemu-system-i386
Press any key to continue . . .

Thanks


Attachments:
topology.net [5.43 KiB]
Downloaded 195 times
Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Wed Jun 20, 2012 7:20 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
Yes salkindnul, that explains why is not working :)
Quote:
Unable to start Qemu: [Error 2] The system cannot find the file specified
Path to Qemu seems to be invalid, please check. Current path is qemu-system-i386



* New windows script to extract ASA/PIX configs (all configs from the FLASH file, not only startup-config)
This is similar to extract nvrams for Dynamips... ;)

One day I have to merge those scripts together and make the process recursive for all subfolders... (to be smarter)
Here I've used "strings -1" because is faster for big files than "cat -v".
Another file in GNS3 directory, soon will be 100 (without logs files) :D

Attachment:
extract-pix+asa-flash.zip [242.63 KiB]
Downloaded 278 times


* I you power on/off a single node and the process fails, the user is only notified in debug mode :)
Most of them never use debug...
A log message will be welcome :D

* The access denied exceptions in python still comes from time to time... (while trying to close a putty process)
Once I saw it suppressed by a log message in debug.


Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Wed Jun 20, 2012 10:29 pm 
Offline

Joined: Mon Oct 13, 2008 2:28 pm
Posts: 36
the script did extract the configuration successfully from ASA2 flash

what can i do to trobleshoot?


GNS3 management console. Running on GNS3 version 0.8.3
Copyright (c) 2006-2012 GNS3 Project

=> debug 3
=> 00:22:14: DEBUG (1): sending to qemuwrapper at 127.0.0.1:10525 -> qemu start ASA2
00:22:14: DEBUG (1): returned -> ["209-unable to start instance 'ASA2'"


Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Thu Jun 21, 2012 4:48 am 
Offline
Site Admin

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

Quote:
Unable to start Qemu: [Error 2] The system cannot find the file specified
Path to Qemu seems to be invalid, please check. Current path is qemu-system-i386


I updated the Windows all-in-one to fix that issue (see first post). Please can you try again?

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: GNS 0.8.3 pre-release testing
PostPosted: Thu Jun 21, 2012 8:31 am 
Offline

Joined: Mon Oct 13, 2008 2:28 pm
Posts: 36
Now it works!

Thanks

Niklas




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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