]>
Commit | Line | Data |
---|---|---|
2b371b26 SY |
1 | |
2 | Troubleshooting: | |
3 | =============== | |
4 | ||
5 | ||
6 | Error: | |
7 | ------ | |
8 | ||
9 | error while loading shared libraries reported after sudo make install | |
10 | and when trying to run lxc-execute. | |
11 | ||
12 | "lxc-execute -n foo -f /usr/local/etc/lxc/lxc-macvlan.conf /bin/bash" | |
13 | ||
14 | /usr/local/bin/lxc-execute: error while loading shared libraries: | |
15 | liblxc-0.5.0.so: cannot open shared object file: No such file or | |
16 | directory | |
17 | ||
18 | Answer: | |
19 | ------- | |
20 | update the ld cache by running ldconfig. | |
21 | ||
22 | ||
23 | ||
24 | Error: | |
25 | ------ | |
26 | ||
27 | error when starting a container. | |
28 | ||
29 | "lxc-start Invalid argument" | |
30 | ||
31 | "lxc-execute -n foo -f /usr/local/etc/lxc/lxc-macvlan.conf /bin/bash" | |
32 | "[syserr] lxc_start:96: Invalid argument - failed to fork into a new | |
33 | namespace" | |
34 | ||
35 | Answer: | |
36 | ------- | |
37 | ||
38 | read the lxc man page about kernel version prereq :) most probably | |
39 | your kernel is not configured to support the container options you | |
40 | want to use. | |
41 | ||
42 | ||
43 | Error: | |
44 | ------ | |
45 | ||
46 | On Ubuntu 8.10, if using the cvs source code rather than | |
47 | the provided tarball. Then make is failing with many errors | |
48 | similar to the line below: | |
49 | ========== | |
50 | ../../libtool: line 810: X--tag=CC: command not found | |
51 | ========== | |
52 | ||
53 | Answer: | |
54 | ------- | |
55 | ||
56 | This is related to a compatibility problem between the shipped | |
57 | config/ltmain.sh and the libtool version installed on your | |
58 | Ubuntu 8.10 machine. | |
59 | You have to replace the config/ltmain.sh from cvs head by the one | |
60 | from your libtool package, make some cleaning and reissue all | |
61 | the build process: | |
62 | ========== | |
63 | cd <your_lxc_working_dir> | |
64 | cp -f /usr/share/libtool/config/ltmain.sh config/ | |
65 | rm -f libtool | |
66 | ./bootstrap && ./configure && make && sudo make install | |
67 | ========== |