It is currently Fri Nov 16, 2018 9:47 am


All times are UTC




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Qemu starts but ASA doesn't
PostPosted: Sun Jan 12, 2014 5:31 am 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
I tried version 1.7 of qemu and it wouldn't work. version 1.6.2 loads but I never see initrd and vmlinuz kernel get started. I have the paths for qemu pointing to the qemu-system-x86_64 and the qemu-img binaries. the previous is when I preconfigure for 8.4. If I preconfigure for 8.0 everything loads but immediately after likewise manager starts ASA crashes and does a memory dump. I have pretty well spent a whole day messing around with ASA and qemu. I am getting closer. If anyone could offer suggestions it would be greatly appreciated.




Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Mon Jan 27, 2014 8:23 pm 
Offline

Joined: Mon Jan 27, 2014 7:41 pm
Posts: 19
Linux or Windows? version?
what GNS3 version ?
why did you point qemu to qemu-system-x86_64, and not qemu-system-i386 ?
i am having a similar problem, which i narrowed down to how GNS3/qemuwrapper.py invoke qemu.
i posted my similar question here:
topic8304.html


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Sat Feb 08, 2014 4:03 pm 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
That is exactly the problem I am having. I can get to the point it starts and then does a memory dump. And to get there was a headache, checking various versions, paths, settings and such. I will probably just wait for a fix. I can live without ASA for now. I'm not a linux expert, I know my way around and such but not enough to sort this out. I chose Linux because I get way better performance than in windows and I am kind of sick of windows lousy security model (at least on the desktop side).


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Sat Feb 08, 2014 9:20 pm 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
I think I may give it another try. I finally got Qemu to compile. That was a task in itself. It is version 1.6.2. One thin that is confusing is what should I specify for the qemu executable in the GNS3 setup. I am running:

64 bit version of Linux mint on an AMD 64 bit processor (FX-4300).

The compile sure takes a long time to complete. I ran configure and than a make install. Th next piece and I have gotten here before is what do I specify for the following in GNS 0.8.6

path to qemu - which executable (I am using qemu but there are other qemu executables)

in advanced options anything special. Are there other settings I should check as well. I am able to get the ASA device to boot but just after loading Likewise Service Manager it does a memory dump and restarts. I get this behavior in both 1.6.2 and 1.7.0


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Mon Feb 10, 2014 7:28 pm 
Offline

Joined: Mon Jan 27, 2014 7:41 pm
Posts: 19
try connecting something to the ASA, like a GNS3 switch, and then start the ASA.

If you still get the memory dump, open a linux terminal (try Ctrl+Alt+T from the Ubuntu desktop), run the following command:
Code:
ps aux | grep qemu

and post the results. When you are not running qemu, you should be getting an output very similar to this:
Code:
[email protected]:~$ ps aux | grep qemu
wizard    3353  0.0  0.0  13600   936 pts/0    S+   19:46   0:00 grep --color=auto qemu
[email protected]:~$

if this is the only output you get, run GNS3, connect an ASA to a GNS3 switch, start the ASA, issue the ps aux command in the terminal and post the command's output.

another suggestion would be to try the following:
issue the following two commands into a terminal, and post the results here:
Code:
which qemu
which qemu-system-i386

and then issue the following command:
Code:
qemu-system-i386 -m 1024 -nographic -cpu coreduo -icount auto -hdachs 980,16,32 -kernel asa842-vmlinuz -initrd asa842-initrd.gz -append "ide_generic.probe_mask=0x01 ide_core.chs=0.0:980,16,32 auto nousb console=ttyS0,9600 bigphysarea=65536 ide1=noprobe no-hlt" -net nic,vlan=0 -net nic,vlan=1 -net nic,vlan=2 -net nic,vlan=3 -net nic,vlan=5 -net nic,vlan=6 -serial telnet::4444,server -writeconfig working.cfg

then telnet into localhost 4444 using the following command:
Code:
telnet 127.0.0.1 4444

and see whether you get a memory dump.
post any command output you get here, maybe we can figure out what's wrong

By the way, fyi
of the qemu executables, ASA uses qemu-system-i386.

a more general suggestion would be to try the troubleshooting steps/style and reporting style that i used in the thread at topic8304.html


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Wed Feb 12, 2014 8:54 pm 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
Thanks. I have to recompile qemu. I had my Linux ext4 filesystem blow up and it took a lot with it. Here are my results

Result to ps aux | grep qemu

Code:
mantissa  3094  0.0  0.0 118160  9796 pts/2    Sl+  17:35   0:00 /usr/bin/python /usr/share/gns3/qemuwrapper.py --listen 127.0.0.1 --port 10525 --no-path-check
mantissa  3161 72.5  4.3 1004736 702732 pts/2  SNl+ 17:39   0:50 /usr/local/bin/qemu-system-x86_64 -name ASA3 -m 512 -hda /tmp/GNS3_JrCPO1/qemu-flash-drives/ASA3/FLASH -kernel /home/mantissa/images/ASA/asa842-vmlinuz -initrd /home/mantissa/images/ASA/asa842-initrd.gz -append auto nousb ide1=noprobe bigphysarea=16384 console=ttyS0,9600n8 hda=980,16,32 -device e1000,mac=00:00:ab:99:70:00 -device e1000,mac=00:00:ab:f2:87:01 -serial telnet:127.0.0.1:3003,server,nowait -vga none -hdachs 980,16,32
mantissa  3345  0.0  0.0   9456   944 pts/3    S+   17:40   0:00 grep --colour=auto qemu


which qemu generates no output. I chose to use the qemu-system-x86_64 binary because in the 1.6.2 package there is no qemu binary.

which qemu-system-i386
Output: /usr/local/bin/qemu-system-i386

I'll check on the last option in a llittle bit as it looks like there are some errant processes I should kill.


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Thu Feb 13, 2014 1:59 am 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
The last option works! Now I dont know why but I was forced to run the qemu session with sudo or I got a permission denied message. So I take it that I can use the parameters from the session and they should work in gns3? I dont know if the qemu wrapper will cause problems!?

Thanks. I am closer than ever. Still a couple of small hurdles to cross.


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Thu Feb 13, 2014 7:11 pm 
Offline

Joined: Mon Jan 27, 2014 7:41 pm
Posts: 19
  1. so apparently you entered qemu-system-x86_64 in GNS3's qemu path. Try using qemu-system-i386 in the qemu path.
  2. From your output, it seems to me that you did not connect anything to the ASA you created in GNS3? Can you verify that at least a GNS3 Ethernet switch is connected to all ASA ports? From my understanding, only one connection is enough, but just to be on the safe side until you get it working, connect all ASA ports to a GNS3 switch.
  3. Try selecting 6 e1000 NICs on the ASA
  4. Post all the terminal commands you typed, and all the output that led to the "permission denied" message
  5. Help us help you by posting output from all the commands you run, and whenever you start an ASA through GNS3, post the sp aux | grep qemu output. When starting ASA from GNS3, attach a screenshot of your network.


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Thu Feb 13, 2014 8:48 pm 
Offline

Joined: Wed Dec 11, 2013 9:58 pm
Posts: 27
Ok I have gotten farther. There was a rights issue that resulted from me copying some files from backup. That is solved (the permission denied message is gone) and if I run the qemu-system-i386 with the options you described it boots and I get to a cisco prompt no problem. It is stable (at least was so for 5 minutes). Next up is gns3.

GNS3
I have verified that the qemu-system-i386 that I am loading is from /usr/local/bin and that is the 1.6.2 version that I compiled. I took the defaults in gns3 except I pointed to the 1.6.2 qemu-system-386 and the 1.6.2 qemu-img. If I load with the 8.4 profile it doesnt boot. If I load with the 8,0 profile it memory dumps after the Likewise Service Manager loads. I have reduced NIC cards to 2 in both profiles and made sure that both ports are connected to a switch. The kernel and initrd are the same ones that I used for the standalone test.

And lastly I am running 64 bit Linux mint on an AMD processor with 16 GB of RAM.



I will write a sticky once done. This is a really cool product and I dont mind at all doing some troubleshooting


Top
 Profile  
 
 Post subject: Re: Qemu starts but ASA doesn't
PostPosted: Thu Feb 13, 2014 8:56 pm 
Offline

Joined: Mon Jan 27, 2014 7:41 pm
Posts: 19
  1. Try selecting 6 e1000 NICs on the ASA. Why did you go with 2 instead of six?
  2. Post the output from ps aux | grep qemu. From my experience, the qemuwrapper invokes qemu in a way that doesn't work. Unless you give me some command output to work with, i cant do much.
  3. From my experience the ASA 8.4(2) image works fine. Did you invoke qemu with the 8.4 image from the terminal and did it work?




Last edited by w1zard on Fri Feb 14, 2014 6:32 am, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  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