It is currently Wed Feb 08, 2012 10:53 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 16, 2010 3:26 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Solution: replace qemuwrapper.exe by this fixed version: http://downloads.sourceforge.net/gns-3/ ... e?download

Cheers,





_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Fri Apr 16, 2010 7:22 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
yes it works OK now - but only for one qemu host. The second one and other hosts don't run - it seems to be the same problem like with Junipers on Windows.

Please have a look at:
Quote:
http://www.gns3.net/phpBB/topic1914.html

Quote:
http://www.gns3.net/phpBB/topic1931.html


Thanks,

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 4:25 am 
Offline

Joined: Wed Apr 21, 2010 4:10 am
Posts: 7
So, I am either missing something completely or this just is not working for me. I downloaded the "linux-microcore-2.10.img" file and am running it in QEMU. I can boot into it and su as root and assign IP addresses to interfaces. I have loaded a Cisco 7200 series router and connected it to my host via FastEthernet. Here are my outputs:

Linux Box:
Image


Router#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up

GigabitEthernet1/0 10.0.0.2 YES manual up up

Router#sh run interface fastEthernet 0/0
Building configuration...

Current configuration : 84 bytes
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex half
end

(Yes I tried setting it to full duplex)


My layout:

Image

Router#ping 192.168.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

I really like this linux box and I want to use it in my project without having to use VMWare to create PCs to connect to. Is there a linux firewall I am missing? iptables? What am I doing wrong?


Lastly if I stop the QEMU host it closes the window for it. If I try and start the QEMU host again I never get a console window for it, I have to restart GNS3 and start from the beginning just to get back into the linux box.


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

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
could you run qemuwrapper manually and post output from this?

Also screenshot of your qemu host ip settings will be useful to see.

Didi you try ping between two hosts connected together?

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 6:30 pm 
Offline

Joined: Wed Apr 21, 2010 4:10 am
Posts: 7
I'm having issues getting a QEMU console to appear after starting more than one QEMU host. If I start both at once using the GNS3 Green GO button nothing happens. If I right click one and click Start I get a QEMU console and the image boots. If I try and right click and stop it I get from the qemuwrapper.exe:

Unable to stop Qemu instance QEMU1
Access is denied.


So if I close the QEMU terminal by mistake, I have no way of reopening it. I have to delete the host and create a new one and start it to get a QEMU console window and access to the linux box again.

I tried running qemuwrapper.exe as Administrator and it let me stop/start my Qemu host. Each time I restarted it I got a Qemu console window and my host booted into the linux-microcore image.

HOWEVER. If I create a second Qemu host in GNS3 and start it, I get no Qemu console, no interface to the host. Also I cannot stop the second host, qemuwrapper.exe tells me "access is denied". So I can start/stop the first instance, but if I create 2 machines I have no control over the second...

Here I started 2 host using a copy of the same image. So two separate identical instances. I started Qemu host1 and got a Qemu console, showed the device booting, etc. I started the second Qemu host and recieved no Qemu console, no way to access the host. I then shut down the first Qemu host (no errors), then tried to shut down the second (access denied.)

Qemu Emulator Wrapper (version 0.3)
Copyright (c) 2007-2009 Thomas Pani & Jeremy Grossmann

Qemu TCP control server started (port 10525).
Connection from ('127.0.0.1', 1344)
Connection from ('127.0.0.1', 1345)
Shutdown in progress...
Shutdown completed.
Qemu path is now C:\CiscoLab\Qemu-0.12.2\qemu.exe
Qemu-img path is now C:\CiscoLab\Qemu-0.12.2\qemu-img.exe
!! QEMU1.console = 3000
!! QEMU1.netcard = e1000
!! QEMU1.image = C:\CiscoLab\linux-microcore-2.10(2).img
!! QEMU1.ram = 64
!! QEMU1.options = -no-acpi
command: ['C:\\CiscoLab\\Qemu-0.12.2\\qemu.exe', '-m', '64', 'C:\\CiscoLab\\
Qemu-0.12.2\\QEMU1\\FLASH', '-hdb', 'C:\\CiscoLab\\Qemu-0.12.2\\QEMU1\\SWAP', '-
net', 'nic,vlan=0,macaddr=00:00:ab:cd:ef:00,model=e1000', '-net', 'nic,vlan=1,ma
caddr=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,ma
caddr=00:00:ab:cd:ef:05,model=e1000', '-serial', 'telnet:127.0.0.1:3000,server,n
owait', '-no-acpi']
pid: 5524
Setting priority class to BELOW_NORMAL
Connection from ('127.0.0.1', 1348)
!! QEMU2.console = 3001
!! QEMU2.netcard = e1000
!! QEMU2.image = C:\CiscoLab\linux-microcore-2.10.img
!! QEMU2.ram = 64
!! QEMU2.options = -no-acpi
command: ['C:\\CiscoLab\\Qemu-0.12.2\\qemu.exe', '-m', '64', 'C:\\CiscoLab\\
Qemu-0.12.2\\QEMU1\\FLASH', '-hdb', 'C:\\CiscoLab\\Qemu-0.12.2\\QEMU1\\SWAP', '-
net', 'nic,vlan=0,macaddr=00:00:ab:cd:ef:00,model=e1000', '-net', 'nic,vlan=1,ma
caddr=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,ma
caddr=00:00:ab:cd:ef:05,model=e1000', '-serial', 'telnet:127.0.0.1:3000,server,n
owait', '-no-acpi']
pid: 3952
Setting priority class to BELOW_NORMAL
command: ['C:\\CiscoLab\\Qemu-0.12.2\\qemu.exe', '-m', '64', 'C:\\CiscoLab\\
Qemu-0.12.2\\QEMU2\\FLASH', '-hdb', 'C:\\CiscoLab\\Qemu-0.12.2\\QEMU2\\SWAP', '-
net', 'nic,vlan=0,macaddr=00:00:ab:cd:ef:00,model=e1000', '-net', 'nic,vlan=1,ma
caddr=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,ma
caddr=00:00:ab:cd:ef:05,model=e1000', '-serial', 'telnet:127.0.0.1:3001,server,n
owait', '-no-acpi']
pid: 6124
Setting priority class to BELOW_NORMAL
Unable to stop Qemu instance QEMU2
Access is denied.


Whichever device is started first, whether Qemu host 1 or 2, when I start the second I get no Qemu console.

I can't telnet into my Linux machine either. (Is this even supported?)

Microsoft Telnet> open 127.0.0.1 3002
Connecting To 127.0.0.1...


However, if I close my Qemu host I get:

Disconnected from host!
Press any key to continue...


So it's like it's connecting but the Linux box isn't doing anything.


I'd like to be able to run multiple host in my configuration. Right now I can't get the host to talk to the router as my previous post shows. I am trying to test two host talking to each other but cannot create two concurrent host.


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 7:01 pm 
Offline

Joined: Wed Apr 21, 2010 4:10 am
Posts: 7
I see on another thread this is a known issue as not being able to run multiple host machines. Is this a windows only problem?

Also, what might be a reason I cannot connect from my host to my router even though the settings are all correct?


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 7:09 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
it seems that you don't have any connection between qemu hosts. Qemu host should be connected via udp ports like in this output:

Quote:
command: ['/usr/local/bin/qemu', '-m', '48', '/home/brezular/CCNP-work/GNS3-work/TEST/test-qemu-host_working/PC2/FLASH', '-hdb', '/home/brezular/CCNP-work/GNS3-work/TEST/test-qemu-host_working/PC2/SWAP', '-kernel-kqemu', '-net', 'nic,vlan=0,macaddr=00:aa:00:77:bb: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']


Did you patched Qemu? Is it any reason why do you use Qemu 0.12.2? Jeremy use Qemu 0.11.0 in his tutorial just like me and it works OK.
Quote:
http://blog.gns3.net/2009/10/olive-juniper/2/


Yes, problem with multiple qemu hosts is windows based any issues on Linux.

I am completely blind or just didn't notice screenshot of your qemu host ;-)

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 7:33 pm 
Offline

Joined: Wed Apr 21, 2010 4:10 am
Posts: 7
You mean like this one I had posted in my first post? Or do you need a SS from my GNS3, I'm not sure what you're asking for...

Image

I will try the other version of Qemu for connecting my host to the router.

>_< So multi host is only a windows based issue?


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 7:43 pm 
Offline

Joined: Wed Apr 21, 2010 4:10 am
Posts: 7
OK, everything works with the older version of Qemu :) The reason I had the newer version is because I had downloaded it from the Qemu site when I was looking for the software to put my lab together. I can ping from my router to my host and my host to my router.

This Tiny Kernel host is most excellent for this application.


Top
 Profile  
 
 Post subject: Re: Contribution to create a virtual host for GNS3
PostPosted: Wed Apr 21, 2010 7:49 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
I am glad to hear that.

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

phpBB SEO