Differences
This shows you the differences between two versions of the page.
proxmox:nfs_server_inside_lxc_container [2019/02/14 09:52] – created admin | proxmox:nfs_server_inside_lxc_container [2019/02/14 09:55] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Запуск NFS-сервера внутри контейнера ProxMox 5.3 - LXC ==== | ||
+ | Создать файл профиля **AppAromor** - **/ | ||
+ | < | ||
+ | # Do not load this file. Rather, load / | ||
+ | # will source all profiles under / | ||
+ | profile lxc-container-default-with-nfsd flags=(attach_disconnected, | ||
+ | #include < | ||
+ | |||
+ | # the container may never be allowed to mount devpts. | ||
+ | # will remount the host's devpts. | ||
+ | # the newinstance option (but, right now, we don' | ||
+ | deny mount fstype=devpts, | ||
+ | mount fstype=nfsd, | ||
+ | mount fstype=rpc_pipefs, | ||
+ | mount fstype=cgroup -> / | ||
+ | } | ||
+ | </ | ||
+ | Добавить профиль в текущую конфигурацию **AppArmor**: | ||
+ | apparmor_parser -r / | ||
+ | В конфигурацию контейнера добавить: | ||
+ | lxc.apparmor.profile = lxc-container-default-with-nfsd |