From: emellor@leeni.uk.xensource.com Date: Wed, 25 Jan 2006 23:10:03 +0000 (+0100) Subject: Treat xenstore UUID for domU's like MAC addresses for virtual network X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16526^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddd21ce96a29460b43d8b83a9bb4615fecffdb96;p=xen.git 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 --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 009c2a1a58..a6408f82ba 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -396,6 +396,13 @@ gopts.var('xauthority', val='XAUTHORITY', fn=set_value, default=None, use="X11 Authority to use") +gopts.var('uuid', val='', + fn=set_value, default=None, + use="""xenstore UUID (universally unique identifier) to use. One + will be randomly generated if this option is not set, just like MAC + addresses for virtual network interfaces. This must be a unique + value across the entire cluster.""") + def err(msg): """Print an error to stderr and exit. @@ -566,6 +573,8 @@ def make_config(vals): map(add_conf, ['name', 'memory', 'ssidref', 'maxmem', 'restart', 'on_poweroff', 'on_reboot', 'on_crash', 'vcpus']) + if vals.uuid is not None: + config.append(['uuid', vals.uuid]) if vals.cpu is not None: config.append(['cpu', vals.cpu]) if vals.cpus is not None: