lxc-profile
manages configuration profiles for LXD containers and virtual machines
TLDR
SYNOPSIS
lxc profile command [options]
DESCRIPTION
lxc profile manages configuration profiles for LXD containers and virtual machines. Profiles define reusable sets of configuration options including resource limits, device mappings, network settings, and security policies.Containers can use multiple profiles, which are applied in order (later profiles override earlier ones). The default profile is automatically applied to new containers and typically includes basic network and storage configuration.Profile configuration uses YAML format, specifying options like CPU/memory limits, disk quotas, network interfaces, and GPU passthrough.
PARAMETERS
list
List all available profilesshow _profile_
Display the full configuration of a profileedit _profile_
Open a profile for editing in the default editorcreate _profile_
Create a new empty profiledelete _profile_
Remove a profilecopy _source_ _dest_
Copy a profile to a new namerename _old_ _new_
Rename a profileassign _instance_ _profiles_
Set the profiles for an instance (comma-separated list)add _instance_ _profile_
Add a profile to an instance's existing profilesremove _instance_ _profile_
Remove a profile from an instanceset _profile_ _key_ _value_
Set a profile configuration keyget _profile_ _key_
Get a profile configuration valuedevice add _profile_ _device_ _type_ [_options_]
Add a device to a profiledevice remove _profile_ _device_
Remove a device from a profile
CAVEATS
Profile changes don't automatically apply to running containers; restart the container or reassign profiles to apply changes. Deleting a profile that's in use by containers will fail. The default profile cannot be deleted.
SEE ALSO
lxc(1), lxc-create(1), lxc-start(1), lxc-ls(1)
