From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxgSg-0005tT-Us for qemu-devel@nongnu.org; Tue, 13 Oct 2009 08:26:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxgSb-0005pw-BM for qemu-devel@nongnu.org; Tue, 13 Oct 2009 08:26:42 -0400 Received: from [199.232.76.173] (port=55671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxgSb-0005pq-3n for qemu-devel@nongnu.org; Tue, 13 Oct 2009 08:26:37 -0400 Received: from 217-162-29-130.static.cablecom.ch ([217.162.29.130]:37314 helo=x41.ch) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxgSa-0006iu-Pj for qemu-devel@nongnu.org; Tue, 13 Oct 2009 08:26:37 -0400 Received: from [193.201.33.73] (account bolle@geodb.org) by x41.ch (CommuniGate Pro WebUser 5.0.10) with HTTP id 1431679 for qemu-devel@nongnu.org; Tue, 13 Oct 2009 13:26:25 +0200 From: "Bolle" Date: Tue, 13 Oct 2009 13:26:25 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Starting QEMU by PHP/Apache List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello 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, )"). I'm able to successfully start the QEMU instance from a PHP CLI script as the user under which Apache is running like "sudo -u sudo ". But when I run the same script by the web server, QEMU starts up to the BIOS, telling me to press F12 for a start device. The "info cpus" tells "CPU #0: pc=0x000f08b5 (halted)". The full command executed by PHP is: /usr/bin/sudo /usr/bin/qemu -L /usr/share/qemu -M isapc -m 16 -hda -net none -serial none -parallel none -vnc :0,password -monitor unix:,server,nowait -name "QEMU TEST" -pidfile -chroot -runas > /dev/null & Any idea about where to look for more information ? Andreas