Posts

Showing posts with the label environment

procenv 0.26 released

Version 0.26 of the procenv utility is now available. Changes: Check to determine if running on a console now works for FreeBSD/kFreeBSD too. Added ability to show all arguments ( -A / --arguments ) (useful when using --exec ). Added ability to display network details ( -N / --network ). Added BSD/Hurd-specific signals. Corrected output sort order. Mount details now include block, inode and fsck details. There are now 29 categories of environment information displayed when procenv is run (on Linux). Grab it from: https://launchpad.net/procenv/ This update should appear in Debian, Ubuntu and FreeBSD soon...

Observing the initial LXC environment using procenv

If you're interested in seeing the initial environment inside an LXC container, here's how: Install procenv inside the container: $ sudo apt-get install -y procenv Shutdown the container: $ sudo shutdown -h now Boot the container (mine is called " raring " in this example) like this: $ sudo lxc-start -n raring --console-log /tmp/lxc-console.log \ -- /usr/bin/procenv --file=/dev/console --exec \ -- /sbin/init --debug View the /tmp/lxc-console.log logfile in the host environment. Note that those two sets of non-option double-dashes are required; the first tells LXC to treat what follows as a command to run after the container starts (in this case procenv ), and the second set tells procenv to treat what follows as a command to run after it has finished running (in this case Upstart ( /sbin/init :-))!