direct-io.hg

changeset 8669:2cb434a12bba

Treat xenstore UUID for domU's like MAC addresses for virtual network
interfaces -- can be set by user in domU configuration, but is
generated randomly by default.

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
author emellor@leeni.uk.xensource.com
date Thu Jan 26 00:10:03 2006 +0100 (2006-01-26)
parents cd68f36807f9
children d8232e9f7988
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Thu Jan 26 00:06:46 2006 +0100
     1.2 +++ b/tools/python/xen/xm/create.py	Thu Jan 26 00:10:03 2006 +0100
     1.3 @@ -396,6 +396,13 @@ gopts.var('xauthority', val='XAUTHORITY'
     1.4            fn=set_value, default=None,
     1.5            use="X11 Authority to use")
     1.6  
     1.7 +gopts.var('uuid', val='',
     1.8 +          fn=set_value, default=None,
     1.9 +          use="""xenstore UUID (universally unique identifier) to use.  One 
    1.10 +          will be randomly generated if this option is not set, just like MAC 
    1.11 +          addresses for virtual network interfaces.  This must be a unique 
    1.12 +          value across the entire cluster.""")
    1.13 +
    1.14  
    1.15  def err(msg):
    1.16      """Print an error to stderr and exit.
    1.17 @@ -566,6 +573,8 @@ def make_config(vals):
    1.18      map(add_conf, ['name', 'memory', 'ssidref', 'maxmem', 'restart',
    1.19                     'on_poweroff', 'on_reboot', 'on_crash', 'vcpus'])
    1.20      
    1.21 +    if vals.uuid is not None:
    1.22 +        config.append(['uuid', vals.uuid])
    1.23      if vals.cpu is not None:
    1.24          config.append(['cpu', vals.cpu])
    1.25      if vals.cpus is not None: