Xen Guest DomU setup-alpine fails when using LVM instead of image
When a setup-alpine is ran in a DomU guest (alpine-extended v3.6.2 guest, alpine-xen v3.6.2 hypervisor) using a LVM instead of loop image, the installer fails
From DomU config
disk = [ ‘phy:/dev/vg0/lv_somelv,xvda1,w’]
when the guest is started and setup-alpine is ran, option is presented
Available disks are:
xvda1 (10GB )
select xvda1, type ‘sys’ and confirm ‘y’ to “Erase the above disk(s) and continue [y/N]”
The partition table is then initialized, however installer then fails with
fdisk: WARNING: rereading partition table failed, kernel still uses old table: invalid argument
This disk is currently in use - repartitioning is probably a bad idea.
mount shows no use of xvda1 and lsof shows no use of xvda1
I have tried this in several ways to work around, such as;
-use empty LV beofre booting DomU
-mkfs.ext4 on the LV (in Dom0) before booting DomU
- select lvm, sys instead of just sys in setup-alpine
(from redmine: issue id 8066, created on 2017-10-26)