Child pages
  • Xen

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

On Debian 7 WhhezyWheezy:

root@SON-OF-blav.bluelightav:~# type xl
xl is /usr/sbin/xl
root@SON-OF-blav.bluelightav:~# ll /usr/sbin/xl
lrwxrwxrwx 1 root root 43 May 5 2013 /usr/sbin/xl -> ../lib/xen-common/bin/xen-toolstack-wrapper

...

  1. The shell runs /usr/sbin/xl which is a symlink to /usr/lib/xen-common/bin/xen-toolstack-wrapper
  2. /usr/lib/xen-common/bin/xen-toolstack-wrapper:
    1. Sources /usr/lib/xen-common/bin/xen-toolstack to set TOOLSTACK to /usr/lib/xen-4.1/bin/xl
    2. Sources /usr/lib/xen-common/bin/xen-dir to set dir to /usr/lib/xen-4.1
    3. Sources /usr/lib/xen-common/bin/xen-version to set VERSION to 4.1
      1. /usr/lib/xen-common/bin/xen-version gets Xen version info from /sys/hypervisor/version/*
    4. Sets PATH to /usr/lib/xen-4.1/bin
    5. Sources /etc/default/xen to set TOOLSTACK to xl (would fall back to hardcoded default otherwise)
    6. Sets TOOLSTACK to /usr/lib/xen-4.1/bin/xl
    7. execs /usr/lib/xen-4.1/bin/xl

When root runs command xm (does not work):

  1. The shell runs /usr/sbin/xm which is a symlink to /usr/lib/xen-common/bin/xen-toolstack-wrapper
  2. /usr/lib/xen-common/bin/xen-toolstack-wrapper:
    1. Sources /usr/lib/xen-common/bin/xen-toolstack to set TOOLSTACK to /usr/lib/xen-4.1/bin/xl
    2. Sources /usr/lib/xen-common/bin/xen-dir to set dir to /usr/lib/xen-4.1
    3. Sources /usr/lib/xen-common/bin/xen-version to set VERSION to 4.1
      1. /usr/lib/xen-common/bin/xen-version gets Xen version info from /sys/hypervisor/version/*
    4. Sets PATH to /usr/lib/xen-4.1/bin
    5. Sources /etc/default/xen to set TOOLSTACK to xl

 

...

    1. (would fall back to hardcoded default otherwise)
    2. Sets TOOLSTACK to /usr/lib/xen-4.1/bin/xl
    3. Generates message "ERROR: A different toolstack (xl) have been selected!"

Configuration

DomU*

Networking

...

Primary reference (no Xen 4.x equivalent found): http://wiki.xen.org/wiki/XenIntro

Debian packages

libxen-4.1

Includes /usr/lib/libxenctrl-4.1.so and /usr/lib/libxenguest-4.1.so

libxenstore3.0

Includes /usr/lib/libxenstore.so.3.0.0 and /usr/lib/libxenstore.so.3.0

xen-hypervisor-4.1-amd64

Includes /boot/xen-4.1-amd64.gz

xen-linux-system-3.2.0-4-amd64

Documentation only.

xen-linux-system-amd64

Documentation only.

xen-system-amd64

Documentation only.

xen-tools

Tools that work with the xm and xl toolstacks to administer Xen config files and images.

Provides (in /usr/bin):

  • xt-customize-image
  • xt-create-xen-config
  • xen-list-images
  • xen-delete-image
  • xt-install-image
  • xen-create-nfs
  • xen-create-image
  • xt-guess-suite-and-mirror
  • xen-update-image

...

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

References

xen-utils-4.1

Provides (in /usr/lib/xen-4.1/bin/):

...

  • /usr/lib/xen-4.1/lib/
  • /usr/lib/xen-4.1/boot/hvmloader

xen-utils-common

Provides:

  • /etc/default/xend
  • /etc/default/xendomains
  • /etc/init.d/xen
  • /etc/init.d/xendomains
  • /etc/xen/scripts/*
  • /etc/xen/xend-config.sxp
  • /etc/xen/xend-pci-permissive.sxp
  • /etc/xen/xend-pci-quirks.sxp
  • /etc/xen/xl.conf
  • /lib/udev/rules.d/xen-backend.rules
  • /lib/udev/rules.d/xend.rules
  • /usr/lib/xen-common/bin/*
  • /usr/sbin/cpuperf-perfcntr
  • /usr/sbin/cpuperf-xen
  • /usr/sbin/xe
  • /usr/sbin/xenperf
  • /usr/sbin/xenpm
  • /usr/sbin/xentop
  • /usr/sbin/xentrace
  • /usr/sbin/xentrace_format
  • /usr/sbin/xentrace_setmask
  • /usr/sbin/xentrace_setsize
  • /usr/sbin/xl
  • /usr/sbin/xm
  • /usr/share/xen-utils-common/default.xen

xenstore-utils

Provides (all in /usr/sbin):

  • xenstore-ls
  • xenstore-write
  • xenstore-exists
  • xenstore-rm
  • xenstore-chmod
  • xenstore-watch
  • xenstore-list
  • xenstore-read

References

Documentation