Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gentoo on a kvm - can't install kernel sources
Date: Sun, 25 Aug 2013 21:51:20
Message-Id: 521A7B78.4000102@gmail.com
In Reply to: Re: [gentoo-user] gentoo on a kvm - can't install kernel sources by Michael Mair-Keimberger
1 On 25/08/2013 23:33, Michael Mair-Keimberger wrote:
2 >
3 >
4 > On Monday 26 August 2013 01:49:17 Yohan Pereira wrote:
5 >
6 >> On 25/08/13 at 09:50pm, Alan McKinnon wrote:
7 >
8 >> > I'd recommend cross-building just a kernel and modules locally and
9 >
10 >> > copying that to the vm, it will only be about 6 to 8M
11 >
12 >> >
13 >
14 >> >
15 >
16 >> > Some food for thought:
17 >
18 >> >
19 >
20 >> > I do question the wisdom though of running Gentoo on a VM like that.
21 >
22 >> > I've always found that Gentoo (despite all it's fantastic awesomeness
23 >
24 >> > elsewhere) is really not fitted for that specific task very well - it
25 >
26 >> > tends to be a lot of pain and not much gain.
27 >
28 >> >
29 >
30 >> > Why do you want Gentoo on the vm? Is there a very good reason, or is it
31 >
32 >> > because you are familiar with it?
33 >
34 >> >
35 >
36 >> > If the second reason, you might want to have a look at FreeBSD or one of
37 >
38 >> > the binary distros based of Gentoo like Sabayon. You might find the best
39 >
40 >> > of both worlds in that space.
41 >
42 >>
43 >
44 >> Well I have a couple VM's running on 256 mb of RAM. While I'll admit I
45 >
46 >> initially chose gentoo because of familiarity. It seemed to work out fine
47 >
48 >> although I'll admit I've I haven't updated the kernel, just using the
49 >
50 >> kernel provided by the host. AFAIR the heaviest(memory wise) thing I did
51 >
52 >> on such a VM was running a java stock trading application in a virtual
53 >
54 >> screen that was accessed via VNC.
55 >
56 >>
57 >
58 >> I've never had problems(yet) compiling gcc etc. I remeber being able to
59 >
60 >> compile faster than my laptop's aging core 2 due processor.
61 >
62 >>
63 >
64 >> Currently I use one for my personal a mail server, quassel (irc client),
65 >
66 >> tt-rss, git/mecurial collaboration, development web hosting and other
67 >
68 >> random stuff. It hasn't borked on me yet but YMMV. Heres the output of
69 > free
70 >
71 >> from the VM.
72 >
73 >>
74 >
75 >> $ free -m
76 >
77 >> total used free shared buffers
78 >
79 >> cached
80 >
81 >> Mem: 246 231 15 0
82 >
83 >> 14 157
84 >
85 >> -/+ buffers/cache: 59 187
86 >
87 >> Swap: 494 57 437
88 >
89 >
90 >
91 > Well, familiarity was my main reason but actually i though gentoo fits
92 > anyway quite good on such weak systems? (well besides compiling on it)
93 > You get a small system which needs not much space and performs quite
94 > good. (thats why 5GB is actually enough for me - i don't store anything
95 > there).
96 >
97 > FreeBSD might be a good alternative and in case gentoo is to much pain
98 > i'll give it a try. :)
99 >
100 >
101 >
102 > BTW, i have an alix device at home which also has just 256MB Ram and
103 > while the CF-Card (where the gentoo system is stored) has 8GB now, i've
104 > started with an 4GB CF-Card and i did compile on this device - even
105 > (hardened)kernels :)
106 >
107 > That was ~3 years ago, now i cross-compile for this device. However,
108 > gentoo on such devices runs perfectly well and rock stable. :)
109
110
111 If it works for you then it works :-)
112
113
114 --
115 Alan McKinnon
116 alan.mckinnon@×××××.com