OpenVZ Forum


Home » General » Support » OpenVZ, OpenSuse 11.x and DEVTMPFS support (openvz suse devtmpfs)
OpenVZ, OpenSuse 11.x and DEVTMPFS support [message #42999] Tue, 28 June 2011 11:45
holgerb is currently offline  holgerb
Messages: 1
Registered: June 2011
Junior Member
Hi all,

I have recently grabbed the OpenSuse 11.3 and 11.4 OpenVZ templates from the openvz wiki template site.

Unfortunately both templates "bomb out" when creating a VZ container because devtempfs is not available.

There is a small snippet inside the VZ template under /etc/init.d/boot which checks if devtempfs is avaible:
DTYPE=$(stat -f -c "%T" /dev 2>/dev/null)
if test "$DTYPE" != "tmpfs" ; then
    if test "$HAVE_DEVTMPFS" = "0" ; then
       echo "************************* FATAL ERROR *************************"
       echo "******* CONFIG_DEVTMPFS missing from kernel, cannot continue..."
       echo "***************************************************************"
       /sbin/halt -f
    fi
    echo -n "Mounting devtmpfs at /dev"
    mount -n -t devtmpfs -o mode=0755 devtmpfs /dev
    rc_status -v -r
fi


As "workaround" I have disabled this check completely and mounted /dev via tempfs. There are several warnings when accessing /dev/console from rc_status but beside this the VZ container is starting up at least.
DTYPE=$(stat -f -c "%T" /dev 2>/dev/null)
if test "$DTYPE" != "tmpfs" ; then
    #if test "$HAVE_DEVTMPFS" = "0" ; then
    #   echo "************************* FATAL ERROR *************************"
    #   echo "******* CONFIG_DEVTMPFS missing from kernel, cannot continue..."
    #   echo "***************************************************************"
    #   /sbin/halt -f
    #fi
    echo -n "Mounting tmpfs at /dev"
    mount -n -t tmpfs -o mode=0755 tmpfs /dev
    rc_status -v -r
fi


Since we are using proxmox VE 1.8 as virtualisation platform, our host is running a custom proxmox-build kernel with OpenVZ and KVM enabled. One of their developer pointed out that there is currently no OpenVZ kernel with DEVTMPFS enabled.

My questions:
1) Is it true that devtmpfs and OpenVZ inside the kernel do not play nicely together ?
2) Is there a tailored OpenVZ template for OpenSuse at all which works without devtmpfs ?
3) Is there a possibility to build a kernel which provides both OpenVZ functionalities as well as devtempfs support ?

TIA,
Holger
Previous Topic: more than vps on server node keep restart itself
Next Topic: 32bit or 64bit for RHEL6 installation?
Goto Forum:
  


Current Time: Thu May 23 17:25:34 GMT 2024

Total time taken to generate the page: 0.02507 seconds