Users’ manualXen v2.0 for x86Xen is Copyright (c) 2002-2004, The Xen TeamUniversity of Cambridge, UKDISCLAIMER: This documentation is currently under
Server consolidation. Move multiple servers onto a single physical host with perfor-mance and fault isolation provided at virtual machine boundaries.C
Xen itself contains only the code required to detect and start secondary processors, setup interrupt routing, and perform PCI bus enumeration. Device
6
Chapter 2InstallationThe Xen distribution includes three main components: Xen itself, ports of Linux 2.4and 2.6 and NetBSD to run on Xen, and the user
Once you have satisfied the relevant prerequisites, you can now install either a binaryor source distribution of Xen.2.2 Installing from Binary Tarball
# bk clone bk://xen.bkbits.net/xen-2.0.bkUnder your current directory, a new directory named xen-2.0.bk has beencreated, which contains all the source
2.3.3 Custom XenLinux BuildsIf you wish to build a customized XenLinux kernel (e.g. to support additional devicesor enable distribution-required featu
2.4.1 GRUB ConfigurationAn entry should be added to grub.conf (often found under /boot/ or /boot/grub/)to allow Xen / XenLinux to boot. This file is som
2.4.3 TLS LibrariesUsers of the XenLinux 2.6 kernel should disable Thread Local Storage (e.g. by doinga mv /lib/tls /lib/tls.disabled) before attempti
Chapter 3Starting Additional DomainsThe first step in creating a new domain is to prepare a root filesystem for it to boot off.Typically, this might be
memory Set this to the size of the domain’s memory in megabytes (e.g.memory = 64)disk Set the first entry in this list to calculate the offset of the d
kernel = "/boot/vmlinuz-2.6-xenU"memory = 64name = "ttylinux"nics = 1ip = "1.2.3.4"disk = [’file:/path/to/ttylinux/rootf
Chapter 4Domain Management ToolsThe previous chapter described a simple example of how to configure and start a do-main. This chapter summarises the to
state Domain state consists of 5 fields:r runningb blockedp pauseds shutdownc crashedcputime How much CPU time (in seconds) the domain has used so far.
# xm restore ttylinux.xenThis will restore the state of the domain and restart it. The domain will carry onas before and the console may be reconnecte
4.4 Managing Domain MemoryXenLinux domains have the ability to relinquish / reclaim machine memory at therequest of the administrator or the user of t
Chapter 5Domain Filesystem StorageIt is possible to directly export any Linux block device in dom0 to another domain, orto export filesystems / devices
read-write sharing, export the directory to other domains via NFS fromdomain0 (or use a cluster file system such as GFS or ocfs2).5.2 Using File-backed
This limit can be statically increased by using the max loop module parameter if CON-FIG BLK DEV LOOP is compiled as a module in the dom0 kernel, or b
ContentsI Introduction and Tutorial 11 Introduction 31.1 Structure of a Xen-Based System . . . . . . . . . . . . . . . . . . . . 41.2 Hardware Support
Each of these can grow to have 1GB of differences from the master volume. You cangrow the amount of space for storing the differences using the lvexte
Part IIUser Reference Documentation25
Chapter 6Control SoftwareThe Xen control software includes the xend node control daemon (which must berunning), the xm command line tools, and the pro
6.2 Xm (command line interface)The xm tool is the primary tool for managing Xen from the console. The generalformat of an xm command line is:# xm comm
6.3 Xensv (web control interface)Xensv is the experimental web control interface for managing a Xen machine. It canbe used to perform some (but not ye
Chapter 7Domain ConfigurationThe following contains the syntax of the domain configuration files and description ofhow to further specify networking, dri
dhcp Set to ’dhcp’ if you want to use DHCP to configure networking.netmask Manually configured IP netmask.gateway Manually configured IP gateway.hostname
7.2.2 Xen networking scriptsXen’s virtual networking is configured by two shell scripts (by default network andvif-bridge). These are called automatica
4.4 Managing Domain Memory . . . . . . . . . . . . . . . . . . . . . . 204.4.1 Setting memory footprints from dom0 . . . . . . . . . . . . . 204.4.2 S
domain is allowed to access — the numbers x,y and z may be in either decimalor hexadecimal format.• Flat Format: Include a list of PCI device addresse
warpu the unwarp requirement is the minimum time a domain must run unwarped forbefore it can warp again7.4.2 Atropossched=atroposAtropos is a soft rea
Global Parametersrr slice The maximum time each domain runs before the next scheduling decision ismade.36
Chapter 8Build, Boot and Debug optionsThis chapter describes the build- and boot-time options which may be used to tailoryour Xen system.8.1 Xen Build
watchdog Enable NMI watchdog which can report certain failures.noirqbalance Disable software IRQ balancing and affinity. This can be used on sys-tems s
‘nmi=dom0’: Inform DOM0 of the NMI.‘nmi=ignore’: Ignore the NMI.mem=xxx Set the physical RAM address limit. Any RAM appearing beyond thisphysical addr
xencons=xxx Specify the device node to which the Xen virtual console driver is at-tached. The following options are supported:‘xencons=off’: disable v
Chapter 9Further SupportIf you have questions that are not answered by this manual, the sources of informa-tion listed below may be of interest to you
quests for help. Subscribe at:http://lists.xensource.com/[email protected] Used for announcements only. Subscribe at:http://li
Appendix AInstalling Xen / XenLinux onDebianThe Debian project provides a tool called debootstrap which allows a base Debiansystem to be installed int
B Installing Xen / XenLinux on Redhat or Fedora Core 47C Glossary of Terms 49iii
http://ftp.<countrycode>.debian.org/debianYou can use any other Debian http/ftp mirror you want.7. When debootstrap completes successfully, modi
Attach to the console:xm console 26or by telnetting to the port 9626 of localhost (the xm console program worksbetter).12. Log in and run base-configAs
46
Appendix BInstalling Xen / XenLinux onRedhat or Fedora CoreWhen using Xen / XenLinux on a standard Linux distribution there are a couple ofthings to w
The one slight complication with the above is that /sbin/portmap is dynamicallylinked against /usr/lib/libwrap.so.0 Since this is in /usr, it won’t wo
Appendix CGlossary of TermsAtropos One of the CPU schedulers provided by Xen. Atropos provides domainswith absolute shares of the CPU, with timeliness
microkernel is responsible for sharing CPU and memory (and sometimes otherdevices) between less privileged tasks running on the system. This is simila
Part IIntroduction and Tutorial1
Chapter 1IntroductionXen is a paravirtualising virtual machine monitor (VMM), or ‘hypervisor’, for the x86processor architecture. Xen can securely exe
Comments to this Manuals