OS template creation [message #14272] |
Thu, 21 June 2007 07:51 |
jmelyn
Messages: 27 Registered: June 2007
|
Junior Member |
|
|
Hi there,
I've discovered OpenVZ and I've just tested it. Well, not yet confident in the way to make it working. I have few questions, surely obvious for most of you:
* At the present moment, is it better to have a host OS limited to 32 bit or 64 bit OS works fine?
* In case of 32 bit host OS, can I have VEs using 64 bit templates? And the other way: 64 bit host OS with 32 bit VEs?
* I'd like to have VEs using SLC4 (Scientific Linux CERN 4) based on RHEL4 (working with RPM and YUM). There is of course no template created yet, so I have to create one. Did not found any good explanation of what and how to do that job, just tricks and recipes. Maybe I'm a bit limited .
For the last point, can someone give me the way to create a template from scratch? Maybe just the address of a good paper. If there is no and I succeed in setting everything up and running, I can write some wiki for newbies (OpenVZ for dummies )
|
|
|
Re: OS template creation [message #14274 is a reply to message #14272] |
Thu, 21 June 2007 10:08 |
|
jmelyn wrote on Thu, 21 June 2007 11:51 | * At the present moment, is it better to have a host OS limited to 32 bit or 64 bit OS works fine?
|
64 bit OS works fine, but template tools are limited to 32-bit. That means you have to create 64-bit template in a more manual fashion.
Quote: | * In case of 32 bit host OS, can I have VEs using 64 bit templates? And the other way: 64 bit host OS with 32 bit VEs?
|
64 bit host OS handles 32 bit VEs just fine -- but not the other way!
Quote: | * I'd like to have VEs using SLC4 (Scientific Linux CERN 4) based on RHEL4 (working with RPM and YUM). There is of course no template created yet, so I have to create one. Did not found any good explanation of what and how to do that job, just tricks and recipes. Maybe I'm a bit limited .
|
If for 32 bit, start from learning what vztmpl-centos-4 consists of (that all should be pretty straightforward), then modify it to use SLC repositories, then run vzpkgcache to create SLC templates. Any questions -- ask here.
Kir Kolyshkin
|
|
|
Re: OS template creation [message #14286 is a reply to message #14274] |
Thu, 21 June 2007 14:54 |
jmelyn
Messages: 27 Registered: June 2007
|
Junior Member |
|
|
Fine! Thank you for your comments, kir . Now just three specific questions about dir and files:
* Are the files *.list in config dir just the list returned by rpm -qa on the OS that has to become a VE?
* Are the names of the different *.list files used as <os_name> when creating a new VE: vzctl create 101 --ostemplate <os_name> ...?
* Do I need a vz-addons dir? What is it used for?
[Updated on: Thu, 21 June 2007 14:56] Report message to a moderator
|
|
|
|
Re: OS template creation [message #14290 is a reply to message #14289] |
Thu, 21 June 2007 15:06 |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
For cern 4.5 you can use CentOS 4 metadata with the following yum.conf based on centOS 4 yum.conf
[main]
cachedir=/vz/template/cern/4/i386/yum-cache/
# Ugly hack to make yum disregard /etc/yum.repos.d/*repo files
# from both the host system and from inside VPS
reposdir=/dev/null
# Fix for bug #78 - we do not want to install dummy,
# we want to upgrade it.
installonlypkgs=''
[cern4-vz-addons]
name=OpenVZ add-ons for Cern 4 - i386
baseurl=file:///vz/template/cern/4/i386/vz-addons/
enabled=1
gpgcheck=0
[cern4-base]
name=Cern 4 - i386 - Base
baseurl=ftp://linuxsoft.cern.ch/cern/slc44/i386/yum/os
enabled=1
gpgcheck=1
[cern4-updates-released]
name=Cern 4 - i386 - Released Updates
baseurl=ftp://linuxsoft.cern.ch/cern/slc44/i386/yum/updates
enabled=1
gpgcheck=1
[Updated on: Thu, 21 June 2007 15:06] Report message to a moderator
|
|
|
|
|