Difference between revisions of "Fedora Core 5 Tips"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Initial version)
 
m (remove extra whitespace)
Line 34: Line 34:
 
   sed 's/caching-nameserver/bind-config/' $INFILE.orig > $INFILE
 
   sed 's/caching-nameserver/bind-config/' $INFILE.orig > $INFILE
 
   </pre>
 
   </pre>
 
  
 
== Creating your own templates ==
 
== Creating your own templates ==

Revision as of 03:14, 10 September 2006

Fedora Core 5 Tips

OpenVZ is a neat piece of software, but sometimes there are confusing things that make it frustrating to use.

This is a collection of guidelines/tips for installing openvz on Fedora Core 5, with a lot of the common gotchas covered.

Use development branch

You should be using the OpenVZ development branch of kernels with FC5. The kernels have test in their name. Go to your yum repo configuration and make sure that the development repo is enabled or do the following.

  echo '
  [openvz-kernel-devel]
  name=OpenVZ development kernel
  mirrorlist=http://download.openvz.org/kernel/mirrors-devel
  enabled=1
  gpgcheck=1
  gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ
  ' > /etc/yum.repos.d/openvz-devel.repo
  

Note: Do not install the FC5 openvz kernel on the website, it is outdated if you have an up to date FC5 install

Fix metadata

After installing the metadata, run the following

  INFILE=/vz/template/fedora-core/5/i386/config/default.list
  if [ ! -e $INFILE.orig ]
  then
    cp $INFILE $INFILE.orig
  fi
  sed 's/caching-nameserver/bind-config/' $INFILE.orig > $INFILE
  

Creating your own templates

If you are trying to tar up a vps to use as a template, make sure you tar up the INSIDE of the vps, and do not include the vpsid at the beginning (ie /101/).

  tar -zcf /vz/template/cache/fedora-core-5-i386-minimal-mine.tar.gz -C /vz/private/101/ .