[email protected] said: > On Thu, Jan 22, 2015 at 4:20 PM, Martin Lucina <[email protected]> wrote: > >> > For rumprun-xen I'd implement this in a similar fashion to the other > >> > options, using Xenstore. For other platforms, ideas welcome :-) > >> > >> Hmm, was it so that rumprun-posix seeds the guest env with the host env > >> and that there was some reason for it? Would be nice to have it work > >> the same way as on xen with rumprun (and hopefully on baremetal with > >> rumprun as well). > > > > You mean passing the full host environment as seen by rumprun to the > > xen/KVM guest? > > > > I agree that it would be good to have a common mechanism. However I don't > > know (haven't looked yet though) if eg. KVM has some equivalent of Xenstore > > to communicate between the host and guests. Also, for pure bare > > metal/embedded use cases the interface would likely be the bootloader or > > other ad-hoc mechanism. > > AFAIK KVM has no mechanism, command line arguments to the kernel might work. > > I am not sure passing the full env is a good idea in general, you can > always generate key value pairs from the host env if needed. It is > just very convenient for posix, especially where you are executing > binaries directly not via a rumprun script, ie for the remote rump > kernel support. I think anything where you run via a rumprun command > should just have explicit variables.
Ok, I've just pushed support for setting guest environment variables with [ -e VAR[=VALUE] ] to rumprun-xen, seems to work. Martin ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ rumpkernel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rumpkernel-users
