This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
proxmox:bind_mounts [2015/08/31 20:49] cbustillo created |
proxmox:bind_mounts [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bind mounts ====== | + | ====== Introduction ====== |
Bind mounts can be used to make directories on the hardware node (Proxmox node) visible to the container. | Bind mounts can be used to make directories on the hardware node (Proxmox node) visible to the container. | ||
Line 7: | Line 7: | ||
1- Create a file named 777.mount inside /etc/vz/conf: | 1- Create a file named 777.mount inside /etc/vz/conf: | ||
- | nano /etc/vz/conf/777.mount | + | # nano /etc/vz/conf/777.mount |
2- Insert the following: | 2- Insert the following: | ||
Line 27: | Line 27: | ||
3- Assign execution permission to the above file: | 3- Assign execution permission to the above file: | ||
- | chmod +x /etc/vz/conf/777.mount | + | # chmod +x /etc/vz/conf/777.mount |
When you restart Proxmox or CT you can see mounted /mnt/disk inside the 777 CT. | When you restart Proxmox or CT you can see mounted /mnt/disk inside the 777 CT. |