[SOLVED] Connecting /var/lib/vz/template/iso to a container

Aug 30, 2023
110
21
18
Luxembourg
In order to save space and not duplicate ISOs and images, I'd like to create a Linux container that will have access to /var/lib/vz/template/iso on the host it runs on.

Can this be done and if so what's the best way to achieve it?

PVE v8.1
 
FYI, for anyone else this is the command I used to create the bind mount
Code:
pct set 104 -mp0 /var/lib/vz/template/iso,mp=/root/iventoy/iso,ro=1

I confirmed I could access it from the command line, so hopefully actually using it will be ok.
to version
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/iventoy.sh)"
i used
pct set 104 -mp0 /var/lib/vz/template/iso,mp=/opt/iventoy/iso,ro=1