wiki:Remctl

Version 3 (modified by geofft, 16 years ago) (diff)

--

We use remctl to pass commands back and forth between our different servers, and we've added the ability for you to tap into this to control your VMs without using the web interface.

If you don't have remctl installed locally (there is a remctl-client package in Debian and Ubuntu), you can run it out of the remctl locker by first typing

athena% add remctl

Once you've done that, you can use any of the following commands to manipulate your VM (using our test VM, moo17, as an example)

For information about the state of your VM:

athena% remctl remote.mit.edu control moo17 list
athena% remctl remote.mit.edu control moo17 uptime
athena% remctl remote.mit.edu control moo17 list-long

To start up your VM:

athena% remctl remote.mit.edu control moo17 create

To attempt to cleanly shutdown your VM:

athena% remctl remote.mit.edu control moo17 shutdown

To hard shutdown your VM:

athena% remctl remote.mit.edu control moo17 destroy

To hard reboot your VM:

athena% remctl remote.mit.edu control moo17 reboot

There's also a script called xvm in the xvm locker that gives you an interface reminiscent of init.d:

athena% add xvm
athena% xvm moo17 start
athena% xvm moo17 stop

You can run xvm --help for more information.