* [gentoo-dev] Sharing portage?
@ 2006-06-13 13:31 Molle Bestefich
2006-06-13 13:46 ` Luca Barbato
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Molle Bestefich @ 2006-06-13 13:31 UTC (permalink / raw
To: gentoo-dev
Hi
Follow-up question to the backup thingy.
Is there an easy way to share Portage's database between multiple
virtual machines?
Optimally, I would emerge --sync and the results would land in a
filesystem that I'd share between VMs, so I don't have to do emerge
--sync in each and all of them. The filesystem could perhaps be
readonly to the virtual machines, except for the one doing the --sync
of course.
(Currently, I run emerge --sync in all virtual machines.)
Thanks!
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Sharing portage?
2006-06-13 13:31 [gentoo-dev] Sharing portage? Molle Bestefich
@ 2006-06-13 13:46 ` Luca Barbato
2006-06-13 13:50 ` Jonathan Adamczewski
2006-06-13 14:02 ` Chris Gianelloni
2 siblings, 0 replies; 6+ messages in thread
From: Luca Barbato @ 2006-06-13 13:46 UTC (permalink / raw
To: gentoo-dev
Molle Bestefich wrote:
> Hi
>
> Follow-up question to the backup thingy.
>
> Is there an easy way to share Portage's database between multiple
> virtual machines?
>
unionfs is your friend =)
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Sharing portage?
2006-06-13 13:31 [gentoo-dev] Sharing portage? Molle Bestefich
2006-06-13 13:46 ` Luca Barbato
@ 2006-06-13 13:50 ` Jonathan Adamczewski
2006-06-13 17:18 ` Alec Warner
2006-06-13 14:02 ` Chris Gianelloni
2 siblings, 1 reply; 6+ messages in thread
From: Jonathan Adamczewski @ 2006-06-13 13:50 UTC (permalink / raw
To: gentoo-dev
Molle Bestefich wrote:
> Hi
>
> Follow-up question to the backup thingy.
>
> Is there an easy way to share Portage's database between multiple
> virtual machines?
>
> Optimally, I would emerge --sync and the results would land in a
> filesystem that I'd share between VMs, so I don't have to do emerge
> --sync in each and all of them. The filesystem could perhaps be
> readonly to the virtual machines, except for the one doing the --sync
> of course.
I share /usr/portage across several machines as an nfs mount. 'emerge
--sync' is done on only one machine.
Until recently, 'emerge --metadata' was still needed on the other
machines, but thanks to the metadata_overlay database, this is no longer
necessary. And most emerge-related activities are much, much faster.
[To use the new database module, with portage-2.1, put
in /etc/portage/modules:
portdbapi.auxdbmodule = cache.metadata_overlay.database
in /etc/make.conf:
FEATURE="-metadata-transfer"
and remove /var/cache/edb/dep/\${PORTDIR} ]
To have distfiles safely shared across the many machines, you need
FEATURES="distlocks" and you'll need to relocate (or mount separately)
${DISTDIR} if ${PORTDIR} is read-only.
Also, I think you're getting into questions that should be on -user. ;)
j.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Sharing portage?
2006-06-13 13:50 ` Jonathan Adamczewski
@ 2006-06-13 17:18 ` Alec Warner
0 siblings, 0 replies; 6+ messages in thread
From: Alec Warner @ 2006-06-13 17:18 UTC (permalink / raw
To: gentoo-dev
Jonathan Adamczewski wrote:
> Molle Bestefich wrote:
>
>>Hi
>>
>>Follow-up question to the backup thingy.
>>
>>Is there an easy way to share Portage's database between multiple
>>virtual machines?
>>
>>Optimally, I would emerge --sync and the results would land in a
>>filesystem that I'd share between VMs, so I don't have to do emerge
>>--sync in each and all of them. The filesystem could perhaps be
>>readonly to the virtual machines, except for the one doing the --sync
>>of course.
>
>
> I share /usr/portage across several machines as an nfs mount. 'emerge
> --sync' is done on only one machine.
>
> Until recently, 'emerge --metadata' was still needed on the other
> machines, but thanks to the metadata_overlay database, this is no longer
> necessary. And most emerge-related activities are much, much faster.
>
> [To use the new database module, with portage-2.1, put
>
> in /etc/portage/modules:
> portdbapi.auxdbmodule = cache.metadata_overlay.database
>
> in /etc/make.conf:
> FEATURE="-metadata-transfer"
>
> and remove /var/cache/edb/dep/\${PORTDIR} ]
Please Please Please read the docs before using metadata_overlay; there
are some stipulations you need to follow when turning it on,
specifically "you cannot edit eclasses". Otherwise, let it loose ;)
>
>
> To have distfiles safely shared across the many machines, you need
> FEATURES="distlocks" and you'll need to relocate (or mount separately)
> ${DISTDIR} if ${PORTDIR} is read-only.
>
>
> Also, I think you're getting into questions that should be on -user. ;)
>
> j.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Sharing portage?
2006-06-13 13:31 [gentoo-dev] Sharing portage? Molle Bestefich
2006-06-13 13:46 ` Luca Barbato
2006-06-13 13:50 ` Jonathan Adamczewski
@ 2006-06-13 14:02 ` Chris Gianelloni
2006-06-13 15:51 ` Andrej Kacian
2 siblings, 1 reply; 6+ messages in thread
From: Chris Gianelloni @ 2006-06-13 14:02 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
On Tue, 2006-06-13 at 15:31 +0200, Molle Bestefich wrote:
> Hi
>
> Follow-up question to the backup thingy.
>
> Is there an easy way to share Portage's database between multiple
> virtual machines?
>
> Optimally, I would emerge --sync and the results would land in a
> filesystem that I'd share between VMs, so I don't have to do emerge
> --sync in each and all of them. The filesystem could perhaps be
> readonly to the virtual machines, except for the one doing the --sync
> of course.
>
> (Currently, I run emerge --sync in all virtual machines.)
I current use NFS to share my portage tree at home. All you need is to
store the portage tree on one machine. I would suggest the actual
machine the virtual machines run on, rather than the virtual machines
themselves, but you really can put them anywhere. You want the tree to
be writable, too, so that you can sync from any machine and also because
of distfiles.
--
Chris Gianelloni
Release Engineering - Strategic Lead
x86 Architecture Team
Games - Developer
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-06-13 17:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 13:31 [gentoo-dev] Sharing portage? Molle Bestefich
2006-06-13 13:46 ` Luca Barbato
2006-06-13 13:50 ` Jonathan Adamczewski
2006-06-13 17:18 ` Alec Warner
2006-06-13 14:02 ` Chris Gianelloni
2006-06-13 15:51 ` Andrej Kacian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox