From: Stefan Hajnoczi <stefanha@gmail.com>
To: Corbin Champion <corbinlc@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How does the shell/os know to use qemu to launch a program?
Date: Thu, 18 Jul 2013 09:56:09 +0800 [thread overview]
Message-ID: <20130718015609.GB21598@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CABxzp7BwiDK7u4ks8Gjdqz4zUvFY-CYzBYpUUojUvsGO1NdZHw@mail.gmail.com>
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
prev parent reply other threads:[~2013-07-18 1:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130718015609.GB21598@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=corbinlc@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).