1. 18 12月, 2012 3 次提交
    • D
      Add support for storage host device passthrough with LXC · 313669d1
      Daniel P. Berrange 提交于
      This extends support for host device passthrough with LXC to
      cover storage devices. In this case all we need todo is a
      mknod in the container's /dev and whitelist the device in
      cgroups
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      313669d1
    • D
      Add support for USB host device passthrough with LXC · 95fef5f4
      Daniel P. Berrange 提交于
      This adds support for host device passthrough with the
      LXC driver. Since there is only a single kernel image,
      it doesn't make sense to pass through PCI devices, but
      USB devices are fine. For the latter we merely need to
      make the /dev/bus/usb/NNN/MMM character device exist
      in the container's /dev
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      95fef5f4
    • D
      Add support for disks with LXC · 368e341a
      Daniel P. Berrange 提交于
      Currently LXC guests can be given arbitrary pre-mounted
      filesystems, however, for some usecases it is more appropriate
      to provide block devices which the container can mount itself.
      This first impl only allows for <disk type='block'>, in other
      words exposing a host disk device to a container. Since LXC
      does not have device namespace virtualization, we are cheating
      a little bit. If the XML specifies /dev/sdc4 to be given to
      the container as /dev/sda1, when we do the mknod /dev/sda1
      in the container's /dev, we actually use the major:minor
      number of /dev/sdc4, not /dev/sda1.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      368e341a
  2. 28 11月, 2012 4 次提交
    • G
      make /proc/meminfo isolate with host through fuse · d671c0ed
      Gao feng 提交于
      with this patch,container's meminfo will be shown based on
      containers' mem cgroup.
      
      Right now,it's impossible to virtualize all values in meminfo,
      I collect some values such as MemTotal,MemFree,Cached,Active,
      Inactive,Active(anon),Inactive(anon),Active(file),Inactive(anon),
      Active(file),Inactive(file),Unevictable,SwapTotal,SwapFree.
      
      if I miss something, please let me know.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      d671c0ed
    • G
      add fuse support for libvirt lxc · 2a596dac
      Gao feng 提交于
      this patch addes fuse support for libvirt lxc.
      we can use fuse filesystem to generate sysinfo dynamically,
      So we can isolate /proc/meminfo,cpuinfo and so on through
      fuse filesystem.
      
      we mount fuse filesystem for every container.
      the mount name is libvirt,mount point is
      localstatedir/run/libvirt/lxc/containername.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      2a596dac
    • D
      Treat missing driver cgroup as fatal in LXC driver · 7c5ba648
      Daniel P. Berrange 提交于
      The LXC driver relies on use of cgroups to kill off LXC processes
      in shutdown. If cgroups aren't available, we're unable to kill
      off processes, so we must treat lack of cgroups as a fatal startup
      error.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      7c5ba648
    • D
      Ensure LXC container exits if cgroups setup fails · 8e1f0c38
      Daniel P. Berrange 提交于
      The code setting up LXC cgroups used an 'rc' variable both
      for capturing the return value of methods it calls, and
      its own return status. The result was that several failures
      in setting up cgroups would actually result in success being
      returned.
      
      Use a separate 'ret' for tracking return value as per normal
      code design in other parts of libvirt
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      8e1f0c38
  3. 21 9月, 2012 1 次提交
  4. 23 7月, 2012 1 次提交
    • O
      Desert the FSF address in copyright · f9ce7dad
      Osier Yang 提交于
      Per the FSF address could be changed from time to time, and GNU
      recommends the following now: (http://www.gnu.org/licenses/gpl-howto.html)
      
        You should have received a copy of the GNU General Public License
        along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
      
      This patch removes the explicit FSF address, and uses above instead
      (of course, with inserting 'Lesser' before 'General').
      
      Except a bunch of files for security driver, all others are changed
      automatically, the copyright for securify files are not complete,
      that's why to do it manually:
      
        src/security/security_selinux.h
        src/security/security_driver.h
        src/security/security_selinux.c
        src/security/security_apparmor.h
        src/security/security_apparmor.c
        src/security/security_driver.c
      f9ce7dad
  5. 19 7月, 2012 1 次提交