Changes between Version 36 and Version 37 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Dec 3, 2013 10:25:19 AM (10 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v36 v37  
    8468461582 
    847847}}} 
     848 
     849 = NFS = 
     850 * コンテナの中ではAppArmorによってmountが禁止されているため、直接NFSマウントするにはAppArmorの再設定が必要 
     851 
     852 == ホストで直接mountし、コンテナには--bindでアクセスさせる == 
     853 * /var/lib/lxc/CONTAINER/fstab 
     854{{{ 
     855/mnt/somewhere   path/to/mountdir    none bind 0 0 
     856}}} 
     857 * host# mount nfsserver:/path/to/export /mnt/somewhere 
     858 * host# lxc-start -d -n CONTAINER 
     859 * lxc$ mount 
     860{{{ 
     861nfsserver:/path/to/export on /path/to/mountdir type nfs4 (rw,relatime,...) 
     862}}} 
     863 
     864 * ホスト上でread-onlyマウントしていても、/var/lib/lxc/CONTAINER/fstabでのread/write権限設定によって上書きされるので注意