It is currently Sat Oct 25, 2014 6:14 am


All times are UTC




Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sat Apr 10, 2010 1:54 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
I'm preparing an new image with SSH (client & server), iptables, iproute, tcpdump and IPv6 support. Any ideas on what else would be very useful?



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sat Apr 10, 2010 3:42 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Here is the new Qemu image

Cheers,

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sat Apr 10, 2010 5:38 pm 
Offline

Joined: Thu Jan 28, 2010 9:31 am
Posts: 42
grossmj wrote:
Hi,

Here is a small Linux host image to be used in GNS3:

http://downloads.sourceforge.net/gns-3/ ... g?download

Quick how to (example):

In GNS3, go to Preferences -> Qemu -> Qemu host

Identifier: Microcore
Binary image: local path to linux-microcore-2.10.img
Memory: 32 MB
NIC: e1000
Qemu options: -no-acpi

Save, OK, drag & drop Qemu host symbol and a Cisco router on the scene. Connect the 2 nodes with a Ethernet link. Start the devices.
Any comments is welcome :)

Cheers,

I followed all your steps but It crashed everytime I started the Qemu host:
Quote:
Error: could not communicate with qemuwrapper server localhost
It may have crashed. Check the qemuwrapper server output.
Exiting

Is something wrong?


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sat Apr 10, 2010 9:42 pm 
Offline

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

1. When I set RAM 32MB I get "Out of memory kill process XY depmod"during the boot. After boot I check that is about 27 MB used during host running. I set RAM to 64 MB - Message gone and it speed up boot process too.

2. I can't connect from router to ssh server on Qemu host- connection refused by remote host. Is ssh server available?

Thanks,

_________________
Brezular

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


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sun Apr 11, 2010 1:21 pm 
Offline

Joined: Mon Oct 13, 2008 11:26 am
Posts: 817
Location: Finland
grossmj wrote:
I'm preparing an new image with SSH (client & server), iptables, iproute, tcpdump and IPv6 support. Any ideas on what else would be very useful?


Hi, SNMPwalk would be useful. MTR would be useful too but not mandatory.

http://en.wikipedia.org/wiki/MTR_(software)
http://www.bitwizard.nl/mtr/

_________________
Br,
Kaage
Image Image


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Mon Apr 12, 2010 5:28 pm 
Hello everybody.
This is my first post on this forum and first of all I want to thank
developers of this software! This helped me very much in practice.

I also have a question regarding "Qemu Host". I'm trying to follow
tutorial posted above step by step.

I'm running Windows 7 Ultimate 32bit with version 0.7 RC1 (full install).
I've downloaded "linux-microcore-2.10.img" file and pointed it as Binary Image
in QEMU Settings. The problem is when I drag Qemu Host on workplace, link
it with router and try to start, it gives me "Connection Lost" and in Dynamips
console it gives me "=> Error: Could not communicate with qemuwrapper server localhost
It may have crashed. Check qemuwrapper server output."

Then I started exploring GNS3 install folder and found "qemuwrapper-start.cmd'.
I'm starting it and getting Qemu Emulator Wrapper (version 0.2.5).
Then starting GNS3 and dragging "Qemu Host" to workplace. Qemu manager immediately
tells me, that "Qemu is already running on port 10525, it will not be shutdown after you quit GNS3". So I assume its just a notification.

At the same time Wrapper gives me this output:

Connection from ('127.0.0.1', 51295)
Shutdown in progress...
Shutdown completed.
Qemu path is now .
!! QEMU1.console = 3000
!! QEMU1.netcard = e1000
!! QEMU1.image = D:\IOS\linux-microcore-2.10.img
!! QEMU1.ram = 32
!! QEMU1.options = -no-acpi

Now I link Qemu host with router and when I attempt to start nodes
it crashes with "connection lost" error and qemu wrapper gives such
output:

Exception happened during processing of request from ('127.0.0.1', 51295)
Traceback (most recent call last):
File "SocketServer.pyc", line 558, in process_request_thread
File "SocketServer.pyc", line 320, in finish_request
File "SocketServer.pyc", line 615, in __init__
File "qemuwrapper.py", line 383, in handle
File "qemuwrapper.py", line 433, in handle_one_request
File "qemuwrapper.py", line 599, in do_qemu_start
File "qemuwrapper.py", line 105, in start
File "qemuwrapper.py", line 230, in _build_command
File "qemuwrapper.py", line 311, in _disk_options
AttributeError: 'module' object has no attribute 'spawnlp'

From what I think, I guess I need to install QEMU itself additionally and point
in GNS3-s "Path to Qemu (not used for PIX)" ?

I've also found several threads, where its said that you need to create qemu flash.
But none of this was pointed above in the tutorial.

Can anyone help me with this matter?

Thanks.


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Tue Apr 13, 2010 7:25 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Quote:
From what I think, I guess I need to install QEMU itself additionally and point
in GNS3-s "Path to Qemu (not used for PIX)" ?


Yes you must set path to qemu. Also set path to qemu-img and qemuwrapper.

You should use kqemu to speed up qemu virtualization - check Qemu host setting, please

Quote:
I've also found several threads, where its said that you need to create qemu flash.
But none of this was pointed above in the tutorial.


You don't need manually create FLASH and SWAP. They are both created with qemu-img after your Qemu host is started.

Also consider using last GNS3 0.7 (you use RC)

Cheers,

_________________
Brezular

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


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Tue Apr 13, 2010 12:39 pm 
I've downloaded and installed recent version of GNS3 (all-in-one) package,
which included Qemu 0.11.0 patched. To understand me better I will provide
screenshots:

Image

Image

Now I drag my Qemu host and 3600 series router on the workplace,
link them together with ethernet and once I click on start nodes this
is what I get (qemuwrapper starts running as background process as soon as
I drag the host in the workplace):

Image

Exactly the same problem :(

Host actually connects to qemuwrapper, as if I manually start qemuwrapper.exe
it shows me connected host in its output:

Image


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 14, 2010 9:28 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi,
I tested Qemu host on on Win XP SP3 and I got the same error as you described.
I use Qemu host on Linux Fedora 11 without any issues.

Cheers,

_________________
Brezular

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


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Fri Apr 16, 2010 12:38 pm 
Guess no one has a solution to that problem :(




Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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