qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] how to run qemu independent of X?
@ 2004-11-11 22:31 Paul Jakma
  2004-11-12  1:03 ` Jack Cummings
  2004-11-12 11:27 ` Magnus Damm
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Jakma @ 2004-11-11 22:31 UTC (permalink / raw)
  To: Qemu

Hi,

I'd like to run qemu independent of X, so i can run from it a screen 
session. I tried the -nographic option, but nothing happened, the 
monitor was unresponsive, and i got no output other than the initial 
prompt. Has anyone used -nographic successfully?

On a possibly related note, I try to run stdio serial, qemu starts 
but immediately becomes unresponsive..

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org	Key ID: 64A2FF6A
Fortune:
Recursion n.:
 	See Recursion.
 		-- Random Shack Data Processing Dictionary

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-11 22:31 [Qemu-devel] how to run qemu independent of X? Paul Jakma
@ 2004-11-12  1:03 ` Jack Cummings
  2004-11-12  9:17   ` Paul Jakma
  2004-11-12 11:27 ` Magnus Damm
  1 sibling, 1 reply; 7+ messages in thread
From: Jack Cummings @ 2004-11-12  1:03 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

On Thu, Nov 11, 2004 at 10:31:22PM +0000, Paul Jakma wrote:
 
> I'd like to run qemu independent of X, so i can run from it a screen 
> session. I tried the -nographic option, but nothing happened, the 
> monitor was unresponsive, and i got no output other than the initial 
> prompt. Has anyone used -nographic successfully?
 
No, but I do something similar with the vnc(rfb) patch:

http://libvncserver.sourceforge.net/qemu/

--Jack 

--
Jack (John) Cummings                       http://mudshark.org/jack 
PGP fingerprint: 0774 D073 E386 B70B 6B16  2D2B 1DD8 F8B0 CCF0 FAEE
Now playing on Prime:    Stop 4 Love -- Basement Jaxx
Now playing on Remedial: Kitchenware & Candybars -- Stone Temple Pilots

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-12  1:03 ` Jack Cummings
@ 2004-11-12  9:17   ` Paul Jakma
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Jakma @ 2004-11-12  9:17 UTC (permalink / raw)
  To: jack, qemu-devel

On Thu, 11 Nov 2004, Jack Cummings wrote:

> No, but I do something similar with the vnc(rfb) patch:
>
> http://libvncserver.sourceforge.net/qemu/

I'll try that, thanks!

> --Jack

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org	Key ID: 64A2FF6A
Fortune:
Few things are harder to put up with than the annoyance of a good example.
 		-- "Mark Twain, Pudd'nhead Wilson's Calendar"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-11 22:31 [Qemu-devel] how to run qemu independent of X? Paul Jakma
  2004-11-12  1:03 ` Jack Cummings
@ 2004-11-12 11:27 ` Magnus Damm
  2004-11-12 13:16   ` Paul Jakma
  1 sibling, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2004-11-12 11:27 UTC (permalink / raw)
  To: qemu-devel

On Thu, 2004-11-11 at 23:31, Paul Jakma wrote:
> I'd like to run qemu independent of X, so i can run from it a screen 
> session. I tried the -nographic option, but nothing happened, the 
> monitor was unresponsive, and i got no output other than the initial 
> prompt. Has anyone used -nographic successfully?

I do. All the time.

You need a Linux kernel that is compiled with serial console support.
And to enable that you need to pass the parameter "console=ttyS0,9600"
to the kernel too.

You will not get any output from the BIOS or from the bzImage-bootloader
though, they seem to write directly to the VGA hardware. And I am not
sure if Ctrl-Alt-1/2/3 works correctly - I do however get a monitor
prompt displayed the first thing... wierd.

I do no not think the -nographic option disables emulation of VGA
hardware, though.  An option for that might be useful for embedded
programmers.

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-12 11:27 ` Magnus Damm
@ 2004-11-12 13:16   ` Paul Jakma
  2004-11-12 14:26     ` Magnus Damm
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Jakma @ 2004-11-12 13:16 UTC (permalink / raw)
  To: qemu-devel

On Fri, 12 Nov 2004, Magnus Damm wrote:

> I do. All the time.

Hmm..

> You need a Linux kernel that is compiled with serial console 
> support. And to enable that you need to pass the parameter 
> "console=ttyS0,9600" to the kernel too.

Hmm, I couldnt get serial console to work though. (not with Linux 
with solaris).

Qemu seems to hang on me if started with -serial stdio or -nographics 
(which also uses stdio AIUI).

> You will not get any output from the BIOS or from the 
> bzImage-bootloader though, they seem to write directly to the VGA 
> hardware. And I am not sure if Ctrl-Alt-1/2/3 works correctly - I 
> do however get a monitor prompt displayed the first thing... wierd.

Monitor as in a stdio '(qemu) ' monitor prompt, or ....?

> I do no not think the -nographic option disables emulation of VGA 
> hardware, though.  An option for that might be useful for embedded 
> programmers.

That would be very useful yes.

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org	Key ID: 64A2FF6A
Fortune:
Life in the state of nature is solitary, poor, nasty, brutish, and short.
- Thomas Hobbes, Leviathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-12 13:16   ` Paul Jakma
@ 2004-11-12 14:26     ` Magnus Damm
  2004-11-12 22:04       ` Paul Jakma
  0 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2004-11-12 14:26 UTC (permalink / raw)
  To: qemu-devel

On Fri, 2004-11-12 at 14:16, Paul Jakma wrote:
> On Fri, 12 Nov 2004, Magnus Damm wrote:
> 
> > I do. All the time.
> 
> Hmm..
> 
> > You need a Linux kernel that is compiled with serial console 
> > support. And to enable that you need to pass the parameter 
> > "console=ttyS0,9600" to the kernel too.
> 
> Hmm, I couldnt get serial console to work though. (not with Linux 
> with solaris).

Just to clarify, I meant a guest Linux kernel above. And you are trying
to run solaris as a guest?

> Qemu seems to hang on me if started with -serial stdio or -nographics 
> (which also uses stdio AIUI).

Hm. It takes some time before the Linux kernel starts outputting things
on the serial port. It has to decompress the kernel etc.

I have created a little Linux distribution designed to run within QEMU,
it is using the -nographic mode successfully. If it would be helpful to
you I would be happy to send a binary tarball via email (~3 MiB large
binary tarball, ~95 MiB tarball with sources).  

Or if someone knows a good bittorrent tracker for free software then I
would be very happy to seed it.

> > You will not get any output from the BIOS or from the 
> > bzImage-bootloader though, they seem to write directly to the VGA 
> > hardware. And I am not sure if Ctrl-Alt-1/2/3 works correctly - I 
> > do however get a monitor prompt displayed the first thing... wierd.
> 
> Monitor as in a stdio '(qemu) ' monitor prompt, or ....?

(qemu)

> > I do no not think the -nographic option disables emulation of VGA 
> > hardware, though.  An option for that might be useful for embedded 
> > programmers.
> 
> That would be very useful yes.

Good Luck!

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] how to run qemu independent of X?
  2004-11-12 14:26     ` Magnus Damm
@ 2004-11-12 22:04       ` Paul Jakma
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Jakma @ 2004-11-12 22:04 UTC (permalink / raw)
  To: qemu-devel

On Fri, 12 Nov 2004, Magnus Damm wrote:

> Just to clarify, I meant a guest Linux kernel above. And you are trying
> to run solaris as a guest?

Yes. But I havnt serial console to work with Solaris - qemu seems to 
spin on startup if i try use serial console.

> Hm. It takes some time before the Linux kernel starts outputting things
> on the serial port. It has to decompress the kernel etc.

What is "some time", 5 minutes? More?

> I have created a little Linux distribution designed to run within QEMU,
> it is using the -nographic mode successfully. If it would be helpful to
> you I would be happy to send a binary tarball via email (~3 MiB large
> binary tarball, ~95 MiB tarball with sources).

That would be useful, I could figure out if i had a solaris 
bootloader problem or a qemu one. Please do! :)

>>> You will not get any output from the BIOS or from the
>>> bzImage-bootloader though, they seem to write directly to the VGA
>>> hardware. And I am not sure if Ctrl-Alt-1/2/3 works correctly - I
>>> do however get a monitor prompt displayed the first thing... wierd.
>>
>> Monitor as in a stdio '(qemu) ' monitor prompt, or ....?
>
> (qemu)

Right, but you should eventually get serial output on that same 
terminal no? I dont seem to (unless I need to wait even longer 
perhaps).

> Good Luck!
>
> / magnus

Thanks Magnus

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org	Key ID: 64A2FF6A
Fortune:
I'm sorry a pentium won't do, you need an SGI to connect with us.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-11-12 22:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-11 22:31 [Qemu-devel] how to run qemu independent of X? Paul Jakma
2004-11-12  1:03 ` Jack Cummings
2004-11-12  9:17   ` Paul Jakma
2004-11-12 11:27 ` Magnus Damm
2004-11-12 13:16   ` Paul Jakma
2004-11-12 14:26     ` Magnus Damm
2004-11-12 22:04       ` Paul Jakma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).