<div dir="ltr">I'm getting an error when I try to mount an ISO file into a container and I'm not sure how to fix the problem. I've searched a bit and found somewhat similar issues[1][2] but they were mostly related to LXC containers not LXD.<div><br></div><div>When I try to mount an ISO I get an error:</div><div><br></div><div><div>root@broodwar:~# mount -t iso9660 -o loop /root/Win10_English_x32.iso /mnt/windows/x32</div><div>mount: /mnt/windows/x32: mount failed: Unknown error -1</div><div><br></div><div>I though it was because I didn't have a loop device in my container, so I added one, but I still get an error:</div><div><br></div><div>root@kerrigan:~# lxc config device add broodwar loop unix-block path=/dev/loop0<br></div><div><br></div><div><div>root@broodwar:~# ls -l /dev/loop*</div><div>brw-rw---- 1 root root 7, 0 Sep 28 16:00 /dev/loop0</div></div><div><br></div><div>Running mount -v gives no extra messages. The ISO file itself is good, I can mount it successfully on the host, just not the container. Does anyone know how to fix this issue?</div><div><br></div><div>Thanks,</div><div>Joshua Schaeffer</div><div><br></div><div>[1] <a href="https://lists.linuxcontainers.org/pipermail/lxc-users/2015-November/010560.html">https://lists.linuxcontainers.org/pipermail/lxc-users/2015-November/010560.html</a></div><div>[2] <a href="http://askubuntu.com/questions/376345/allow-loop-mounting-files-inside-lxc-containers">http://askubuntu.com/questions/376345/allow-loop-mounting-files-inside-lxc-containers</a></div></div></div>