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 [2025/03/18 19:00] (current) – vignesh | ||
---|---|---|---|
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 exec < | ||
lxc start < | lxc start < | ||
</ | </ | ||
- | You can run these commands when you find the following | + | To test if it works do |
+ | < | ||
+ | lxc exec < | ||
+ | </ | ||
+ | |||
+ | |||
+ | If that does not work add the following | ||
+ | |||
+ | < | ||
+ | lxc config set < | ||
+ | lxc config set < | ||
+ | </ | ||
- | <note warning>/ | ||
tips/accessing_dev_mem_for_host_from_lxc_container.1626262484.txt.gz · Last modified: 2021/07/14 17:04 by navaneeth