As I understand it, in GNS3 Qemu is launched via QemuWrapper - is there any way of seeing the command line that is passed to Qemu/Pemu as that would be really useful to debug Qemu startups?
rednectar wrote:
Qemu 1.4 worked just fine for a Microcore Linux guest, but for an ASA (that worked under 0.11) I got this:
ASA with qemu 14.1.jpg
Two problems:
1. The Qemu guest window opened anyway (no big deal)
2. The console didn't get up - never got passed "Connected"
I stopped the ASA, restarted it and got a little bit further, but not as far as a console prompt.
So I'm guessing that 0.11 is probably the best to go with. But is there a way to make the patched Linux binary available, to save folk from having to go through the whole song-and-dance to make it work?
The command-line parameters for consoles changed with later (post 1.x I think) versions of Qemu, as did the UDP tunnel syntax.
For ASA842, make sure you have
console=ttyS0,9600n8 in you append statement and
-nographic in your Qemu command line.
Here's a script I use to call Qemu 1.2.1 from a shell (OSX 10.6) and connect to the console via telnet (localhost 4444):
Code:
qemu-system-i386 \
-cpu pentium2 \
-m 512 \
-net nic,vlan=0,macaddr=00:aa:00:18:6c:00 \
-net nic,vlan=1,macaddr=00:aa:00:18:6c:01 \
-net socket,vlan=1,udp=127.0.0.1:10843,localaddr=127.0.0.1:10842 \
-net nic,vlan=2,macaddr=00:aa:00:18:6c:02 \
-net nic,vlan=3,macaddr=00:aa:00:18:6c:03 \
-net nic,vlan=4,macaddr=00:aa:00:18:6c:04 \
-net nic,vlan=5,macaddr=00:aa:00:18:6c:05 \
-kernel asa842-vmlinuz \
-append "ide_generic.probe_mask=0x01 ide_core.chs=0.0:980,16,32 console=ttyS0,9600n8 \
bigphysarea=65536 auto nousb ide1=noprobe no-hlt" \
-initrd asa842-initrd.gz \
-icount auto \
-nographic \
FLASH \
-serial mon:telnet::4444,server,nowait \
-writeconfig working.cfg
I also use
-serial mon:telnet::4444,server,nowait which puts the Qemu monitor in the ASA console - Ctrl-A h brings up a menu and it allows me to terminate Qemu.
I'm also experimenting with the
-daemonize option but I've not figured out yet how this interacts with
-nographic.