back

by walrus01·10y ago·view on hn ↗
It's worth nothing that very few people run HVM guests on xen if they can avoid it. The performance hit is considerable. Most xen setups I have seen are PV guests with pygrub bootloader. Host is debian amd64, guests are also debian amd64 or some variety of centos amd64.
1 comments
Using paravirtualized devices is best practice, but a combination of PV and HVM ends up being faster for many operations - see http://www.brendangregg.com/blog/2014-05-07/what-color-is-yo... . Unfortunately HVM mode brings along QEMU which is a relatively large amount of code, though the bugs in QEMU have tended to be lower impact than bugs in the hypervisor itself.

While the risk from QEMU can largely be mitigated by running QEMU in a device model stub domain, a new mode called PVH (currently being rewritten) should theoretically be best in terms of performance, resource usage, and attack surface. See http://wiki.xen.org/wiki/Xen_Project_Software_Overview#PVH

pygrub runs in the context of the dom0 and should not be used with untrusted guests. Both grub legacy and grub2 work with PV mode now and there is no need for pygrub.