OpenVZ Forum


Home » Mailing lists » Users » Re:: loop devices in CT still not allowed ?
Re:: loop devices in CT still not allowed ? [message #46791] Wed, 13 June 2012 15:23
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

From: *parallels.com
13.06.2012 17:12 пользователь "Namikaze Minato" <
lloydsensei+openvz@gmail.com> написал:
>
> Hello everybody.
> I'm sorry to dig something that was already corrected before, but I
> got some errors I don't manage to take care of alone.
>
> I'm running a SLES11.1 host and a SLES11.1 CT.

More important piece of information is which openvz kernel do you use?
OK, I see below that it is 042stab046.1 self-compiled.

>
> First (minor) problem is that services are not started when I start a
> CT. I have to start them manually after each boot. (Runlevel retuns
> "unknown" in the CTs)

Are you using a CT made from precreated template from openvz.org, or
anything else?

>
> Second (the error I wrote this mail for):
> vzctl set --devices|--devnodes: do not allow to enable loop
devices in CT
> was a bug corrected in version 3.0.29 according to this page:
> http://wiki.openvz.org/Download/vzctl/3.0.29

Loop devices are not allowed in CT for security reason. This is what 3.0.29
fixed (previously it was possible to enable loop device inside CT).

> I've tried:
> vzctl set 404 --devnodes loop0:rw
> on version 3.1 without success (returning this:
> Device loop0 is not allowed to be assigned to a CT
> Bad parameter for --devnodes: loop0:rw
> ), and got exactly the same result with version 3.3
> BLK_DEV_LOOP is compiled inside the openvz kernel (2.6.32 vanilla +
> 042stab049.6 patch), so it's not a problem of the loop module not
> loading on startup.
>
> Why is this loop device problem bothering me ? Because every time I
> want to install a package that has a dependency which can be resolved
> by an rpm from the ISO, the package manager can't mount the ISO to use
> these rpms.

Use fuseiso.

> I hope you can help me a little on these cases, otherwise I'll have to
> stick with these hacks on a prod server, which would not be great.
> I'll answer all questions I can answer :)
>
> Thank you very much !
> LLoyd


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: loop devices in CT still not allowed ?
Next Topic: openvz and ftp connection tracking for non-default ports
Goto Forum:
  


Current Time: Tue Sep 25 18:40:57 GMT 2018