Chooseing apparmor config on lxc creation

aghadjip

Well-Known Member
Jan 22, 2019
31
7
48
43
Hey Folks,

I have an apparmor profile *_with_NFS that I add to LXCs that need NFS. I rather not all containers get this config. It would be nice to be able to define an lxc at creation to use various profiles. Is this possible? Rather not have to edit each container config file.

How are others doing it?
 
Is there a corresponding API value for that setting
Yes, the WebUI wraps a bit around to make it less complicated, as normally you could set other FStypes too. You can set it via CLI with:

Code:
pct set 103 --features mount=nfs;cifs;fuse

(this time besides nfs also fuse and cifs would be allowed) or over API see: https://pve.proxmox.com/pve-docs/api-viewer/index.html
and go to the /nodes/{node}/lxc/{vmid}/config in the sidepanel
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!