qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How does the shell/os know to use qemu to launch a program?
@ 2013-07-17 21:41 Corbin Champion
  2013-07-18  1:56 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Corbin Champion @ 2013-07-17 21:41 UTC (permalink / raw)
  To: qemu-devel

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

I have used qemu for some time.  I am curious how the shell or os detects
that qemu is needed to run a program?

The reason for this is as follows:
I am on a system, but am not root.  The system does not have qemu installed
by root, and it will not be, but I have downloaded it myself.  I can run
programs manually via *qemu-arm program_name* as usual.  But, I would like
the shell or os to auto detect that qemu is needed.

How is this normally done?  How do I pull off the same as non-root (even if
it is complicated)?

Any thoughts?

Thanks!

Corbin

[-- Attachment #2: Type: text/html, Size: 689 bytes --]

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

* Re: [Qemu-devel] How does the shell/os know to use qemu to launch a program?
  2013-07-17 21:41 [Qemu-devel] How does the shell/os know to use qemu to launch a program? Corbin Champion
@ 2013-07-18  1:56 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2013-07-18  1:56 UTC (permalink / raw)
  To: Corbin Champion; +Cc: qemu-devel

On Wed, Jul 17, 2013 at 02:41:24PM -0700, Corbin Champion wrote:
> I have used qemu for some time.  I am curious how the shell or os detects
> that qemu is needed to run a program?
> 
> The reason for this is as follows:
> I am on a system, but am not root.  The system does not have qemu installed
> by root, and it will not be, but I have downloaded it myself.  I can run
> programs manually via *qemu-arm program_name* as usual.  But, I would like
> the shell or os to auto detect that qemu is needed.
> 
> How is this normally done?  How do I pull off the same as non-root (even if
> it is complicated)?

As root you can setup binfmt-misc, which teaches the kernel to invoke
foreign executables through QEMU:

http://en.wikipedia.org/wiki/Binfmt_misc

As non-root it may be necessary to use shell aliases or wrapper scripts.
This requires setup for every program you wish to launch via QEMU.

Stefan

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

end of thread, other threads:[~2013-07-18  1:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17 21:41 [Qemu-devel] How does the shell/os know to use qemu to launch a program? Corbin Champion
2013-07-18  1:56 ` Stefan Hajnoczi

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).