Search for:

Available article translations:

How do I mount an ISO image in a container?

Article ID: 4628, created on Mar 28, 2008, last review on Sep 18, 2014

  • Virtuozzo
  • Virtuozzo containers for Linux


It is possible to use FUSE (filesystem in userspace) to mount an ISO image inside a container.

  1. Make sure that the fuse module is loaded on the Hardware Node:

    ~# lsmod | grep fuse

    If it is not there, use:

    ~# modprobe fuse
    ~# lsmod|grep fuse
    fuse                   45320  0

    If it is needed to load it automatically on boot, configure it in accordance with the corresponding OS instructions:

  2. Grant Container #101 the permission to work with the /dev/fuse character device, and create a corresponding device inside a container (run these commands on the PVC server):

    • new syntax, using the device name:

      ~# vzctl set 101 --save --devnodes "fuse:rw"

      Note: if the container already had some devnodes configured, it is needed to add them in the above command, e.g.:

      ~# vzctl set 101 --save --devnodes "fuse:rw net/tun:rw"
    • old syntax, using the device major and minor IDs:

      ~# vzctl set 101 --save --devices c:10:229:rw
      ~# vzctl exec 101 mknod -m 666 /dev/fuse c 10 229
      ~# vzctl exec 101 cp -a /dev/fuse /lib/udev/devices/

    If the file /dev/fuse already exists, make sure it has proper access permissions. Also, if the directory /lib/udev/devices does not exist, you must create it and set correct access permissions:

    ~# vzctl exec 101 mkdir /lib/udev/devices
    ~# vzctl exec 101 chmod 755 /lib/udev/devices/

    Check these files:

    ~# vzctl exec 101 ls -l /lib/udev/devices/fuse
    crw-rw-rw- 1 root root 10, 229 Oct 25 19:37 /lib/udev/devices/fuse
    ~# vzctl exec 101 ls -l /dev/fuse
    crw-rw-rw- 1 root root 10, 229 Oct 25 19:37 /dev/fuse
  3. Install "fuseiso" packages and fuse them into a container. The names of the packages may be different on different Linux distributions: For Debian and Ubuntu, install the fuseiso and fuse-utils packages (available in the repository). For RHEL/CentOS 3/4/5, use DAG's packages, fuse-iso and fuse. For Fedora 7/8, both fuseiso and fuse are available from the main/updates repositories for Fedora 6: fuse is available from the "extras" repository, and you can use dries for fuse-iso. To mount an ISO image, run the command inside a container:

    ~# fuseiso IMAGE.iso /mnt

    Replace IMAGE.iso in the command above with the exact name of the ISO image (including the path) on the filesystem, and replace /mnt with the path to where you want the ISO image to be mounted.

    To unmount the image, use this command:

    ~# fusermount -u /mnt

    Again, replace /mnt with the exact path to where the ISO image is mounted.

Search words:

mount iso


mount image


Unable to mout webdav fisle system


Unable to monut webdav filesystem


Unable to Mount webdav

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification