I follow this how-to
https://wiki.openvz.org/Slackware_template_creation
Works fine and start container..but only the first time.
Because after remove it,and recreate with
Code:
vzctl create 101 --ostemplate slackware-15-x86_64-minimal
it fail with
Code:
Mount image: /vz/private/101/root.hdd
Container is mounted
Setting permissions for image=/vz/private/101/root.hdd
Failed to mount devtmpfs: No such file or directory
Unmount image: /vz/private/101/root.hdd
Container is unmounted
Failed to start the Container
I have check the /etc/rc.d and devtmpfs is present in those lines
of rc.S and rc.M
Code:
# Run rc.udev again. This will start udev if it is not already running
# (for example, upon return from runlevel 1), otherwise it will trigger it
# to look for device changes and to generate persistent rules if needed.
if grep -wq sysfs /proc/mounts && grep -q devtmpfs /proc/filesystems ; then
if ! grep -wq nohotplug /proc/cmdline ; then
if [ -x /etc/rc.d/rc.udev ]; then
/bin/sh /etc/rc.d/rc.udev start
fi
fi
fi
I have tried first with an empty fstab,then with an fstab with those lines
Code:
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
I tried also without a fstab
But same error.
OpenVZ is 7.0.8