It is currently Wed Jul 18, 2018 10:53 am


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Issue with GNS3 0.8.2 Alpha7
PostPosted: Fri Dec 09, 2011 12:18 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi,
I am testing GNS3 0.8.2 Alpha7 on Linux Fedora 15. I have two Microcore Qemu images connected via eth0 interfaces.

Issue

When I try to start Qemu1, Microcore is not started. Here is the output of Qemuwrapper.

Quote:
[[email protected] qemuwrapper]# ./qemuwrapper.py
Qemu Emulator Wrapper (version 0.8.2)
Copyright (c) 2007-2011 Thomas Pani & Jeremy Grossmann

Qemu path (qemu) is valid
Qemu-img path (qemu-img) is valid
Qemu TCP control server started (port 10525).
Listening on all network interfaces
Connection from ('127.0.0.1', 35848)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 35848)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 641, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 694, in finish
self.wfile.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
Connection from ('127.0.0.1', 35849)
Shutdown in progress...
Shutdown completed.
Qemu path is now /usr/local/bin/qemu
Qemu-img path is now /home/brezular/Download/GNS3-files/GNS3/Devel/gns3-devel-d2046ba9e4fa/qemuwrapper/qemu-img
!! QEMU1.console = 3000
!! QEMU1.image = /home/brezular/Download/GNS3-files/PC/Microcore/Stable/Host/3.8.2/linux-microcore-3.8.2.img
!! QEMU1.ram = 48
!! QEMU1.options = -no-acpi -nographic
Connection from ('127.0.0.1', 35850)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 35850)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 641, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 694, in finish
self.wfile.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
!! QEMU2.console = 3001
!! QEMU2.image = /home/brezular/Download/GNS3-files/PC/Microcore/Stable/Host/3.8.2/linux-microcore-3.8.2.img
!! QEMU2.ram = 48
!! QEMU2.options = -no-acpi -nographic
Execution failed: [Errno 2] No such file or directory
Execution failed: [Errno 2] No such file or directory
command: ['/usr/local/bin/qemu', '-name', 'QEMU1', '-m', '48', u'/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/FLASH', '-hdb', u'/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/SWAP', '-net', 'nic,vlan=0,macaddr=00:aa:00:af:f8:00,model=rtl8139', '-net', 'nic,vlan=1,macaddr=00:ab:29:8c:3e:01,model=rtl8139', '-net', 'nic,vlan=2,macaddr=00:ab:29:8c:3e:02,model=rtl8139', '-net', 'nic,vlan=3,macaddr=00:ab:29:8c:3e:03,model=rtl8139', '-net', 'nic,vlan=4,macaddr=00:ab:29:8c:3e:04,model=rtl8139', '-net', 'nic,vlan=5,macaddr=00:ab:29:8c:3e:05,model=rtl8139', '-serial', 'telnet::3000,server,nowait', '-no-acpi', '-nographic']
qemu: -m 48: could not open disk image /home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/FLASH: No such file or directory
pid: 6178
Renicing to 19
6178 (process ID) old priority 0, new priority 19


I checked it and /home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/FLASH didn't exist. Now I close project and start GNS3 again. Then I will start Qemu1. Surprisingly, FLASH is correctly created. If I start Qemu2, FLASH will be also created.

Quote:
Qemu Emulator Wrapper (version 0.8.2)
Copyright (c) 2007-2011 Thomas Pani & Jeremy Grossmann

Qemu path (qemu) is valid
Qemu-img path (qemu-img) is valid
Qemu TCP control server started (port 10525).
Listening on all network interfaces
Connection from ('127.0.0.1', 35867)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 35867)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 641, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 694, in finish
self.wfile.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
Connection from ('127.0.0.1', 35868)
Shutdown in progress...
Shutdown completed.
Qemu path is now /usr/local/bin/qemu
!! QEMU1.console = 3000
!! QEMU1.image = /home/brezular/Download/GNS3-files/PC/Microcore/Stable/Host/3.8.2/linux-microcore-3.8.2.img
!! QEMU1.ram = 48
!! QEMU1.options = -no-acpi -nographic
!! QEMU2.console = 3001
!! QEMU2.image = /home/brezular/Download/GNS3-files/PC/Microcore/Stable/Host/3.8.2/linux-microcore-3.8.2.img
!! QEMU2.ram = 48
!! QEMU2.options = -no-acpi -nographic
Formatting '/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/FLASH', fmt=qcow2 size=104857600 backing_file='/home/brezular/Download/GNS3-files/PC/Microcore/Stable/Host/3.8.2/linux-microcore-3.8.2.img' encryption=off cluster_size=0
qemu-img returned with 0
Formatting '/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/SWAP', fmt=qcow2 size=1073741824 encryption=off cluster_size=0
qemu-img returned with 0
command: ['/usr/local/bin/qemu', '-name', 'QEMU1', '-m', '48', u'/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/FLASH', '-hdb', u'/home/brezular/GNS3-work/TEST/test-qemuwrapper4/working/QEMU1/SWAP', '-net', 'nic,vlan=0,macaddr=00:aa:00:c1:76:00,model=rtl8139', '-net', 'nic,vlan=1,macaddr=00:ab:29:8c:3e:01,model=rtl8139', '-net', 'nic,vlan=2,macaddr=00:ab:29:8c:3e:02,model=rtl8139', '-net', 'nic,vlan=3,macaddr=00:ab:29:8c:3e:03,model=rtl8139', '-net', 'nic,vlan=4,macaddr=00:ab:29:8c:3e:04,model=rtl8139', '-net', 'nic,vlan=5,macaddr=00:ab:29:8c:3e:05,model=rtl8139', '-serial', 'telnet::3000,server,nowait', '-no-acpi', '-nographic']
Warning: vlan 0 is not connected to host network
Warning: vlan 1 is not connected to host network
Warning: vlan 2 is not connected to host network
Warning: vlan 3 is not connected to host network
Warning: vlan 4 is not connected to host network
Warning: vlan 5 is not connected to host network
QEMU 0.14.1 monitor - type 'help' for more information
(qemu) pid: 6491
Renicing to 19
6491 (process ID) old priority 0, new priority 19


So far I have not noticed this issue using qemuwrapper 0.8.0.




Attachments:
topology-croped.jpeg
topology-croped.jpeg [ 4.98 KiB | Viewed 2706 times ]

_________________
Brezular

All my tutorials can be found here:
http://brezular.com
Top
 Profile  
 
 Post subject: Re: Issue with GNS3 0.8.2 Alpha7
PostPosted: Fri Dec 09, 2011 3:15 am 
Offline

Joined: Fri Mar 11, 2011 7:39 pm
Posts: 603
Location: Israel
This needs some investigation...
Qemu VMs (WinXP) on Win XP host work fine.

Can you please re-test with 0.8.2-Alpha7 GUI with 0.8.2-t1 qemuwrapper ?
(we can't find major changes between 0.8.0 and 0.8.2, but we'll try to guess)


Attachments:
qemuwrapper-0.8.2-t1.py [40.82 KiB]
Downloaded 126 times
Top
 Profile  
 
 Post subject: Re: Issue with GNS3 0.8.2 Alpha7
PostPosted: Sun Dec 11, 2011 10:48 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi guys,

Technologov -> yes, FLASH is created when 0.8.2-t1 qemuwrapper is used.

My thoughts:
Apparently, the path to qemu-img "Qemu-img path is now /home/brezular/Download/GNS3-files/GNS3/Devel/gns3-devel-d2046ba9e4fa/qemuwrapper/qemu-img" is not correct. That is why FLASH is not created. See the first output of qemuwrapper I posted, please.

When you comment line 794 in qemuwrapper.py
# QEMU_IMG_PATH = os.path.abspath(qemu_img_path)

and substitute it with:
QEMU_IMG_PATH = qemu_img_path

it is working as expected.

bye,

_________________
Brezular

All my tutorials can be found here:
http://brezular.com


Top
 Profile  
 
 Post subject: Re: Issue with GNS3 0.8.2 Alpha7
PostPosted: Sun Dec 11, 2011 11:30 pm 
Offline
Site Admin

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

I made the changes. Anyway os.path.abspath should not be used because 2 lines before we check that the path is correct with os.access(qemu_path, os.F_OK). I did the same regarding qemu-img.

Thanks!



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

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:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO