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