Introduction

Xen is Blue Light's standard virtualisation solution, decided in BLUE-1192

Introduction to Xen: http://wiki.xenproject.org/wiki/Xen_Beginners_Guide#What_is_this_Xen_Project_software_all_about.3F

Installation (host/dom0)

TODO: better/different to install xen-linux-system instead of xen-tools?

aptitude install xen-linux-system

Adjust grub so the default boot item is Xen (ref: https://xen-orchestra.com/cant-find-hypervisor-information-in-sysfs/)

dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
update-grub
shutdown -r now

Test: does the  xen list  command show that the current system is Domain-0?

Tool(stack|kit|box)

There are several tool(stacks|kits|boxes) available for the personal or scripted administration of Xen resources.

Primary reference:http://wiki.xen.org/wiki/Choice_of_Toolstacks

 

 

 

libvirt and virsh

libvirt is a library for managing KVM, OpenVZ, VMware, VirtualBox, Xen and others.

virsh is a user/script shell to interface with libvirt.  References: http://libvirt.org/virshcmdref.html

xen-tools

Logs in the /var/log/xen-tools/ directory.

xend

Deprecated since Xen 4.1 but the default in Xen 4.1 as packaged for Debian.  Will be removed from Xen 4.2.

xend comprises:

xend was abandoned because of @@@

xl

Strategic since Xen 4.1.

Designed to be command line compatible with xend.  TODO: does it have an xm command?

Configuration

DomU*

Networking

Choice:

 

Installation (domu*)

 

Troubleshooting

TODO: integrate the next para.

A quick note, there are actually 3 modes, not two when it comes to the drivers in use:

For a Xen guest/DomU you can do a very basic uname and lsmod with a grep to list the modules in use:

uname -a lsmod | grep xen 

If uname -a lists a kernel with the string "xen" in it, then you have a modified kernel and it's likely a PV guest, and you will see output from the lsmod command to confirm it. If you have output from the grep on lsmod but no sign of a modified kernel then you are PV-HVM. Without any sign of either, it's a straight HVM.

Note: Generally you can do more with VMs that have the PV tools installed, so that can be quite an obvious pointer, however you can fake the presence of the PV tools to allow suspend/resume etc. so you cannot rely on that in general.

References

Files and directories

File or directoryUsageNotes
/etc/default/xen  
/etc/default/xend  
/etc/default/xendomains  
​/etc/xen/​Configuration
/etc/xen/scripts/? 
/etc/xen/scripts/vif-nat  

Glossary

Technical

TODO; move Xen notes from the Online.net server page to here.

Architecture

Very little information found on the 'net about Xen architecture.  This diagram is from http://libvirt.org/architecture.html

Debian packages

libxen-4.1

libxenstore3.0

xen-hypervisor-4.1-amd64

xen-linux-system-3.2.0-4-amd64

xen-linux-system-amd64

xen-system-amd64

xen-tools

xen-utils-4.1

xen-utils-common

xenstore-utils

 

References

Documentation