Howto mount an iso in a target directoy on a VM

  • Thread starter Thread starter philuser
  • Start date Start date
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.