lxc-profile
manages configuration profiles for LXD containers and virtual machines
TLDR
List all available profiles
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 nameassign _container_ _profiles_
Set the profiles for a container (comma-separated list)add _container_ _profile_
Add a profile to a container's existing profilesremove _container_ _profile_
Remove a profile from a container
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-config(1)
