carta
xt-create-xen-config(8)

xt-create-xen-config8

Create a xen configuration file for a new guest

Usage

xt-create-config [options]

General Options: --admins Specify some administrator accounts which should be

created for use by the xen-shell. --template Specify the template file to use when creating the

All other options from xen-create-image, such as the new IP address(es)

About

  This script is invoked by xen-create-image after it has created and
 customised a new Xen guest.  It is responsible for creating the
 configuration file which Xen will use to start the instance.
  The configuration file will be created in the directory /etc/xen using
 a template file to determine how the configuration file should be
 created.
  By default the script will use /etc/xen-tools/xm.tmpl as its input.

Invocation

  This script will be invoked by the xen-create-image script, rather than
 directly.
  This is because it will expect to receive the values to insert into the
 output template in as environmental variables.
  You could execute it manually via a long command line, but that is
 error-prone and probably not useful:
   hostname=foo.my.flat ip=192.168.1.2 ... xm-create-xen-config \
     --output=/etc/xen --template=/etc/xen-tools/xm.tmpl

Argument passing

  This script will be invoked with a full copy of the arguments from
 xen-create-image in its environment, along with several command line
 arguments.
  This has several implications for customization.  If you wish to
 setup a new variable in the output template such as "foo=bar" you
 could update the script to include "${foo}", then invoke
 xen-create-image with this environmental variable set.
     $ foo=bar xen-create-image --hostname=test.my.flat ...
  The environment will be duplicated/inheritted by this script when
 it is executed, and your variable will be included in the output file.
  For details on the template file syntax please see the documentation
 for the "Text::Template" perl module.   (If you have the perldoc
 package installed you can read this with "perldoc Text::Template".)

History

  • Debian 12 (Bookworm): the text shown here
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

Authors

 Steve Kemp, https://steve.fi/
 Axel Beckert, https://axel.beckert.ch/
 Stephane Jourdois

License

Copyright (c) 2005-2009 by Steve Kemp, (c) 2010-2012 by The Xen-Tools Development Team. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.

From xen-tools 4.9.2-1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.