Child pages
  • Xen scripts

Versions Compared

Key

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

...

It assumes the xl toolkit is being used.

...

How the scripts are called

Normally the scripts are called by xl (and thence libxenlight?) because they are named in /etc/xen/<DomU name>.cfg.

Structure of the scripts

The scripts are written in bash.

The scripts use a lot of common components: bash scripts which are sourced mostly to define functions.  For example, here is the start of the vif-bridge call tree.

    vif-bridge
    |
    +-- . /etc/xen/scripts/vif-common.sh
        |
        +-- . /etc/xen/scripts/xen-hotplug-common.sh
        |   |
        |   +-- . /etc/xen/scripts/hotplugpath.sh
        |   |
        |   +-- . /etc/xen/scripts/logging.sh
        |   |
        |   +-- . /etc/xen/scripts/xen-script-common.sh
        |   |
        |   +-- . /etc/xen/scripts/locking.sh
        |
        +-- . xen-network-common.sh
        |
        +-- findCommand
        |
        +-- evalVariables
        |

Developing the scripts

Run-time values

...