[Pkg-xen-devel] Bug#784810: Bug#784810: Xen domU try ton access to dom0 LVM Volume group

Romain Mourier romainm at uncornichon.net
Sat May 9 12:07:56 UTC 2015


On 09/05/2015 13:25, Ian Campbell wrote:
> On Sat, 2015-05-09 at 03:41 +0200, Romain Mourier wrote:
> [...]
>>     xen-create-image --hostname=test0 --lvm=raid10 --fs=ext4
>> --bridge=br-lan --dhcp --dist=jessie
> [...]
>> root at hv0:~# xl create /etc/xen/test0.cfg && xl console test0
> What does /etc/xen/test0.cfg contain? I suspect it is reusing the dom0
> initramfs and hence has inherited some sort of hook script which insists
> on the RAID stuff being present.
That what I suspect too.

It contains :

~# grep -v ^\# /etc/xen/test0.cfg | sed '/^$/d'
kernel      = '/boot/vmlinuz-3.16.0-4-amd64'
extra       = 'elevator=noop'
ramdisk     = '/boot/initrd.img-3.16.0-4-amd64'
vcpus       = '1'
memory      = '128'
root        = '/dev/xvda2 ro'
disk        = [
                  'phy:/dev/raid10/test0-disk,xvda2,w',
                  'phy:/dev/raid10/test0-swap,xvda1,w',
              ]
name        = 'test0'
dhcp        = 'dhcp'
vif         = [ 'mac=00:16:3E:8C:49:68,bridge=br-lan' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
> That would be a bug in either xen-create-image or something relating to
> initramfs generation (initramfs-tools or some raid related hook file
> provided by whatever package provides such things).
Do I need to open and other bug report with different package ?
> Note that xen-create-image is a separate project/package from xen
> itself. (As are initramfs-tools etc obviously).
>
> [...]
>> [    0.000000] Command line: root=/dev/xvda2 ro elevator=noop
> [...]
>>   Volume group "SSD-RAID1" not found
>>   Skipping volume group SSD-RAID1
>> Unable to find LVM volume SSD-RAID1/swap
> Ian.
Thank you for your reply,

Romain.



More information about the Pkg-xen-devel mailing list