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

Aug 30, 2023
88
12
8
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!