[lxc-users] Profile Assignment Error
Fajar A. Nugraha
list at fajar.net
Fri Mar 24 06:14:48 UTC 2017
On Wed, Mar 22, 2017 at 6:50 PM, Gabriel Marais <gabriel.j.marais at gmail.com>
wrote:
> Hi Guys
>
> I am having an issue assigning a profile to a container. Below my steps:-
>
> 1. List Profiles
>
> [13:43:12] root at vm-server-01:*~* # lxc profile list
>
> +---------+---------+
>
> | NAME | USED BY |
>
> +---------+---------+
>
> | default | 0 |
>
> +---------+---------+
>
> | docker | 0 |
>
> +---------+---------+
>
> 2. Create a new Profile
>
> [13:43:18] root at vm-server-01:*~* # lxc profile create migratetest
>
> Profile migratetest created
>
>
> [13:46:47] root at vm-server-01:*~* # lxc profile list
>
> +-------------+---------+
>
> | NAME | USED BY |
>
> +-------------+---------+
>
> | default | 0 |
>
> +-------------+---------+
>
> | docker | 0 |
>
> +-------------+---------+
>
> | migratetest | 0 |
>
> +-------------+---------+
>
> [13:48:47] root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170324/a188c5fb/attachment.html>
More information about the lxc-users
mailing list