[lxc-users] Error: /proc must be mounted

Fajar A. Nugraha list at fajar.net
Thu Nov 24 05:41:52 UTC 2016


On Thu, Nov 24, 2016 at 12:29 AM, Itamar Gal <itamarggal at gmail.com> wrote:

> I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). I recently
>

ouch

I HIGHLY recommend you upgrade your OS to xenial. Or even install xenial to
a new disk using zfs root, if you have it (that way you can optionally run
you original precise root as a container later)


>
>     $ apt-show-versions | grep lxc
>
>     liblxc1/precise uptodate 2.0.5+master~20161122-0513-0ubuntu1~precise
>

at least that's good. and you also have lxcfs



> Once inside the container, I try to run the ps command and follow some
> instructions:
>
>     $ ps
>
>     Error: /proc must be mounted
>       To mount /proc at boot you need an /etc/fstab line like:
>           proc   /proc   proc    defaults
>       In the meantime, run "mount proc /proc -t proc"
>
>
>     $ sudo mount proc /proc -t proc
>
>     mount: proc already mounted
>
>

depending on your versions, lxcfs might get killed/restarted during
upgrade. Try:
- check if lxcfs is running (in the host, "ps -ef | grep lxcfs")
- if lxcfs is running, create a new container, using the DOWNLOAD template
(NOT ubuntu template) and start it. Does ps work there?
- if it does, restart your problematic container. Does it work now?
--> if YES, problem solved. It was lxcfs restarted problem
--> if NO, check the config difference between your old new newly-created
container.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161124/9a345c4e/attachment.html>


More information about the lxc-users mailing list