<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Courier New";
panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">This may not be the answer but I think the client commands for applying profiles have changed, so depending on your version it could be that you need to use one of;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile assign [<remote>:]<container> <profiles><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile add [<remote>:]<container> <profile><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile remove [<remote>:]<container> <profile><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Rather than
</span><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile apply</span><span style="font-size:11.0pt;font-family:Calibri">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">lxc-users <lxc-users-bounces@lists.linuxcontainers.org> on behalf of Gabriel Marais <gabriel.j.marais@gmail.com><br>
<b>Reply-To: </b>LXC users mailing-list <lxc-users@lists.linuxcontainers.org><br>
<b>Date: </b>Wednesday, 22 March 2017 at 11:50<br>
<b>To: </b>"lxc-users@lists.linuxcontainers.org" <lxc-users@lists.linuxcontainers.org><br>
<b>Subject: </b>[lxc-users] Profile Assignment Error<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi Guys <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am having an issue assigning a profile to a container. Below my steps:-<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1. List Profiles<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:43:12]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34BC26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#AFAD24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile list<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| NAME | USED BY |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| default | 0 |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| docker | 0 |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">2. Create a new Profile<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:43:18]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34BC26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#AFAD24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile create migratetest<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">Profile migratetest created<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"><br>
<br>
<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:46:47]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34BC26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#AFAD24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile list<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| NAME | USED BY |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| default | 0 |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| docker | 0 |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| migratetest | 0 |<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:48:47]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34BC26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#AFAD24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc-ls --fancy<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">NAME STATE AUTOSTART GROUPS IPV4 IPV6 <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">paulus-test STOPPED 0 - - - <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">snappy_1604 STOPPED 0 - - - <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">ubuntu_1404 STOPPED 0 - - - <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">ubuntu_1604 STOPPED 0 - - - <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"><br>
<br>
<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">3. Link the container to the profile<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:45:21]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34BC26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#AFAD24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile apply ubuntu_1404 migratetest --debug<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">DBUG</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[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\nMR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AIPhwTAqDgChwQKAAMBMA0GCSqGSIb3DQEBCwUAA4IC\nAQA4XPgirgpVx/UqyZorZH0XyXVHdmh4LJEF29okJ40Euv9eSum2LZMeZA41Ts/8\nke+Gzwadj1yWGd+e33G9t2X8PyBhC0u30yA4VzqsT0/pCKP51wUPScRLtfHzeUpG\nKwapB6buMnwKyqI6fNyNyxH2MhMDNzFOvJbQNmOs9H+ojR7wB0sbfWAdOnnZHHAO\nyynDvfb0TvWbbw+KnCfnIUoaJza7qSUeeOuedrEl52FSpbrDeBiLqat/RIxhkv32\nfJMk5CwsAsw1lVkMvirUs4VNE9T17ZWSOlzWaon2R1Hxggela9pzeB8gdnY/xtea\nzOmJ34oqmB8n9m+iNIELrs9pjyTWdm0a96sw/RDs5lfy1TOIickNjXC5n1d5zSrb\nRv+eqUEAGku/j1ru/j2dygYZBgaZ1xdqT1mbmZjoOnBpUU/BD9pTUKtj6kTXQ4C5\nqddYtOOd3sLOX0LroX1s8bjCe7qikRKGb3VbAQMhuGPK+xNQ/6Yy+TLij70j1HI1\ngHuAUrxfsIbRzKXUq7m2KMopedcRHeeWgGsAbI45F4w2QFBTtFz+9i3NMixtLL3a\nD7lR6v71VjhuGeUecCY8XZmq1DQscOgKPdqCX+LV2lQ82JdTACk4G5aAP0RnwG3k\nm/UgEHt84g+L1gHDkKS1N4EhekK8tGiLXebJnuRYTlG/4A==\n-----END
CERTIFICATE-----\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":""}}}<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33BBC8">DBUG</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[03-22|13:46:47] Raw response: {"error":"not found","error_code":404,"type":"error"}<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Even with the container started, I get the same error. Can someone perhaps point me in the right direction?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks, Gabriel<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>