[lxc-users] Unavailable loop devices

CDR venefax at gmail.com
Tue May 6 10:25:15 UTC 2014


Dear Friends

I succesfully created a SLES 11 SP3 container, but when I try to do this

mount -o loop /images/SLE-11-SP3-SDK-DVD-x86_64-GM-DVD1.iso /media

mount: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)

My host is Fedora 20 and the LXC version is

rpm -qa | grep lxc
libvirt-daemon-lxc-1.1.3.4-4.fc20.x86_64
libvirt-daemon-driver-lxc-1.1.3.4-4.fc20.x86_64
lxc-devel-1.0.0-1.fc20.x86_64
lxc-debuginfo-1.0.0-1.fc20.x86_64
lxc-libs-1.0.0-1.fc20.x86_64
lxc-1.0.0-1.fc20.x86_64

the configuration is:

lxc.start.auto = 0
lxc.start.delay = 5
lxc.start.order = 10

# When using LXC with apparmor, uncomment the next line to run unconfined:
#lxc.aa_profile = unconfined

lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm

# mounts point
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry = sysfs sys sysfs defaults  0 0
lxc.mount.entry = /images  /var/lib/lxc/utel-kde/rootfs/images none bind 0 0


lxc.network.type=macvlan
lxc.network.macvlan.mode=bridge
lxc.network.link=eth1
lxc.network.flags=up
lxc.network.hwaddr = e2:91:a8:17:97:e4
lxc.network.ipv4 = 0.0.0.0/21


How do make the kernel loop module available for the container?

Yours
Philip


More information about the lxc-users mailing list