tips:accessing_dev_mem_for_host_from_lxc_container
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:accessing_dev_mem_for_host_from_lxc_container [2021/07/14 17:04] – navaneeth | tips:accessing_dev_mem_for_host_from_lxc_container [2021/07/14 18:40] (current) – veera | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | To Access | + | When you install Trisul packages like the probe or hub on a LXC/LXD linux container you might face an error where Trisul is unable to get the machineID of the container. |
+ | |||
+ | The error could be something like the following ; when you try to get the machineID from the hub or probe node from the admin panel. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ===== Fix this error to allow LXC nodes to get the machineID ===== | ||
+ | |||
+ | Essentially you need to set the container permissions to allow access to the / | ||
- | Please run the following commands. | ||
< | < | ||
lxc stop < | lxc stop < | ||
lxc config set < | lxc config set < | ||
- | lxc config set < | ||
- | lxc config set < | ||
lxc config device add < | lxc config device add < | ||
+ | lxc restart < | ||
+ | </ | ||
+ | |||
+ | To test if it works do | ||
+ | < | ||
lxc exec < | lxc exec < | ||
- | lxc start < | ||
</ | </ | ||
- | You can run these commands when you find the following errors. | ||
- | <note warning>/dev/mem: Operation not permitted</note> | + | If that does not work add the following commands and retry |
+ | |||
+ | <code> | ||
+ | lxc config set < | ||
+ | lxc config set < | ||
+ | </code> | ||
tips/accessing_dev_mem_for_host_from_lxc_container.txt · Last modified: 2021/07/14 18:40 by veera