Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OVMF, lvm devices, and hvm guests



T <bobs%thelibertytree.org@localhost> writes:

> On Wed, 24 Aug 2022 15:17:59 -0400, Brad Spencer wrote:
>> Usually I like to use LVM raw devices for Xen guests rather than files.
>> So, I created a LVM LV that was exactly the same size as the file based
>> disk used in the previous section.  I then dd'ed the contents of the
>> file into the raw LVM LV and adjusted the guest config to the LVM LV
>> block device.  This does not work.  One of a couple of things happen:
>> 
>> 1) If the kernel actually boots up, it will not be able to find it root
>> filesystem and nothing that I put in telling it what that was helped.  I
>> had actually noticed before that I was unable to use the new qemu-dm
>> with old HVM guests and had to use use qemu traditional (and I think
>> RomBIOS) instead.  Those HVM guests had the same problem in that the
>> SeaBIOS could not find a bootable disk while the older qemu could.
>
> What path are you using in your HVM config? This is what mine looks like 
> for example:
> disk=[ '/dev/mapper/rvg0-NetBSD01,raw,sda,w' ]

I tried a LOT of different combinations.  Among the ones that did not
work were these:

disk = [ 'phy:/dev/mapper/rnotraidvg-tclv0,ioemu:hda,w' ]
disk = [ '/dev/mapper/rssdvg0-boottest,raw,hda,rw' ]


I never tried using the 'sdX' device, always a 'hdX' device.  I will
attempt using a 'sdX' device when I have a chance.



-- 
Brad Spencer - brad%anduin.eldar.org@localhost - KC8VKS - http://anduin.eldar.org


Home | Main Index | Thread Index | Old Index