forked from uncloud/uncloud
Add minimal doc to hack/vm.py
This commit is contained in:
parent
a759b8aa39
commit
1758629ca1
1 changed files with 13 additions and 0 deletions
|
@ -17,8 +17,21 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with uncloud. If not, see <http://www.gnu.org/licenses/>.
|
# along with uncloud. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# This module is directly called from the hack module, and can be used as follow:
|
||||||
#
|
#
|
||||||
|
# Create a new VM with default CPU/Memory. The path of the image file is relative to $hackprefix.
|
||||||
|
# `uncloud hack --hackprefix /tmp/hackcloud --create-vm --image mysuperimage.qcow2`
|
||||||
#
|
#
|
||||||
|
# List running VMs (returns a list of UUIDs).
|
||||||
|
# `uncloud hack --hackprefix /tmp/hackcloud --list-vms
|
||||||
|
#
|
||||||
|
# Get VM status:
|
||||||
|
# `uncloud hack --hackprefix /tmp/hackcloud --get-vm-status --uuid my-vm-uuid`
|
||||||
|
#
|
||||||
|
# Stop a VM:
|
||||||
|
# `uncloud hack --hackprefix /tmp/hackcloud --destroy-vm --uuid my-vm-uuid`
|
||||||
|
``
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import uuid
|
import uuid
|
||||||
|
|
Loading…
Reference in a new issue