FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 12-23-2010, 10:17 AM
Arkadi Shishlov
 
Default virtual server profile

On 12/21/10 16:58, Ed W wrote:
> However, if that developer/administrator is available, then Gentoo is a
> marvellous solution for quickly building few MB custom solution, or a 60MB
> virtual server base installation, or whatever other customised environment you
> desire?

Do you have such a setup for virtual server or, maybe, openvpz/vserver? ie.
profile/make.conf/install masks/whatever ready for public consumption you can share?
 
Old 02-26-2011, 10:58 AM
Ed W
 
Default virtual server profile

On 23/12/2010 11:17, Arkadi Shishlov wrote:

On 12/21/10 16:58, Ed W wrote:

However, if that developer/administrator is available, then Gentoo is a
marvellous solution for quickly building few MB custom solution, or a 60MB
virtual server base installation, or whatever other customised environment you
desire?

Do you have such a setup for virtual server or, maybe, openvpz/vserver? ie.
profile/make.conf/install masks/whatever ready for public consumption you can share?


Sorry, missed your email

OK, I create

/usr/local/portage/profiles/my-hardened/

this has a file "parent" which contains:
../../../../portage/profiles/hardened/linux/amd64/10.0


Then simply create any overrides for completely global defaults and keywords

I then create various subdirectories:

vserver-host: this holds the generic host config
vserver-guest: this is the base for the various guest configs
(over-rides for all guests go here)


In the vserver-guest I create more directories per vserver type, eg:

vserver-guest/
vserver-guest/proxy
vserver-guest/no-multilib
vserver-guest/www
vserver-guest/www/apache2
vserver-guest/www/nginx
vserver-guest/mysql
vserver-guest/fs
vserver-guest/dns
vserver-guest/glusterfs
vserver-guest/mail


The main thing to remember is that you need a "parent" file containing
".." in each and every directory or else you just failed to inherit from
the top level profile. However, after that just customise what you need
for each guest type!



Oh, further, in my host I have several package directories:
/usr/portage/packages/
/usr/portage/packages/local
/usr/portage/packages/uclibc.host
/usr/portage/packages/uclibc
/usr/portage/packages/guest32
/usr/portage/packages/guest64

The "local" one is for the host and the others are mounted to the
appropriate class of guest. Note this isn't as granular as you desire,
eg the PHP package will normally have different use flags between apache
and nginx guests. However, portage simply uses or rebuilds the php
package as it finds it previously built. This is satisfactory for me.
Mysql is another example where most guests build with "-minimal", but
the servers build the full server. Again handled automatically with a
slight slowdown occasionally



Good luck

Ed W
 

Thread Tools




All times are GMT. The time now is 10:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org