Product:
Search Type:

'vzctl --bindmount_add' does not mount folder from host OS into container.

Article ID: 3512 
Last Review: Jul,24 2008
APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

SYMPTOMS

I ran the command 'vzctl set 101 --bindmount_add "/share:share" --setmode restart --save' but '/share' folder from host OS did not appear inside the container #101 after restart.

RESOLUTION

Destination path in 'bindmount_add' option must be absolute, not relative.

The correct command to mount /share folder from host OS into the container #101 is as follows:
# vzctl set 101 --bindmount_add "/share:/share" --setmode restart --save
Keywords: bindmount

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields