Re: Converting PV to HVM - boot methods

Stephen Borrill <[email protected]> Thu, 24 Apr 2025 17:50:40 +0100 (BST)
Newsgroups gmane.os.netbsd.ports.i386
Message-ID <Pine.NEB.4.64.2504241746490.1680@ugly>
On Thu, 24 Apr 2025, Manuel Bouyer wrote:
> On Thu, Apr 24, 2025 at 05:25:14PM +0100, Stephen Borrill wrote:
>> On Thu, 24 Apr 2025, Manuel Bouyer wrote:
>>> On Thu, Apr 24, 2025 at 03:06:53PM +0100, Stephen Borrill wrote:
>>>> I've set this to port-i386 rather than port-xen as it's more about the x86
>>>> boot process rather than Xen.
>>>>
>>>> I have a (large) number of PV Xen VMs. These were created from a disk image
>>>> built with makefs that the sets were extracted into. This means there is no
>>>> partitioning except for disklabel and the root partition begins at sector 0:
>>>>
>>>> [...]
>>>> This all works fine, but I'm interested in others' alternatives suggestions.
>>>
>>> If you're running netbsd-10 you should be able to boot PVH the same way you
>>> boot PV; just replace the XEN3_DOMU kernel with GENERIC
>>
>> Unfortunately not, you snipped out this bit:
>>
>>> Now that XenServer and XCP-ng no longer support PV booting (and
>>> PV-on-PVH doesn't work either) [...]
>>
>> I would love to use PVH as it works brilliantly with the xl toolstck, but
>> it's not an option with XenServer or XCP-ng.
>
> That PV-on-PVH doesn't work doesn't imply that PVH isn't working ...

PVH simply isn't an option. The options for domain-type are only pv and 
hvm. On the very latest XenServer/XCP-ng, pv-in-pvh is an additional 
option which is the equivalent of pvshim:

https://xcp-ng.org/forum/topic/10633/status-of-pvh

-- 
Stephen