On Wed, Mar 22, 2017 at 6:50 PM, Gabriel Marais <[email protected]>
wrote:

> Hi Guys
>
> I am having an issue assigning a profile to a container. Below my steps:-
>
> 1. List Profiles
>
> [13:43:12] root@vm-server-01:*~* # lxc profile list
>
> +---------+---------+
>
> |  NAME   | USED BY |
>
> +---------+---------+
>
> | default | 0       |
>
> +---------+---------+
>
> | docker  | 0       |
>
> +---------+---------+
>
> 2. Create a new Profile
>
> [13:43:18] root@vm-server-01:*~* # lxc profile create migratetest
>
> Profile migratetest created
>
>
> [13:46:47] root@vm-server-01:*~* # lxc profile list
>
> +-------------+---------+
>
> |    NAME     | USED BY |
>
> +-------------+---------+
>
> | default     | 0       |
>
> +-------------+---------+
>
> | docker      | 0       |
>
> +-------------+---------+
>
> | migratetest | 0       |
>
> +-------------+---------+
>
> [13:48:47] root@vm-server-01:*~* # lxc-ls --fancy
>
> NAME        STATE   AUTOSTART GROUPS IPV4 IPV6
>
> paulus-test STOPPED 0         -      -    -
>
> snappy_1604 STOPPED 0         -      -    -
>
> ubuntu_1404 STOPPED 0         -      -    -
>
> ubuntu_1604 STOPPED 0         -      -    -
>
>
>
"lxc-ls" belongs to lxc1. "lxc list" is the equivalent lxd command.

lxc1 and lxd manage totally different containers. You can't apply lxd
profile to lxc1 container. Recreate your containers as lxd containers, then
try again.

-- 
Fajar
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to