Changes

Jump to: navigation, search

Creating a Red Hat Template with mach

43 bytes removed, 15:14, 27 August 2008
no edit summary
[[Category: HOWTO]]
[[Category: Templates]]
{{wikify}}
 
Using the "mach" program you can easily create a minimal template for virtually any Red Hat OS. The following example creates a template for Centos 5.2 i386.
#: mach setup base
# Setup any additional packages you want in the chroot
#: mach yum install yum edit /etc/mach/conf to use the centos i386 extras templaterun mach setup basemach yum install yum vim-minimal passwd ssh-clients openssh-server
# Run the script below in the chroot directory (/var/lib/mach/roots/template-name)
# Package the template into /vz/template/cache
# At this point I create a "template" VE and do any other additional configuration inside the running VE, verify that it works, etc. Then I repackage it again.
'''Script to turn mach chroot into vz template:'''
Run these commands from /var/lib/mach/root/template. Replace the ROOT_PWD_HASH with your root password hash with your own hash if you want to set the password for the template. (otherwise, you can vzctl enter VEID and change the password).
2
edits

Navigation menu