Domain Groups: xm group commands
PATCH 1/8 Domain Groups: xm group commands
xm:
1. Add the following commands: grp-create, grp-shutdown, grp-destroy, grp-join, grp-pause, grp-unpause, grp-reboot, grp-save, grp-restore, grp-migrate, grp-list
2. Add example group configuration file and parsing mechanism.
tools/python/xen/xm/create.py +8 -0
@@ -489,6 +489,11 @@ gopts.var('on_xend_stop', val='continue| - shutdown: Domain is shutdown; - suspend: Domain is suspended; """) + +gopts.var('dgid', val='NUM', + fn=set_int, default=32767, + use='Default domain group to join.') + def err(msg): """Print an error to stderr and exit.
@@ -749,6 +754,8 @@ def make_config(vals): config.append(['backend', ['tpmif']]) if vals.localtime: config.append(['localtime', vals.localtime]) + if vals.dgid is not None: + config.append(['dgid', vals.dgid]) config_image = configure_image(vals) if vals.bootloader:
@@ -1268,6 +1275,7 @@ def main(argv): print("Could not start console\n"); sys.exit(0) dom = make_domain(opts, config) + return dom if __name__ == '__main__':
tools/python/xen/xm/main.py +156 -5
230 lines not on this page · raw message
tools/python/xen/xm/group.py new file +274 -0
274 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel