It is currently Wed Feb 08, 2012 10:49 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: Fri Apr 23, 2010 8:19 pm 
Offline

Joined: Mon Mar 29, 2010 8:23 am
Posts: 7
hi
I am not being able to save configuration on tiny core, i have done the following

/opt/bootlocal.sh
hostname PC1
ifconfig eth0 172.16.5.2/24
route add default gw 172.16.5.254

/usr/bin/filetool.sh backup
after that it shows that i has taken all the backup but when i restart the virtual host all settings vanished.

could someone plz help me out as i m stuck on this and also how to run multiple host.

thanks






Attachments:
File comment: here is the screen shot of configuration
tinycore.png
tinycore.png [ 63.25 KiB | Viewed 2319 times ]
Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sat Apr 24, 2010 1:02 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi, you did everything OK except one important thing ;-)

You must edit /opt/bootlocal.sh and type eth0 parameters in to this file.

1. So start vim editor:
vi /opt/bootlocal.sh

2. Now you can add eth0 parameters (IP address, mask etc.):
type letter i - this command switch vi editor into Insert mode

3. After you adding your lines you can save changes:
Press button Esc
Write :wq
Press Enter

4. Now it is file bootlocal.sh modified and you can call:
/usr/bin/filetool.sh backup

Quote:
http://lowfatlinux.com/linux-editor-vi.html


Cheers

_________________
Brezular

http://brezular.wordpress.com


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

Joined: Mon Mar 29, 2010 8:23 am
Posts: 7
wow it works now, thanks for your help, this virtual machine is amazing it works really fast.
is there any chance that i can run multiple host in one topology??? i have tried it but each time it gives error sometime it says '' a disk read error ctrl+alt+del to restart'' and some time that boot screen just doesnt come up.... which is very sad coz i m desperate to run multiple hosts....
and one more thing is there any chance to run winxp host as a virtual qemu host?? i have tried it but it doesnt boot up disk error comes up

thanks again for ur kind help
appreciated


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Tue May 11, 2010 4:26 pm 
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.

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,


Here are my findings:
>> With windows, e1000 didn't worked for me, pcnet instead works.
>> Multiple qemu host management have some issue.(Multiple host connect failed/lost; to me it seems a bug in qemu_manager)
>> If you are putting tcl, with 6-10 MB highly optimized and cusomized for your need, why not to provide an option to disable the graphics.
heres how: Manipulate tcl initrd's /etc/inittab and there you change the autologin through serial.(look at tcl homepage on how to put your own customization
without compiling the kernel. http://wiki.tinycorelinux.com/tiki-index.php?page=Remastering )
ttyS0::respawn:/sbin/rungetty ttyS0 --autologin root
Next change is to grub menu.lst file boot option (there are tons of howto on login/debugging through serial port.):
kernel /boot/bzImage quiet console=tty0 console=ttyS0,115200n8

With that when you supply -no-graphic option to qemu host, qemu won't
present the graphical window. When you try to get console from the gns3 workspace you will get a kind of telnet session similar to the one given by router, just like
any other linux prompt. If you don't specify -no-graphic option in qemu, even though in that case, you will get the qemu-emulated monitor(graphical window) along
with login-prompt on serial-port.(telnet localhost port). I used the image which is uploaded on source-forge and did all of this manipulation. Please let me know if you
want me to upload it there. Please note login user is tc on serial console without any password.(type tc and hit enter on login prompt)
For now with this customization linux.img is available at http://theanand.info

Please see the attached .png image


Attachments:
File comment: Screenshot
gns3-using-qemu-host.PNG
gns3-using-qemu-host.PNG [ 161.84 KiB | Viewed 2747 times ]
Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sun May 16, 2010 9:25 pm 
Hello,


Following the short tutorial:

Code:
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 :)



my devices start, I can configure an ethernet interface on the router, but there is no console for the Qmeu host; I can click on console (short screen appears, but disappears very quickly [unable to view contents]), but no console.
I can stop the devices, remove the link, start the Qemu host and console session automatically appears.

Output from qemuwrapper:

qemu: Unknown network device: udp
pid: 5074
Renicing to 19
5074: old priority 0, new priority 19


I did patch qemu, or at least I thought I did. I will go back to ensure that it is patched.


Anyone have any ideas

Thanks
Billy


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Mon May 17, 2010 3:37 am 
I downloaded qemu 0.12 source (Apparently, it does not need to be patched).

compiled and running out of /usr/local/bin

evilbit@evilbit01 ~/programs/GNS3-0.7-src $ /usr/local/bin/qemu -version
QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard

same thing, no console access for the host:

Connection from ('127.0.0.1', 37457)
Shutdown in progress...
Shutdown completed.
Connection from ('127.0.0.1', 47452)
Connection from ('127.0.0.1', 47453)
Connection from ('127.0.0.1', 47454)
Shutdown in progress...
Shutdown completed.
Qemu path is now /usr/local/bin/qemu
Qemu-img path is now /usr/local/bin/qemu-img
!! QEMU1.console = 3000
!! QEMU1.netcard = e1000
!! QEMU1.image = /home/evilbit/Downloads/linux-microcore-2.10.img
!! QEMU1.ram = 32
!! QEMU1.options = -no-acpi
command: ['/usr/local/bin/qemu', '-m', '32', '/home/evilbit/programs/gns3/qemu.tmp/QEMU1/FLASH', '-hdb', '/home/evilbit/programs/gns3/qemu.tmp/QEMU1/SWAP', '-net', 'nic,vlan=0,macaddr=00:aa:00:d7:d9:00,model=e1000', '-net', 'udp,vlan=0,sport=20000,dport=10000,daddr=127.0.0.1', '-net', 'nic,vlan=1,macaddr=00:00:ab:cd:ef:01,model=e1000', '-net', 'nic,vlan=2,macaddr=00:00:ab:cd:ef:02,model=e1000', '-net', 'nic,vlan=3,macaddr=00:00:ab:cd:ef:03,model=e1000', '-net', 'nic,vlan=4,macaddr=00:00:ab:cd:ef:04,model=e1000', '-net', 'nic,vlan=5,macaddr=00:00:ab:cd:ef:05,model=e1000', '-serial', 'telnet:127.0.0.1:3000,server,nowait', '-no-acpi']
qemu: -net udp,vlan=0,sport=20000,dport=10000,daddr=127.0.0.1: Parameter 'type' expects a network client type
pid: 10930
Renicing to 19
10930: old priority 0, new priority 19

I believe it is crashing on this: qemu: -net udp,vlan=0,sport=20000,dport=10000,daddr=127.0.0.1: Parameter 'type' expects a network client type
but have no idea the "type it is referring to.

I am running Linux:
evilbit@evilbit01 ~ $ uname -a
Linux evilbit01 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux

GNS Version 0.7.1
UPDATE: reverted to 11.0, patched and have it working now. Appears that qemu 0.12.5 via git does not work tho is natively patched for UDP.

Thanks
Billy


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sun Jun 20, 2010 11:20 am 
Offline

Joined: Mon Oct 13, 2008 11:26 am
Posts: 817
Location: Finland
Hi,

I made small tutorial about all this stuff.

post6264.html#p6264

_________________
Br,
Kaage
Image Image


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Sun Jun 27, 2010 8:04 pm 
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?


iperf a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network that is carrying them would help in testing QoS configurations


Top
  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Thu Jul 01, 2010 11:18 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Quote:
iperf a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network that is carrying them would help in testing QoS configurations

Hi,
read this topic, please:
topic2274.html

Cheers,

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Fri Jul 02, 2010 1:29 pm 
Offline
Site Admin

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

I uploaded 2 new Qemu images:

- 1 image based on microcore Linux 2.11.5 which is about the same as microcore Linux 2.10. You can download it here
- 1 image based on tinycore Linux 2.11.5, this one has a small graphical desktop, therefore you can start multiple terminals, add new applications (if connected to Internet) etc. You can download it here. This requires more RAM to work properly.

You can test these images, if everything is ok I'll post the links in the download section of gns3.net

I also uploaded the updated microcore Linux 2.10 with iperf, thanks Kaage :)

Thanks!





_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
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 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