From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0Bfh-0004nu-Vc for qemu-devel@nongnu.org; Tue, 20 Oct 2009 06:10:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0Bfd-0004lc-0c for qemu-devel@nongnu.org; Tue, 20 Oct 2009 06:10:29 -0400 Received: from [199.232.76.173] (port=58330 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0Bfc-0004lI-LA for qemu-devel@nongnu.org; Tue, 20 Oct 2009 06:10:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18209) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0Bfc-0005bh-17 for qemu-devel@nongnu.org; Tue, 20 Oct 2009 06:10:24 -0400 Date: Tue, 20 Oct 2009 11:10:12 +0100 From: "Richard W.M. Jones" Subject: Re: [Qemu-devel] Starting QEMU by PHP/Apache Message-ID: <20091020101012.GA11879@amd.home.annexia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bolle Cc: qemu-devel@nongnu.org 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, 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