On Friday, September 25, 2015 01:11:53 PM hw wrote:
> grub2-install /dev/xvda
> Installing for i386-pc platform.
> grub2-install: warning: File system `ext2' doesn't support embedding.
> grub2-install: warning: Embedding is not possible.  GRUB can only be
> installed in this setup by using blocklists.  However, blocklists are
> UNRELIABLE and their use is discouraged..
> grub2-install: error: will not proceed with blocklists.
> 
> Now what?

Partition first, then install grub

> I'm guessing I can get away with grub not actually installed as long as
> I stick to PV.

PV does not supply a "BIOS", which means, Grub is not used.

> However, the guests all reside in partitions on an SSD, so my plan was
> to have one partition as swap and another one for the system.  Both
> partitions would be let to the guest by entries in the config for the VM.

Most PVs are done that way.

> Now I'm wondering if I should rather have a larger partition for each
> guest and then partition the guest's /dev/xvda into swap and system from
> within the guest.

If using HVM, then yes.
If using PV, then up to you.

> (I'm not really fond of lvm because it lacks some very important
> features which greatly reduce its benefits.)

Which features are you missing that native partitions have?

Most Xen hosts use LVM.

> What would you guys do?

LVM for partitions
Pass LVs to Xen domains
For PV: Store kernel on Host and point to the kernel in the domain config.
For HVM: pretend it's a physical box

> On a side note, would grub even run, considering it's i386 and not
> amd64?  32bit support is kinda disabled.

When using PV, no. (And that's got nothing to do with the CPU architecture.)

> hw wrote:
> > Hi,
> > 
> > I'm installing Gentoo as a xen PV guest.  Do I need to install a
> > bootloader like grub, or should I rather just specify the kernel to boot
> > in the definition file of the guest?  If I do the latter, what about the
> > kernel command line?
> > 
> > Is there anything I should consider?  The host is also running Gentoo.


Reply via email to