1. 09 Apr, 2014 1 commit
    • lxc-oracle: allow installing from arbitrary yum repo · e120d057
      Dwight Engen authored
      With this change, you can install a container from a mounted .iso, or any
      yum repo with the necessary packages. Unlike the --url option, the repo
      does not need to be a mirror of public-yum, but the arch and release must
      be specified. For example to install OL6.5 from an .iso image:
      
      mount -o loop OracleLinux-R6-U5-Server-x86_64-dvd.iso /mnt
      lxc-create -n OL6.5 -t oracle -- --baseurl=file:///mnt -a x86_64 -R 6.5
      
      The template will create two yum .repo files within the container such that
      additional packages can be installed from local media, or the container can
      be updated from public-yum, whichever is available. Local media must be bind
      mounted from the host onto the containers' /mnt for the former .repo to work:
      
      mount --bind /mnt $LXCPATH/OL6.5/rootfs/mnt
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  2. 08 Apr, 2014 4 commits
  3. 07 Apr, 2014 4 commits
  4. 05 Apr, 2014 1 commit
    • lxc_spawn: initialize netpipe · 2f2623ec
      Serge Hallyn authored
      When rebooting an unprivileged container, netpipe starts out
      as not -1.  If count_veths somehow changed this could lead
      to trying to send data over nonexistent pipe.  (Ok can't
      *really* happen, as it currently stands, but it's an open
      end)
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  5. 04 Apr, 2014 9 commits
  6. 03 Apr, 2014 1 commit
    • fix lxc-info printing duplicate lines · e2426f0b
      Dwight Engen authored
      When lxc-info's stdout is not line buffered (ie. "lxc-info -n foo |more")
      the first three lines will be duplicated. This is because c->get_ips()
      comes next and it forks and the child will exit() causing its fds to be
      closed which flushes out its (fork duplicated) stdio buffers. The lines are
      then duplicated when the parent actually gets around to flushing out its
      stdio. This causes problems for programs (such as the lxc-webpanel) which
      are popen()ing lxc-info.
      
      The fix here isn't necessarily the right one, but does show what the
      problem is. Seems like maybe we should fix this inside of get_ips(), for
      other API callers as well.
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  7. 02 Apr, 2014 6 commits
  8. 01 Apr, 2014 5 commits
  9. 31 Mar, 2014 2 commits
  10. 29 Mar, 2014 2 commits
  11. 27 Mar, 2014 2 commits
  12. 26 Mar, 2014 1 commit
  13. 25 Mar, 2014 1 commit
  14. 24 Mar, 2014 1 commit