Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] installing Gentoo as a xen guest: installing grub
Date: Sat, 26 Sep 2015 11:57:11
Message-Id: 1781961.59DOujk6JG@andromeda
In Reply to: Re: [gentoo-user] installing Gentoo as a xen guest: installing grub by hw
1 On Friday, September 25, 2015 01:11:53 PM hw wrote:
2 > grub2-install /dev/xvda
3 > Installing for i386-pc platform.
4 > grub2-install: warning: File system `ext2' doesn't support embedding.
5 > grub2-install: warning: Embedding is not possible. GRUB can only be
6 > installed in this setup by using blocklists. However, blocklists are
7 > UNRELIABLE and their use is discouraged..
8 > grub2-install: error: will not proceed with blocklists.
9 >
10 > Now what?
11
12 Partition first, then install grub
13
14 > I'm guessing I can get away with grub not actually installed as long as
15 > I stick to PV.
16
17 PV does not supply a "BIOS", which means, Grub is not used.
18
19 > However, the guests all reside in partitions on an SSD, so my plan was
20 > to have one partition as swap and another one for the system. Both
21 > partitions would be let to the guest by entries in the config for the VM.
22
23 Most PVs are done that way.
24
25 > Now I'm wondering if I should rather have a larger partition for each
26 > guest and then partition the guest's /dev/xvda into swap and system from
27 > within the guest.
28
29 If using HVM, then yes.
30 If using PV, then up to you.
31
32 > (I'm not really fond of lvm because it lacks some very important
33 > features which greatly reduce its benefits.)
34
35 Which features are you missing that native partitions have?
36
37 Most Xen hosts use LVM.
38
39 > What would you guys do?
40
41 LVM for partitions
42 Pass LVs to Xen domains
43 For PV: Store kernel on Host and point to the kernel in the domain config.
44 For HVM: pretend it's a physical box
45
46 > On a side note, would grub even run, considering it's i386 and not
47 > amd64? 32bit support is kinda disabled.
48
49 When using PV, no. (And that's got nothing to do with the CPU architecture.)
50
51 > hw wrote:
52 > > Hi,
53 > >
54 > > I'm installing Gentoo as a xen PV guest. Do I need to install a
55 > > bootloader like grub, or should I rather just specify the kernel to boot
56 > > in the definition file of the guest? If I do the latter, what about the
57 > > kernel command line?
58 > >
59 > > Is there anything I should consider? The host is also running Gentoo.