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