Help on using the Invirt remctl functions.
"""
import sys
-
+from invirt.config import structs as config
help = [
('list', 'show your VM\'s state (with xm list)'),
('shutdown', 'shut down your VM, softly if paravm (with xm shutdown)'),
('create', 'start up your VM (with xm create)'),
('reboot', 'reboot your VM (with xm destroy and xm create)'),
- #also install
+ ('install', 'autoinstall your VM (takes a series of key=value pairs; \n\t\tvalid arguments include mirror, dist, arch, imagesize,\n\t\tand noinstall)'),
#also CD images on create/reboot
]
helpdict = dict(help)
def main(args):
args = [n for n in args if n in helpdict]
- print 'remctl remote control <machine> <command>'
+ print 'remctl %s control <machine> <command>' % config.remote.hostname
if args:
for name in args:
print_help(name, helpdict[name])