Re: BUG: linux guest with paravirt support thinks it boots on bare hardware

Anthony Liguori
2008-03-30T20:32:44Z

Alexander Graf wrote:
>
> On Mar 30, 2008, at 9:44 PM, Anthony Liguori wrote:
>
>> Felix Leimbach wrote:
>>> While testing the new virtio drivers in linux-2.6.25 my test
>>> 2.6.25-rc7-git5 guest with paravirt support running in KVM-64 thinks it
>>> sits on cold and unfriendly bare metal instead of a safe and cosy KVM
>>> bed ;-)
>>> Because it is very unhappy it emits the following message during boot:
>>> Booting paravirtualized kernel on bare hardware
>>>
>>> Of course the guest still runs perfectly and I am indeed very impressed
>>> by KVM and its performance. A big thanks to all the hard working devs
>>> for that!
>>>
>>> Relevant config and dmesg below.
>>>
>>> regards,
>>> Felix
>>>
>>> # zcat /proc/config.gz |grep '\(VIRT\|VMI\|XEN\)'
>>> CONFIG_PARAVIRT_GUEST=y
>>> CONFIG_XEN=y
>>> CONFIG_VMI=y
>>> CONFIG_PARAVIRT=y
>>> CONFIG_VIRT_TO_BUS=y
>>> # CONFIG_XEN_BLKDEV_FRONTEND is not set
>>> CONFIG_VIRTIO_BLK=y
>>> CONFIG_XEN_NETDEV_FRONTEND=y
>>> CONFIG_VIRTIO_NET=y
>>> CONFIG_HVC_XEN=y
>>> # CONFIG_FB_VIRTUAL is not set
>>> CONFIG_VIRTUALIZATION=y
>>> CONFIG_VIRTIO=y
>>> CONFIG_VIRTIO_RING=y
>>> CONFIG_VIRTIO_PCI=y
>>> CONFIG_VIRTIO_BALLOON=y
>>>
>>
>> You're probably missing:
>>
>> CONFIG_KVM_CLOCK=y
>> CONFIG_KVM_GUEST=y
>
> Where do I find a kernel branch that supports these?

The master branch in Avi's tree has support for both of these.

Regards,

Anthony Liguori

> Alex