<div dir="ltr">Hi Guys<div><br></div><div>I am having an issue assigning a profile to a container. Below my steps:-</div><div><br></div><div>1. List Profiles</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:43:12] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile list</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">|  NAME   | USED BY |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| default | 0       |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| docker  | 0       |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p></div><div><br></div><div>2. Create a new Profile</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:43:18] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile create migratetest</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Profile migratetest created</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:46:47] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile list</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">|    NAME     | USED BY |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| default     | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| docker      | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| migratetest | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">








</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:48:47] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc-ls --fancy</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">NAME        STATE   AUTOSTART GROUPS IPV4 IPV6 </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">paulus-test STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">snappy_1604 STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ubuntu_1404 STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">




</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ubuntu_1604 STOPPED 0         -      -    -    </span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">3. Link the container to the profile</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:45:21] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile apply ubuntu_1404 migratetest --debug</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">DBUG</span><span style="font-variant-ligatures:no-common-ligatures">[03-22|13:46:47] Raw response: {"type":"sync","status":"Success","status_code":200,"operation":"","error_code":0,"error":"","metadata":{"config":{"core.trust_password":true,"images.auto_update_cached":"false","images.auto_update_interval":"24","images.remote_cache_expiry":"5"},"api_extensions":["storage_zfs_remove_snapshots","container_host_shutdown_timeout","container_syscall_filtering","auth_pki","container_last_used_at","etag","patch","usb_devices","https_allowed_credentials","image_compression_algorithm","directory_manipulation","container_cpu_time","storage_zfs_use_refquota","storage_lvm_mount_options","network","profile_usedby","container_push","container_exec_recording","certificate_update","container_exec_signal_handling","gpu_devices","container_image_properties","migration_progress","id_map","network_firewall_filtering","network_routes","storage","file_delete","file_append","network_dhcp_expiry","storage_lvm_vg_rename","storage_lvm_thinpool_rename","network_vlan","image_create_aliases","container_stateless_copy"],"api_status":"stable","api_version":"1.0","auth":"trusted","public":false,"environment":{"addresses":[],"architectures":["x86_64","i686"],"certificate":"-----BEGIN CERTIFICATE-----\nMIIFXjCCA0agAwIBAgIQE9+oSwckHm0nytRugNyHnTANBgkqhkiG9w0BAQsFADA6\nMRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMRowGAYDVQQDDBFyb290QHZt\nLXNlcnZlci0wMTAeFw0xNzAzMjIwOTI3NTJaFw0yNzAzMjAwOTI3NTJaMDoxHDAa\nBgNVBAoTE2xpbnV4Y29udGFpbmVycy5vcmcxGjAYBgNVBAMMEXJvb3RAdm0tc2Vy\ndmVyLTAxMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArHikisFdu0cq\nsgZw+n1jhyLf/C8H+ANs5eWHxStqSY/wShQSY7mujVLhvu/mM/awGmbeqISwGskN\nsVBC7fkCqWf3vf/n6FlzOWwD1x3FSGqYfAbO+uXFQxsYA6BZQiUjhtEb/4Ks2ok2\nil/t5IfBaEtIO25ES4jw2U1pytOd63Eu25B9wMmX4k/vj5n/Nk/PQgVkz3VHNCXm\nqDMnH0rOCPjP8Tr1ZYMruVxZ9Q1GFR+BGvomDKzLYRmJJnToJJMmva+qmv+Mg3Md\nS9L1WXTd7S888SVNQm6lK5R/NPkKkEkA92Z926pVI3irpL9dfvLxO+5ph2rjppZO\n3+UO+g4MIfZbznA9+FF9Sac7/qymmRUkqZMvWyBRWOSYhRcEMrpCBIn8xJPLbtmL\n1vEC2C/OSDDrwvAb29nWjg6AkXX+E7AbJzlJd4VUPhoDJJNTs+bQ350SaeXV9JED\nreQj0elaUPusEhJGa01tnFjFKghrK1R9wj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ATE-----\n","certificate_fingerprint":"","driver":"lxc","driver_version":"2.0.7","kernel":"Linux","kernel_architecture":"x86_64","kernel_version":"4.4.0-62-generic","server":"lxd","server_pid":1555,"server_version":"2.12","storage":"","storage_version":""}}}</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">


</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">DBUG</span><span style="font-variant-ligatures:no-common-ligatures">[03-22|13:46:47] Raw response: {"error":"not found","error_code":404,"type":"error"}</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Even with the container started, I get the same error. Can someone perhaps point me in the right direction?</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>Thanks, Gabriel</div></div>