I ssh to a machine and I would like to start a qemu session inside this ssh session.

I thought that the nographic option would do the trick.

-nographic
Normally, QEMU uses SDL to display the VGA output. With this option, you can totally disable graphical output so that QEMU is a simple command line application. The emulated serial port is redirected on the console. Therefore, you can still use QEMU to debug a Linux kernel with a serial console.

Unfortunately, I don't see any output. The command line that I'm using once i've ssh'd to the machine is:

qemu-system-x86_64  -hda debian.img -nographic

Any idea what's happening?

link|improve this question
feedback

3 Answers

You've essentially unplugged the "virtual monitor". -nographic doesn't make the display go to the terminal, it disables it. The serial port (com port) is what would be echo'd into your terminal.

link|improve this answer
ok, so any idea to make the display go to the terminal ? – LB . Apr 1 '10 at 15:24
feedback

My bad,

the -curses option seems to do the trick for what i want to do.

link|improve this answer
feedback

As LB suggested, use -curses to have an interactive terminal session. Ideal for ssh.

I also use the following to monitor the boot process (locally or over ssh). Call qemu with "-serial stdio" and append "console=ttyS0" to grub's kernel line. All kernel output will go to the ttyS0 serial console, with will be printed to stdio (your terminal). That way I can easily copy/paste the boot process, something you cannot do with an sdl window.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.