Changes

Jump to: navigation, search

Creating a CentOS 5.0 Template

157 bytes added, 04:54, 7 August 2011
no edit summary
#: /sys/*
#: /usr/src/*
## Now, tar the OS file up by typing: '''tar --numeric-owner –czvf -czvf /tmp/centos-5.0-<ARCH>-<DISTRO>-image.tar.gz –X -X /tmp/exclude /''' where <'''ARCH'''> represents the system architecture ('''i386''' or
#: '''x86_64''') and <'''DISTRO'''> represents the distribution (default, minimal, etc.).
## Now transfer the file over to the OpenVZ server into '''/vz/template/cache''' folder.
#: mknod dev/ptmx c 5 2
#: mkdir dev/pts
#: /sbin/MAKEDEV –d /vz/private/50/dev ttyp ptyp
#: mknod dev/null c 1 3
#: mknod -m 644 dev/random c 1 8
#: blacklist net-pf-10
# Disable any physical NICs by modifying the '''etc/sysconfig/network-scripts/ifcfg-ethX''' files (where '''X''' is the interface number starting from '''0''') and setting '''ONBOOT''' to '''no'''.
# Check etc/sysconfig/init to see if PROMPT=yes, and then change to no. Otherwise when startup init script rc will enter interactive mode and wait there forever
 
# Now you’re ready to start the template. Type '''vzctl start 50''' and wait for it to start.
# You can install additional packages into the container by typing '''vzyum 50 install <package>''' at the prompt where <'''package'''> represents the name of the software package you wish to install.
1
edit

Navigation menu