Xen 4.12 RC test instructions
|If you come to this page before or after the Test Day is completed, your testing is still valuable, and you can use the information on this page to test, post any bugs and test reports to xen-devel@. If this page is more than two weeks old when you arrive here, please check the current schedule and see if a similar but more recent Test Day is planned or has already happened.|
- 1 What needs to be tested
- 2 Installing
- 3 Known issues
- 4 Test instructions
- 4.1 General
- 4.2 Specific ARM Test Instructions
- 4.3 Specific x86 testing instructions
- 4.4 RC specific things to test
- 5 Reporting Bugs (& Issues)
- 6 Reporting success
What needs to be tested
- Making sure that Xen 4.12 compiles and installs properly on different software configurations; particularly on distros
- Making sure that Xen 4.12, along with appropriately up-to-date kernels, work on different hardware.
For more ideas about what to test, please see Testing Xen.
ARM Smoke Testing
If you use ARM Hardware, which is not widely available or not rackable (and thus not part of our automated test suite), please check out Xen ARM Manual Smoke Test. Helping out to manually test ARM boards (which will only take a few minutes) will guarantee that Xen 4.12 will work on the board that you use. If you want to see which boards need testing, check Xen ARM Manual Smoke Test/Results.
Getting a RC
For the expressions/examples below, set the following bash/sh/... variable to the release candidate number (e.g. one of
rc2, ... )
RC="<release candidate number>" # rc1, rc2 ...
For RC1: RC=rc1.2 (see #RC1)
With a recent enough
git (>= 126.96.36.199), just pull from the proper tag (
4.12.0-$RC) from the main repo directly:
git clone -b 4.12.0-$RC git://xenbits.xen.org/xen.git
With an older
git version (and/or if that does not work, e.g., complaining with a message like this:
Remote branch 4.12.0-$RC not found in upstream origin, using HEAD instead), do the following:
git clone git://xenbits.xen.org/xen.git ; cd xen ; git checkout 4.12.0-$RC
Namespace changes affecting downstreams and users
- kdd (tool for debugging guest OSes with the windows kernel debugger) has been renamed to xen-kdd in order to reduce namespace pollution.
- The fsimage library used by pygrub, which does not have a stable ABI, and the corresponding python module, have been renamed to 'xenfsimage' (to reduce namespace pollution). Any out-of-tree users of this library will have to be updated.
- Remove any old versions of Xen toolstack and userspace binaries (including
- Remove any Xen-related udev files under /etc because Xen 4.12 doesn't use those anymore.
- Download and install the most recent Xen 4.12 RC, as described above. Make sure to check the
INSTALLfor changes in required development libraries and procedures. Some particular things to note:
Once you have Xen 4.12 RC installed check that you can install a guest etc and use it in the ways which you normally would, i.e. that your existing guest configurations, scripts etc still work.
For more ideas about what to test, please see Testing Xen or the sections below. Note that typically specific tests for new features will be added around RC2.
Credit2 is now the default scheduler
Specific ARM Test Instructions
Boards and hardware we do not test in our CI Loop
Although we do have automated Test Infrastructure for the project, we only include rackable hardware into our CI Loop. We do have a mixture of Allwinner and Exynos processors in a custom chassis. If you have one of the following boards and want to ensure it runs on Xen 4.12, please make sure you run the Xen ARM Manual Smoke Test on an RC.
Boards not tested by our CI Loop: Allwinner sun6i/A31, DRA7[J6] EVM, Exynos5410, HiKey board from 96boards.org, Mustang (XC-1), OMAP5432, Renesas R-Car H2, Versatile Express and Xilinx Zynq Ultrascale MPSoC
We are also not able to include non-production servers that require a legal agreement such as an NDA into our Test Infrastructure.
Stefano to add some information here - also see http://xenbits.xen.org/docs/unstable/features/dom0less.html
Small Arm default configurations for specific boards
Stefano to add some information here - also see https://markmail.org/message/fzhiaskqon26ybja
Specific x86 testing instructions
HVM and PV only Hypervisor builds
You can disable PV and / or HVM interfaces with the following steps:
1. Call `make menuconfig` in xen directory. 2. Enter "Architecture Features" submenu. 3. Select "PV support" / "HVM support" as you see fit.
Or you can edit existing config file by adding or changing CONFIG_HVM and CONFIG_PV options.
To run an HVM-only hypervisor, you must use a Dom0 kernel capable of booting as PVH guest. Linux 4.19 kernel is a good start.
Testing QEMU deprivileging involves two basic steps;
1. Setting up appropriate usernames for libxl to use 2. Setting
dm_restrict=1in the xl config file.
See the QEMU feature documentation for details on how to set this up, as well as what features and restrictions still need to be implemented.
PVH domU boot via grub2
grub2 has gained support for Xen PVH guests recently. In order to test that you need to build grub2 for
git clone git://git.savannah.gnu.org/grub cd grub ./configure TARGET_LDFLAGS=-static \ --prefix=/usr \ --sysconfdir=/etc \ --target=i386-suse-linux \ --with-platform=xen_pvh \ --enable-device-mapper make cat > ./grub.cfg <<EOF insmod part_msdos insmod part_gpt insmod search insmod configfile insmod legacy_configfile if search -s root -f /boot/grub2/grub.cfg ; then configfile /boot/grub2/grub.cfg elif search -s root -f /@/boot/grub2/grub.cfg ; then configfile /@/boot/grub2/grub.cfg elif search -s root -f /boot/grub/menu.lst ; then legacy_configfile /boot/grub/menu.lst elif search -s root -f /grub2/grub.cfg ; then configfile /grub2/grub.cfg elif search -s root -f /grub/menu.lst ; then legacy_configfile /grub/menu.lst fi EOF ./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen_pvh -O i386-xen_pvh -d grub-core/ "/boot/grub/grub.cfg=./grub.cfg"
The resulting binary
grub.xen_pvh can then be used as the kernel in the guest configuration file. It will boot in PVH mode and use the
grub.cfg file on the guest's disk.
In order to setup a PVH dom0 you need to install Xen as usual and boot with the following option added to the command line:
Note that it's recommended to also set the amount of dom0 memory, since the automatic calculations are not very accurate:
Finally, a Linux kernel >= 4.18 or FreeBSD >= 12.0 is required in order to boot into PVH dom0 mode.
Support for AMD is still very experimental, and currently it's not possible to create guests from a PVH dom0 when using AMD hardware.
RC specific things to test
None for now.
Reporting Bugs (& Issues)
- Use Freenode IRC channel #xentest to discuss questions interactively
- Report any bugs / missing functionality / unexpected results.
- Please put [TestDay] into the subject line
- Also make sure you specify the RC number you are using
- Make sure to follow the guidelines on Reporting Bugs against Xen (please CC the relevant maintainers and the Release Manager - jgross at suse dot com).
We would love it if you could report successes by e-mailing
email@example.com, preferably including:
- Hardware: Please at least include the processor manufacturer (Intel/AMD). Other helpful information might include specific processor models, amount of memory, number of cores, and so on
- Software: If you're using a distro, the distro name and version would be the most helpful. Other helpful information might include the kernel that you're running, or other virtualization-related software you're using (e.g., libvirt, xen-tools, drbd, &c).
- Guest operating systems: If running a Linux version, please specify whether you ran it in PV or HVM mode.
- Functionality tested: High-level would include toolstacks, and major functionality (e.g., suspend/resume, migration, pass-through, stubdomains, &c)
The following template might be helpful: should you use
Xen 4.12.0-<Some RC> for testing, please make sure you state that information!
Subject: [TESTDAY] Test report * Hardware: * Software: * Guest operating systems: * Functionality tested: * Comments:
Subject: [TESTDAY] Test report * Hardware: Dell 390's (Intel, dual-core) x15 HP (AMD, quad-core) x5 * Software: Ubuntu 10.10,11.10 Fedora 17 * Guest operating systems: Windows 8 Ubuntu 12.10,11.10 (HVM) Fedora 17 (PV) * Functionality tested: xl suspend/resume pygrub * Comments: Window 8 booting seemed a little slower than normal. Other than that, great work!