Search

Language:  
Search for:

Available article translations:

How do I mount an ISO image in a container?

APPLIES TO:
  • Parallels Cloud Server
  • Parallels Virtuozzo Containers for Linux
  • Parallels Server

Resolution

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):

    ~# vzctl set 101 --save --devices c:10:229:rw
    (or)
    ~# 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"
    
    
    ~# 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

iso

mount image

fuseiso




eb0ea3b827d18de2329b6477e24c1d59 909d99074e442b52ce54cc7b31cf065d 2897d76d56d2010f4e3a28f864d69223 ca05eaf5b843fbd53589c90d7228a6df bf1c3a170005eae151f49ba2720abde9

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Desktop Virtualization
- Parallels Desktop 8 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification