It is currently Tue Feb 07, 2012 5:29 pm


All times are UTC




Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Contribution to create a virtual host for GNS3
PostPosted: Tue Feb 23, 2010 12:16 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hello,

I'm looking for a contribution. I would like a very fast and small Linux (<=10 MB disk and <=16 MB in memory, something like that) to run under Qemu which supports Intel e1000 NICs (or another NIC supported in Qemu) with basic networking tools (ping, netstat, traceroute etc ...). This image would be integrated in GNS3 to be the virtual host. I think this is a better and extensible solution than creating a virtual host from scratch, moreover the integration will be simple as Qemu is already supported in GNS3.

Hope someone can contribute.

Thanks,





_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Feb 25, 2010 6:34 am 
Hi,

I had tested this linux image (called microcore v2.8.1 from Tiny Core Linux) of around 6.2MB on Qemu 0.9.0 which boots up very fast. It includes all the basic networking tools that is required for basic network troubleshooting etc. , it can act as a DHCP client in a network also.

It also includes the feature of adding new extension to it like various light weight GUI pkg (couple of 100KB) that could come handy later for adding web browser.

If you want i can go further cutting down the kernel features to get 1MB or more off it and also lifting off few changes on boot and other necessary stuff.


Thanks
Shoaib


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Feb 25, 2010 9:48 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

Sounds great! :)

Quote:
If you want i can go further cutting down the kernel features to get 1MB or more off it and also lifting off few changes on boot and other necessary stuff.


Yes I would really appreciate :)

Many thanks,

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Mar 04, 2010 5:19 am 
hi grossmj, I am working on virtual host, my software is under development but i hope i will make a stable release in the end of this month. here is some detail about my virtual host.

i have implemented tcp/ip stack.
TFTP and partially telnet service support.
CLI interface is available similar to Cisco IOS you can use tab and ?.
you can use ping traceroute and debug commands.
it can generate traffic at every layer.

Virtual host can connect with dynamips router using following commands:
configure terminal
system connect dyna-hyp 127.0.0.1 lport 10 rpot 11

or you can bridge it to physical interface:
configure terminal
system connect pcap-int 192.168.1.111

you can also invoke a dialog box to connect
system gui connect

I also implemented gui interface for traffic generating use this command:
system gui traf-gen

I'll be happy if you are interested to give a look at it. please download...
http://www.4shared.com/account/file/233 ... TVPC4.html


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Mon Mar 08, 2010 12:21 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Do you have the sources or is it Windows only?

Thanks,


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Tue Mar 09, 2010 9:00 pm 
currently its only windows based i am using ms visual c. i am using contiki/uip as tcp/ip stack it has already ported on linux, then i am using winpcap to bridge it to physical interface there are many alternatives are available on linux. i can also port CLI part and other component of software on linux but i dont have any idea of gui programming in linux.


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Apr 08, 2010 4:08 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
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.

In Microcore:

sudo su
ifconfig eth0 10.0.0.1 netmask 255.0.0.0
ifconfig eth0 up

In Cisco IOS:

interface Ethernet 0/0
ip address 10.0.0.2 255.0.0.0
no shut

ping 10.0.0.1

Any comments is welcome :)

Cheers,

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Apr 08, 2010 10:55 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
I noticed that IP settings Qemu host are lost after restart. I wanted to save my Qemu host configuration (IP, mask, GW, hostname) so I googled it and I did:

1. Add this line to: /opt/bootlocal.sh
sudo hostname PC1
sudo ifconfig eth0 172.16.5.2/24
sudo route add default gw 172.16.5.254

2. Run: sudo /usr/bin/filetool.sh backup

3. Stop Qemu host: sudo halt

After rebooting host IP setting had been saved.
But if 2 instances Qemu host were in topology only the first started host had saved IP setting. The second one booted only with saved hostname - IP setting were lost.
Does anyone know how to fix it or another way how to set permanent IP on host?

Thanks,

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Fri Apr 09, 2010 1:25 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

Do not put sudo commands in /opt/bootlocal.sh.

Log as root with sudo su then edit /opt/bootlocal.sh

Code:
hostname PC1
ifconfig eth0 172.16.5.2/24
route add default gw 172.16.5.254


It worked for me.

Cheers,

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Fri Apr 09, 2010 3:23 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
I did as you suggest and it seems that it works now...

Oh, I almost forget to say big thank you for Qemu host - it is very fast and easy to use.

Btw. Will be more features e.g. ipv6 and ssh available?

Cheers,





_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4, 5, 6  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:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO