[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Starting QEMU by PHP/Apache
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] Starting QEMU by PHP/Apache |
Date: |
Tue, 20 Oct 2009 11:10:12 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Oct 13, 2009 at 01:26:25PM +0200, Bolle wrote:
> Did anybody had success to start a QEMU instance by a PHP script under
> the Apache web server ?
>
> I allow the Apache user with the help of sudoers to start the QEMU binary
> as root. I've hacked the "qemu-socket.c" to set the access mode to allow
> communication for the monitor socket (only add "chmod(path, <needed file
> mode bits>)").
I don't understand why you want to start qemu as root. It doesn't
need to be root (even for KVM support) and we run it as non-root all
the time in http://libguestfs.org/
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora