Howto mount an iso in a target directoy on a VM

P

philuser

Guest
I want to execute this command in a VM : mount -o loop codendi.iso /mnt/codendi/
I get this error : mount: no permission to look at /dev/loop#

I also read this message :
I'm told loop devices will never be virtualized for container-style VPS's because of the fact that each loop device requires a kernel thread and there is a finite amount available in a kernel.

Is it really possible to mount an iso in a VM and how?


 
you talk about a OpenVZ container or a KVM guest?
 
hi Tom,

I did my tests in a contener OpenVZ but if this is working in KVM, I am willing to switch in KVM mode.
 
in KVM you do not have an problem, just add the iso via web interface.

container:
mount the ISO on the host and use bind mounts to access inside the container.
 

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!