The Golden Image functionality allows you to preinstall application templates to OS EZ template caches to speed up creating multiple containers based on the same set of OS and application templates. Previously, you could either install application templates to each container after creating it or embed them directly into a custom OS template. Golden Image is currently the easiest and fastest way to create containers with preinstalled applications.
The Golden Image functionality is enabled by default in the /etc/sysconfig/vz/vz.conf
global configuration file. Should you wish to disable it, do one of the following:
-
Set the
GOLDEN_IMAGE
option tono
in the OpenVZ global configuration file. The Golden Image functionality will be disabled globally. -
Set the
GOLDEN_IMAGE
option tono
in the container sample configuration file. The Golden Image functionality will be disabled for commands that use this specific sample configuration file. -
Create a file named
golden_image
containingno
in the OS EZ template’s configuration directory. The Golden Image functionality will be disabled for this specific OS EZ template. -
Create a file named
golden_image
containingno
in the application template’s configuration directory. The Golden Image functionality will be disabled for this specific application template, so it will not be preinstalled into any OS EZ template caches.