Gentoo Archives: gentoo-user

From: lee <lee@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] installing Gentoo in a xen VM
Date: Fri, 05 Dec 2014 00:33:20
Message-Id: 87y4qnxbwp.fsf@gulltop.yagibdah.de
In Reply to: Re: [gentoo-user] installing Gentoo in a xen VM by Rich Freeman
1 Rich Freeman <rich0@g.o> writes:
2
3 > On Thu, Dec 4, 2014 at 3:39 PM, lee <lee@××××××××.de> wrote:
4 >> Rich Freeman <rich0@g.o> writes:
5 >>
6 >>> On Thu, Dec 4, 2014 at 1:11 PM, lee <lee@××××××××.de> wrote:
7 >>>> Tomas Mozes <tomas.mozes@××××.sk> writes:
8 >>>>>
9 >>>>> The kernel is not in stage3, you have to compile it yourself (or
10 >>>>> download from somewhere). When you have the kernel image binary, the
11 >>>>> xen configuration for the host can be simple as:
12 >>>>
13 >>>> Compile it with what? Are the sources in stage3, or downloaded so that
14 >>>> I can compile a suitable Gentoo kernel within the chroot?
15 >>>
16 >>> If you've never installed Gentoo anywhere I wouldn't suggest doing it
17 >>> for the first time under Xen.
18 >>>
19 >>> Gentoo stage3s include neither a binary kernel nor the sources. See:
20 >>> https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=7
21 >>
22 >> That's confusing ... I would think that I can create the file system on
23 >> the LV and extract the stage3 archive, then chroot into it. From there,
24 >> I'd have to 'emerge gentoo-sources' and to compile a kernel.
25 >>
26 >> Isn't that easier or the same as booting on bare metal into some life
27 >> system and doing these things from there?
28 >>
29 >
30 > When you boot a CD on bare metal all you're doing is creating the file
31 > system, extracting the archive, and chrooting into it. So the outcome
32 > is the same either way.
33 >
34 > If your xen guest is going to run on a regular LV you certainly can
35 > just mount it on the host and chroot into it. That is exactly how I'd
36 > go about it.
37
38 Yes, I've already created a LV for it (along with others I'm going to
39 need). Then I got stuck because I wanted to create an xfs file system
40 and found that I hadn't installed a package required for that and
41 couldn't install it because there was some problem with downloading
42 package lists which they only fixed some time later ...
43
44 BTW, can I use xfs for the VM, or will it be difficult to get the VM
45 booted from xfs?
46
47 > Once you're in the chroot then you should install the kernel/etc per
48 > the handbook.
49
50 So there isn't really an advantage to use HVM ... it's even easier
51 because I can access the LV from dom0.
52
53 > Of course, you have to make sure that the config for
54 > the kernel supports running as a guest under xen.
55
56 It's been a few years since the last time I compiled a kernel. I'm
57 looking forward to it :)
58
59
60 --
61 Again we must be afraid of speaking of daemons for fear that daemons
62 might swallow us. Finally, this fear has become reasonable.

Replies

Subject Author
Re: [gentoo-user] installing Gentoo in a xen VM "J. Roeleveld" <joost@××××××××.org>