From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2NF-00084n-Rc for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ2N9-0001yi-Gc for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:00:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2N9-0001yH-AQ for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:00:11 -0500 Date: Wed, 4 Feb 2015 16:00:05 +0000 From: "Richard W.M. Jones" Message-ID: <20150204160005.GA9423@redhat.com> References: <20150203190921.GR3354@HEDWIG.INI.CMU.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150203190921.GR3354@HEDWIG.INI.CMU.EDU> Subject: Re: [Qemu-devel] RFC: Proposal to add QEMU "Guest Environment Variables" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On Tue, Feb 03, 2015 at 02:09:22PM -0500, Gabriel L. Somlo wrote: > qemu-system-x86_64 -guest-env="VAR1=value1;VAR2=value 2" -hda image.qcow2 libguestfs does this already by passing a few environment variables on the kernel command line. This requires a Linux guest kernel and that you're using the -kernel and -append options. For a more general purpose approach, I'd suggest something with virtio-serial. What problem is this actually trying to solve? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org