* [gentoo-user] Mini Gentoo in VMWare
@ 2006-11-03 5:43 Trenton Adams
2006-11-03 13:53 ` [gentoo-user] " F.J.Zhao
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Trenton Adams @ 2006-11-03 5:43 UTC (permalink / raw
To: gentoo-user
Hi Guys,
Has anyone here played with minimalizing everything for use in vmware?
Basically what I want to do is create a series of VERY tiny VMs that
are all independent of each other, which provide one service. For
instance, I might put apache on one VM, and tomcat on another, and so
on. Obviously, I would want their memory usage to be absolutely
minimized, seeing that I would like to run them all on one computer.
I would probably provide them 64M-128M of RAM each, for their specific
service. Perhaps a little more if really required.
Is there really anything that I should worry about? Perhaps I should
just DO IT?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Mini Gentoo in VMWare
2006-11-03 5:43 [gentoo-user] Mini Gentoo in VMWare Trenton Adams
@ 2006-11-03 13:53 ` F.J.Zhao
2006-11-03 14:15 ` Harm Geerts
2006-11-06 12:50 ` [gentoo-user] " Hans-Werner Hilse
2 siblings, 0 replies; 13+ messages in thread
From: F.J.Zhao @ 2006-11-03 13:53 UTC (permalink / raw
To: gentoo-user
In order to create very tiny vms, I suggest you use lfs instead.
Gentoo is harder to do so.
2006/11/3, Trenton Adams <trenton.d.adams@gmail.com>:
> Hi Guys,
>
> Has anyone here played with minimalizing everything for use in vmware?
>
> Basically what I want to do is create a series of VERY tiny VMs that
> are all independent of each other, which provide one service. For
> instance, I might put apache on one VM, and tomcat on another, and so
> on. Obviously, I would want their memory usage to be absolutely
> minimized, seeing that I would like to run them all on one computer.
> I would probably provide them 64M-128M of RAM each, for their specific
> service. Perhaps a little more if really required.
>
> Is there really anything that I should worry about? Perhaps I should
> just DO IT?
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Mini Gentoo in VMWare
2006-11-03 5:43 [gentoo-user] Mini Gentoo in VMWare Trenton Adams
2006-11-03 13:53 ` [gentoo-user] " F.J.Zhao
@ 2006-11-03 14:15 ` Harm Geerts
2006-11-06 5:19 ` Trenton Adams
2006-11-06 12:50 ` [gentoo-user] " Hans-Werner Hilse
2 siblings, 1 reply; 13+ messages in thread
From: Harm Geerts @ 2006-11-03 14:15 UTC (permalink / raw
To: gentoo-user
On Friday 03 November 2006 06:43, Trenton Adams wrote:
> Hi Guys,
>
> Has anyone here played with minimalizing everything for use in vmware?
>
> Basically what I want to do is create a series of VERY tiny VMs that
> are all independent of each other, which provide one service. For
> instance, I might put apache on one VM, and tomcat on another, and so
> on. Obviously, I would want their memory usage to be absolutely
> minimized, seeing that I would like to run them all on one computer.
> I would probably provide them 64M-128M of RAM each, for their specific
> service. Perhaps a little more if really required.
>
> Is there really anything that I should worry about? Perhaps I should
> just DO IT?
Nick[1] made a post about minimizing Gentoo a while back.
But that topic was mainly about the disk usage.
I suppose you would benefit from a system that uses the -Os flag to create
small binairies.
But do you think vmware is fit for such a task?
vmware is a big strain on resources itself.
You might want to have a look at xen[2] instead.
[1] http://thread.gmane.org/gmane.linux.gentoo.user/160899/focus=160903
[2] http://www.xensource.com/xen/xen/index.html
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Re: Mini Gentoo in VMWare
2006-11-03 14:15 ` Harm Geerts
@ 2006-11-06 5:19 ` Trenton Adams
2006-11-08 5:27 ` Daevid Vincent
0 siblings, 1 reply; 13+ messages in thread
From: Trenton Adams @ 2006-11-06 5:19 UTC (permalink / raw
To: gentoo-user
Yes, VMWare is fit for the task, simply because I would be using it on
a windows machine. Unless there is something better for a windows
machine?
Thanks for the hints.
On 11/3/06, Harm Geerts <harmgeerts@home.nl> wrote:
> On Friday 03 November 2006 06:43, Trenton Adams wrote:
> > Hi Guys,
> >
> > Has anyone here played with minimalizing everything for use in vmware?
> >
> > Basically what I want to do is create a series of VERY tiny VMs that
> > are all independent of each other, which provide one service. For
> > instance, I might put apache on one VM, and tomcat on another, and so
> > on. Obviously, I would want their memory usage to be absolutely
> > minimized, seeing that I would like to run them all on one computer.
> > I would probably provide them 64M-128M of RAM each, for their specific
> > service. Perhaps a little more if really required.
> >
> > Is there really anything that I should worry about? Perhaps I should
> > just DO IT?
>
> Nick[1] made a post about minimizing Gentoo a while back.
> But that topic was mainly about the disk usage.
> I suppose you would benefit from a system that uses the -Os flag to create
> small binairies.
>
> But do you think vmware is fit for such a task?
> vmware is a big strain on resources itself.
> You might want to have a look at xen[2] instead.
>
> [1] http://thread.gmane.org/gmane.linux.gentoo.user/160899/focus=160903
> [2] http://www.xensource.com/xen/xen/index.html
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-03 5:43 [gentoo-user] Mini Gentoo in VMWare Trenton Adams
2006-11-03 13:53 ` [gentoo-user] " F.J.Zhao
2006-11-03 14:15 ` Harm Geerts
@ 2006-11-06 12:50 ` Hans-Werner Hilse
2006-11-06 13:27 ` Neil Bothwick
2 siblings, 1 reply; 13+ messages in thread
From: Hans-Werner Hilse @ 2006-11-06 12:50 UTC (permalink / raw
To: gentoo-user
Hi,
On Thu, 2 Nov 2006 22:43:40 -0700 "Trenton Adams"
<trenton.d.adams@gmail.com> wrote:
> Has anyone here played with minimalizing everything for use in vmware?
No, not for that use, but for other uses, yes. But you need to specify
what exactly you mean by saying "minimized".
I wouldn't go the road and use LFS, as suggested here. IMHO, LFS is
absolutely not the way to go when in need for security updates and
stuff. Gentoo does it just fine.
OTOH, you won't be able to run Tomcat with 64MB of RAM without it
getting veeeery sluggish...
My suggestion would be to setup a "master" chroot environment on some
crafty machine and compile binary packages for all the software you
need, then distribute them to the VMs by setting up stage3's and set
PORTAGE_BINHOST appropriately. If you want to strip down documentation,
locales and stuff, have a look at the scripting facilities of portage:
e.g. put this into /etc/portage/bashrc (on the "master" chroot, if you
go with a buildhost):
---snip
post_src_install() {
rm -rf image/usr/share/man
rm -rf image/usr/share/doc
}
---snip
HTH,
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 12:50 ` [gentoo-user] " Hans-Werner Hilse
@ 2006-11-06 13:27 ` Neil Bothwick
2006-11-06 17:20 ` Bo Ørsted Andresen
0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2006-11-06 13:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
On Mon, 6 Nov 2006 13:50:35 +0100, Hans-Werner Hilse wrote:
> If you want to strip down documentation,
> locales and stuff, have a look at the scripting facilities of portage:
> e.g. put this into /etc/portage/bashrc (on the "master" chroot, if you
> go with a buildhost):
> ---snip
> post_src_install() {
> rm -rf image/usr/share/man
> rm -rf image/usr/share/doc
> }
Or use FEATURES="nodoc noman noinfo", provided you are using a recent
enough portage, I'm unsure of when this was introduced.
--
Neil Bothwick
Committee (noun): A group of people spending hours taking minutes
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 13:27 ` Neil Bothwick
@ 2006-11-06 17:20 ` Bo Ørsted Andresen
2006-11-06 18:53 ` Neil Bothwick
0 siblings, 1 reply; 13+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-06 17:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
On Monday 06 November 2006 14:27, Neil Bothwick wrote:
> On Mon, 6 Nov 2006 13:50:35 +0100, Hans-Werner Hilse wrote:
> > If you want to strip down documentation,
> > locales and stuff, have a look at the scripting facilities of portage:
> > e.g. put this into /etc/portage/bashrc (on the "master" chroot, if you
> > go with a buildhost):
> > ---snip
> > post_src_install() {
> > rm -rf image/usr/share/man
> > rm -rf image/usr/share/doc
> > }
>
> Or use FEATURES="nodoc noman noinfo", provided you are using a recent
> enough portage, I'm unsure of when this was introduced.
It's was introduced before portage-2.0.50. :)
http://sources.gentoo.org/viewcvs.py/gentoo-src/portage/bin/ebuild.sh?r1=1.145&r2=1.146
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 17:20 ` Bo Ørsted Andresen
@ 2006-11-06 18:53 ` Neil Bothwick
2006-11-06 19:23 ` Bo Ørsted Andresen
0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2006-11-06 18:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
On Mon, 6 Nov 2006 18:20:10 +0100, Bo Ørsted Andresen wrote:
> > Or use FEATURES="nodoc noman noinfo", provided you are using a recent
> > enough portage, I'm unsure of when this was introduced.
>
> It's was introduced before portage-2.0.50. :)
OK, so "recent enough" >= "2.0.50" :)
It's still not mentioned in /etc/make.conf.example :(
--
Neil Bothwick
. <-Stealth Tagline
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 18:53 ` Neil Bothwick
@ 2006-11-06 19:23 ` Bo Ørsted Andresen
2006-11-06 22:52 ` Neil Bothwick
0 siblings, 1 reply; 13+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-06 19:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
On Monday 06 November 2006 19:53, Neil Bothwick wrote:
> On Mon, 6 Nov 2006 18:20:10 +0100, Bo Ørsted Andresen wrote:
> > > Or use FEATURES="nodoc noman noinfo", provided you are using a recent
> > > enough portage, I'm unsure of when this was introduced.
> >
> > It's was introduced before portage-2.0.50. :)
>
> OK, so "recent enough" >= "2.0.50" :)
>
> It's still not mentioned in /etc/make.conf.example :(
It's in `man make.conf`. The example was never intended to be complete.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 19:23 ` Bo Ørsted Andresen
@ 2006-11-06 22:52 ` Neil Bothwick
2006-11-06 23:32 ` Bo Ørsted Andresen
0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2006-11-06 22:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
On Mon, 6 Nov 2006 20:23:49 +0100, Bo Ørsted Andresen wrote:
> > It's still not mentioned in /etc/make.conf.example :(
>
> It's in `man make.conf`.
I know.
> The example was never intended to be complete.
Still surprising though, when much newer features are documented in the
example file.
--
Neil Bothwick
Error reading FAT record: Try the SKINNY one? (Y/N)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Mini Gentoo in VMWare
2006-11-06 22:52 ` Neil Bothwick
@ 2006-11-06 23:32 ` Bo Ørsted Andresen
0 siblings, 0 replies; 13+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-06 23:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
On Monday 06 November 2006 23:52, Neil Bothwick wrote:
> On Mon, 6 Nov 2006 20:23:49 +0100, Bo Ørsted Andresen wrote:
> > > It's still not mentioned in /etc/make.conf.example :(
> >
> > It's in `man make.conf`.
>
> I know.
>
> > The example was never intended to be complete.
>
> Still surprising though, when much newer features are documented in the
> example file.
Personally I don't think these features are important enough that they should
be in the example rather than just the man page, but I'm not a portage dev so
my opinion doesn't really matter. If you think it should be in the example
then I suggest you file a bug about it. It may be marked WONTFIX but then
again maybe it'll be fixed. I guess we won't know unless someone requests
it... :)
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: [gentoo-user] Re: Mini Gentoo in VMWare
2006-11-06 5:19 ` Trenton Adams
@ 2006-11-08 5:27 ` Daevid Vincent
2006-11-19 20:29 ` Trenton Adams
0 siblings, 1 reply; 13+ messages in thread
From: Daevid Vincent @ 2006-11-08 5:27 UTC (permalink / raw
To: gentoo-user
I use a Gentoo VM for a lot of LAMP dev work, and I can tell you it's kind
of painful to upgrade packages with all the compiling. VMWare is slower than
normal to compile, mostly due to disk I/O. Since each HD is a big-ass file.
A few optimizations I might suggest:
Partition a dedicated physical hard drive into chunks and use VMWare's "raw"
disk so you have real hardware/hard disks. I'd suggest a very fast SCSI
drive for the best performance since you're running several VMs.
Also, look into the VMWare server version which uses the raw iron a bit
better as it's dedicated to running many VMs.
I find that more RAM on VMWare has a point of deminishing returns. I have a
VM that I dedicate 512MB of my 2GBs and honestly it feels slower than when I
give it 128-256MB only. It may be a WinXP thing that it's not efficiently
using the RAM right or something.
> -----Original Message-----
> From: Trenton Adams [mailto:trenton.d.adams@gmail.com]
> Sent: Sunday, November 05, 2006 9:19 PM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Re: Mini Gentoo in VMWare
>
> Yes, VMWare is fit for the task, simply because I would be using it on
> a windows machine. Unless there is something better for a windows
> machine?
>
> Thanks for the hints.
>
> On 11/3/06, Harm Geerts <harmgeerts@home.nl> wrote:
> > On Friday 03 November 2006 06:43, Trenton Adams wrote:
> > > Hi Guys,
> > >
> > > Has anyone here played with minimalizing everything for
> use in vmware?
> > >
> > > Basically what I want to do is create a series of VERY
> tiny VMs that
> > > are all independent of each other, which provide one service. For
> > > instance, I might put apache on one VM, and tomcat on
> another, and so
> > > on. Obviously, I would want their memory usage to be absolutely
> > > minimized, seeing that I would like to run them all on
> one computer.
> > > I would probably provide them 64M-128M of RAM each, for
> their specific
> > > service. Perhaps a little more if really required.
> > >
> > > Is there really anything that I should worry about?
> Perhaps I should
> > > just DO IT?
> >
> > Nick[1] made a post about minimizing Gentoo a while back.
> > But that topic was mainly about the disk usage.
> > I suppose you would benefit from a system that uses the -Os
> flag to create
> > small binairies.
> >
> > But do you think vmware is fit for such a task?
> > vmware is a big strain on resources itself.
> > You might want to have a look at xen[2] instead.
> >
> > [1]
> http://thread.gmane.org/gmane.linux.gentoo.user/160899/focus=160903
> > [2] http://www.xensource.com/xen/xen/index.html
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Re: Mini Gentoo in VMWare
2006-11-08 5:27 ` Daevid Vincent
@ 2006-11-19 20:29 ` Trenton Adams
0 siblings, 0 replies; 13+ messages in thread
From: Trenton Adams @ 2006-11-19 20:29 UTC (permalink / raw
To: gentoo-user
Your slowness could be due to not telling vmware to allocate all memory into physical memory, and not using a full sized disk image. It seems like vmware accesses the blocks directly, when you pre-allocate. And if the image gets fragmented, vmware warns you about it, so that you can ask it to defragment it. But, if you're using a resizable image, then you may see some slowness.
I bench marked the disk running gentoo linux on a Dell D820 notebook, in native mode. I copied that same gentoo over to a VM, and ran into in windows on the same D820 Notebook, and got slightly better performance results, by about 2-5 M/sec. I used "bonnie++ -c 5 -s 4096 -r 768 -u someone". I haven't tried it on a dynamically re-sizable disk. These results indicate to me that VMware is using direct block access, and bypassing the file system. Either that, or simply keeping it un-fragmented makes a big difference. !
As far as compiling slower, I've found there is a very MINOR difference between a real machine, and a VM.
On 11/7/06, Daevid Vincent <daevid@daevid.com> wrote:
> I use a Gentoo VM for a lot of LAMP dev work, and I can tell you it's kind
> of painful to upgrade packages with all the compiling. VMWare is slower than
> normal to compile, mostly due to disk I/O. Since each HD is a big-ass file.
>
> A few optimizations I might suggest:
>
> Partition a dedicated physical hard drive into chunks and use VMWare's "raw"
> disk so you have real hardware/hard disks. I'd suggest a very fast SCSI
> drive for the best performance since you're running several VMs.
>
> Also, look into the VMWare server version which uses the raw iron a bit
> better as it's dedicated to running many VMs.
>
> I find that more RAM on VMWare has a point of deminishing returns. I have a
> VM that I dedicate 512MB of my 2GBs and honestly it feels slower than when I
> give it 128-256MB only. It may be a WinXP thing that it's not efficiently
> using the RAM right or something.
>
> > -----Original Message-----
> > From: Trenton Adams [mailto:trenton.d.adams@gmail.com]
> > Sent: Sunday, November 05, 2006 9:19 PM
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] Re: Mini Gentoo in VMWare
> >
> > Yes, VMWare is fit for the task, simply because I would be using it on
> > a windows machine. Unless there is something better for a windows
> > machine?
> >
> > Thanks for the hints.
> >
> > On 11/3/06, Harm Geerts <harmgeerts@home.nl> wrote:
> > > On Friday 03 November 2006 06:43, Trenton Adams wrote:
> > > > Hi Guys,
> > > >
> > > > Has anyone here played with minimalizing everything for
> > use in vmware?
> > > >
> > > > Basically what I want to do is create a series of VERY
> > tiny VMs that
> > > > are all independent of each other, which provide one service. For
> > > > instance, I might put apache on one VM, and tomcat on
> > another, and so
> > > > on. Obviously, I would want their memory usage to be absolutely
> > > > minimized, seeing that I would like to run them all on
> > one computer.
> > > > I would probably provide them 64M-128M of RAM each, for
> > their specific
> > > > service. Perhaps a little more if really required.
> > > >
> > > > Is there really anything that I should worry about?
> > Perhaps I should
> > > > just DO IT?
> > >
> > > Nick[1] made a post about minimizing Gentoo a while back.
> > > But that topic was mainly about the disk usage.
> > > I suppose you would benefit from a system that uses the -Os
> > flag to create
> > > small binairies.
> > >
> > > But do you think vmware is fit for such a task?
> > > vmware is a big strain on resources itself.
> > > You might want to have a look at xen[2] instead.
> > >
> > > [1]
> > http://thread.gmane.org/gmane.linux.gentoo.user/160899/focus=160903
> > > [2] http://www.xensource.com/xen/xen/index.html
> > > --
> > > gentoo-user@gentoo.org mailing list
> > >
> > >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-11-19 20:33 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 5:43 [gentoo-user] Mini Gentoo in VMWare Trenton Adams
2006-11-03 13:53 ` [gentoo-user] " F.J.Zhao
2006-11-03 14:15 ` Harm Geerts
2006-11-06 5:19 ` Trenton Adams
2006-11-08 5:27 ` Daevid Vincent
2006-11-19 20:29 ` Trenton Adams
2006-11-06 12:50 ` [gentoo-user] " Hans-Werner Hilse
2006-11-06 13:27 ` Neil Bothwick
2006-11-06 17:20 ` Bo Ørsted Andresen
2006-11-06 18:53 ` Neil Bothwick
2006-11-06 19:23 ` Bo Ørsted Andresen
2006-11-06 22:52 ` Neil Bothwick
2006-11-06 23:32 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox