Bug 224003 - xen kernel panics
Summary: xen kernel panics
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-xen mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-30 21:38 UTC by Bob Nestor
Modified: 2017-12-03 08:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Nestor 2017-11-30 21:38:21 UTC
Picked up an Antsle device/system designed to host VMs.  It comes with Gentoo Linux and runs KVM and Linux LXC images and can run FreeBSD in a KVM VM.

Paved over Gentoo with LinuxMint 18.3 and installed Xen.  All runs OK, but wanted to try the same with FreeBSD as the Dom0.

Downloaded and installed the 11.1 Release then followed the instructions for loading and running Xen as a Dom0.  When booting up the Xen Hypervisor it panics claiming the IOMMU isn't present or enabled.  There's no option in the BIOS it enable this, but clearly it's present and enabled since Xen under LinuxMint ran.
Comment 1 Sydney Meyer 2017-12-01 00:26:32 UTC
(In reply to Bob Nestor from comment #0)

I suspect this is because Xen on FreeBSD is running in PVH Mode, thus requiring not just VT-x, but also support for VT-d.
Comment 2 Bob Nestor 2017-12-02 05:25:44 UTC
I suspect Sydney Meyer's analysis is correct.  From what I can find out about the SOC implementation used on the Antsle it only supports VT-x and doesn't appear to have implemented the VT-d features.
Comment 3 Roger Pau Monné freebsd_committer 2017-12-03 08:53:34 UTC
AFAICT none of the Atom C processors support VT-d, so you won't be able to run a FreeBSD/Xen Dom0. Kind of surprising that such hardware is sold as "virtualisation specific" when it's missing such a basic hardware virtualisation feature.
Comment 4 Roger Pau Monné freebsd_committer 2017-12-03 08:55:05 UTC
FWIW, if you are searching for a compact virtualization server I would recommend the Intel NUC boxes, they are cheap and most of them (the ones based on the Core i CPUs) have VT-d support.